Skip to main content
User guide

Detection rules

Describe the behavior to detect in plain language and get a Kibana detection rule (KQL, EQL, or threshold) mapped to MITRE ATT&CK. Export it as .ndjson and import it into Kibana. Paid.

The Detection rules page turns a plain-language description into a Kibana detection rule tagged with MITRE ATT&CK techniques and tactics. It is a paid capability, available in Professional (including the 14-day trial) and above.

Before generating, the model reads the actual fields of the target index (the same scan as the Field dictionary), so the rule only uses field names that exist in your cluster. Generation also searches the Runbooks knowledge base and states how many documents it used.

Generate a detection rule

Describe the intent

Steps

  1. In Index, select the index the rule runs on.
  2. In Detection intent, state the trigger, the time window, and the field names, for example "the same source.ip produces 5 or more event.action="login_failure" within 5 minutes".
  3. (Optional) In Rule type, pick query (KQL), threshold, or eql. With the default Rule type: auto, the model chooses: KQL for a single condition, EQL for ordered multi-event patterns, threshold for counts.
  4. Select Generate rule.

If you arrive from Make a detection rule on an investigation report or from Ask AI, the form is pre-filled.

If the intent is too vague, the model declines and names what is missing: the trigger, the window, or the field names.

Generated rule

Generated rule

BlockContent
ConfidenceThe model's own rating of how well the rule captures the intent
TagsMITRE ATT&CK technique IDs and tactics
KQL query / EQL queryThe rule query. Threshold rules add a Threshold block with the field and count
ExplanationWhat the rule catches, why it is written this way, and likely false-positive sources
Show the full rule JSONThe Kibana rule object: name, description, severity, risk score, schedule

Select Save rule to store the rule in the team library. Everyone can see it and load it back, export it again, or delete it. The library is kept in the .rst_copilot_userstate index in Elasticsearch.

Deploy to Kibana

Steps

  1. On the generated rule, select Export .ndjson.
  2. In Kibana, open Security > Rules, select Import, and import the file.

You can also select Create rule in Kibana, pick the matching type, and paste the query or threshold configuration.

Exported rules are enabled: false. Run the rule in the Detection Engine first, check the false-positive rate, and enable it by hand after an operations review.

On this page