Interview Prep/DevSecOps/Vulnerability Management and Incident Response

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.

All DevSecOps questions Roadmap: Security in the pipeline

More on Vulnerability Management and Incident Response