← Lab /Security & privacy

AI agents can auto-generate and test detection rules, cutting SOC triage time

AI coding agents can automatically create, validate, and deploy high-quality detection rules in Elastic Security, dramatically accelerating SOC workflows.

Security & privacy Elastic Security Labs 24 Mar 2026 Tooling Deployed evidence

Published as “Supercharge Your SOC”

Why it matters

If reliable, AI-augmented rule creation could substantially reduce the time analysts spend on detection engineering and alert triage.

Summary

The blog demonstrates Elastic Security’s integration of generative AI agents that take natural-language security requirements and produce detection rules. The agents automatically extract IOCs, map them to MITRE ATT&CK, generate conditional and advanced ES|QL/EQL rules, and test them against threat-emulation data with successful hits. They also embed LLM-generated summaries directly in alerts, reducing analyst triage effort. Evidence is limited to a single walkthrough using a known Notepad++ supply-chain attack.

What they found 2

  1. The AI agent generated detection rules that were immediately tested against threat emulation data and produced multiple successful hits.

    “The agent immediately went to work: - It rapidly found process lineage and documented attack details. - It extracted key IOCs and found the corresponding MITRE ATT&CKTM mappings. - It generated two foundational rules: one for a suspicious child process spawned by Notepad++, and one focusing on the masqueraded executable. - Crucially, the rules were immediately tested against threat emulation data, confirming multiple successful hits.”

  2. The generated rule can include an LLM-generated summary directly in the alert.

    “The generated rule didn't just fire an alert; it natively included an ES|QL summary row in the alert itself:”

Caveats 3

  • AI coding agents operate with real credentials, real shell access, and often the full permissions of the user running them.
  • Before enabling AI-driven security workflows, evaluate what data the agent can access, what actions it can take, and what happens if it behaves unexpectedly
  • Every organization's risk profile is different

What’s new here 4

  • AI agents generate and instantly test detection rules within Elastic Security.
  • Support for advanced ES|QL aggregation and dynamic risk scoring created by the agent.
  • Automatic creation of multi-stage EQL sequence rules with built-in suppression.
  • Use of ESQL COMPLETION to embed LLM-generated summary rows in alerts.

In the news