Detection Rules
Cheat sheet · https://pcornel.dk/topic.php?topic=4872
Answer
Detection Rules encode testable security hypotheses over telemetry using matches, thresholds, sequences, aggregations or behavioral logic, with explicit data dependencies, scope, exceptions, severity and validation criteria.
Remember
- Detection rule firing ≠ confirmed malicious activity.
- Rule enabled ≠ rule executed on fresh, complete and correctly mapped data.
- Data in SIEM ≠ correctly parsed, normalized, enriched or available to the detection that matters.
- Analytic result ≠ confirmed incident; raw evidence and independent investigation remain required.
First checks
- Rule library mapped to ATT&CK — coverage
- Rule test results (atomic tests) — validation
- Rule version control — detections as code
Verify in this order
data → rule logic → alert + context
Where it usually breaks
First mismatch in event source → collection → parsing/normalization → enrichment/correlation → detection/alert → analyst/automation response → outcome; preserve identity/policy/pre-state before mutation.
SIEM → Detection Rules proof map
| Boundary | Establish | Does not establish |
|---|---|---|
| Ingest | Source event reached the intended collection/raw path | Connector health does not prove complete telemetry |
| Structure | Parser and normalization produced validated fields while raw data remains available | Parse success does not prove semantic correctness |
| Context | Enrichment and correlation use known keys, freshness and time windows | Match or proximity does not prove attribution or causation |
| Detection | Rule executed over expected scope/data and produced evidence | Rule firing does not prove malicious activity |
| Workflow | Alert reached analyst and investigation preserved evidence/outcome | Alert closure does not prove incident resolution or future coverage |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4872