PAGES
← all datasets
◆ Detection rules

Elastic Detection Rules

Elastic-2.0

Elastic Security's production detection rules (EQL, KQL, ES|QL) with ATT&CK mappings and unit tests.

Summary

Detection Rules is the home for rules used by Elastic Security. This repository is used for the development, maintenance, testing, validation, and release of rules for Elastic Security’s Detection Engine. This repository was first announced on Elastic's blog post, Elastic Security opens public detection rules repo. For additional content, see the accompanying webinar, Elastic Security: Introducing the public repository for detection rules.
from the project README
Formats
tomleql
License
Elastic-2.0
Added
2026-09-10

Get it

From the project’s own instructions where it documents any; otherwise a plain clone.

  1. shell
    $ git clone --depth 1 https://github.com/elastic/detection-rules

    Shallow clone: history isn't needed for testing.

  2. shell
    $ cd detection-rules && pip3 install ".[dev]"

    Only for the rule tooling and unit tests. Needs Python 3.12+.

Contents

3,167 files 559.7 MB repository

  • .toml 2,373
  • .json 256
  • .md 214
  • .gz 162
  • .py 93
  • .yml 23
  • .yaml 18
  • .png 12
browse all tools → score card for your toolchain →