Detection-as-code: Why it works and where to start
summary
Detection-as-code applies software engineering practices—version control as source of truth, CI/CD deployments, linting and test-driven workflows—to threat detection. Practical wins: a linter that enforces metadata and scheduling fields reduces missing-ticket and false-positive edits; pushing changes from Git into the SIEM cuts accidental in-SIEM edits; static tests replay saved log events to catch regressions. More advanced goals: dynamic/continuous testing using Atomic Red Team / MITRE Caldera to generate real test events; dynamic testing is desired but not fully automated yet.
AI-written summary · about
chapters (10)
- 0:00Introduction and background
- 1:04Why detection-as-code matters
- 3:50Challenges in modern detection
- 5:37Defining detection-as-code
- 6:40Agile workflows for detection
- 8:26Expressive detection languages
- 10:52Version control foundation
- 13:00CI/CD for detection logic
- 15:12Test-driven detection development
- 19:25Key takeaways and Q&A
