What is detection as code?
AdvancedConceptVulnerability Management and Incident Response
Answer
Detection rules are kept in Git, reviewed through pull requests, tested against sample logs in CI, and deployed automatically to the SIEM, just like application code. Sigma is a vendor-neutral rule format that converts to Splunk, Sentinel KQL, Elastic and others.
title: CloudTrail logging stopped
logsource: { product: aws, service: cloudtrail }
detection:
selection:
eventSource: cloudtrail.amazonaws.com
eventName: [StopLogging, DeleteTrail, UpdateTrail]
condition: selection
level: high
Benefits: version history, peer review, regression tests for noisy rules, and coverage mapping to MITRE ATT&CK.
More on Vulnerability Management and Incident Response
What are the stages of a vulnerability management lifecycle?BeginnerHow do you build a risk-based prioritisation policy for vulnerabilities?IntermediateWhat remediation SLAs are typical by severity?BeginnerHow should a vulnerability exception (risk acceptance) process work?IntermediateHow do you patch vulnerabilities in running containers?IntermediateDependabot vs Renovate: how do they differ?Beginner