Elastic’s Detection-Rules repo enables versioned, testable, automated detection rule management
Elastic’s detection-rules repository allows users to manage security detection rules as code with version control, automated testing, and deployment across environments
Security & privacy Elastic Security Labs 4 Feb 2026 Tooling Deployed evidence
Published as “The Engineer's Guide to Elastic Detections as Code”
Summary
The blog describes Elastic’s open detection-rules repository that treats detection rules as code, adding version control, unit testing, and CI/CD integration. It outlines feature milestones from an alpha release in May 2024 to general availability in 2025, including custom rule directories, bulk import/export, and Terraform resources. The evidence is a product announcement without quantitative evaluation, so the claim rests on feature descriptions rather than measured impact.
What they found 3
- May 2024 alpha introduced custom rule directory support and selective test execution
“May 2024: Alpha release of new "roll your own” features Our detection-rules repository is adjusted for customer use, allowing for managing custom rules, adapting the test suite for user needs, and allowing for management of actions and exceptions alongside the rules. Key additions: - Custom rules directory support - Select which test to run based on your requirements - Exceptions and Actions support”
- August 2024 beta added bulk import/export, configurable unit tests, and version lock
“August 2024: "Roll your own” features now beta The functionality is extended to allow import and export of custom rules between Elastic Security and repository, more configuration options and versioning functionality extended to custom rules. New features added: - Bulk import/export of custom rules (based on Elastic Security APIs) - Fully configurable unit test, validation, and schemas - Version lock for custom rules”
- March-August 2025 features became generally available and supported in Elastic Security 8.18+
“March - August 2025: are generally available and supported Using DaC with Elastic Security 8.18 and up: - Supports prebuilt rules management. You can export all prebuilt rules from Elastic Security and store them alongside your custom rules. - Support for rules filtering for export added.”
What’s new here 3
- Alpha release (May 2024) of custom rule directory support, selective testing, and exception/action handling
- Beta release (Aug 2024) adds bulk import/export, fully configurable unit tests, and version lock for custom rules
- GA (Mar-Aug 2025) supports prebuilt rule export, rule filtering, and Terraform resources for rule management