Pcornel
Security · SIEM

Detection Rules

Cheat sheet · https://pcornel.dk/topic.php?topic=4872

Back to the Topic

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

BoundaryEstablishDoes not establish
IngestSource event reached the intended collection/raw pathConnector health does not prove complete telemetry
StructureParser and normalization produced validated fields while raw data remains availableParse success does not prove semantic correctness
ContextEnrichment and correlation use known keys, freshness and time windowsMatch or proximity does not prove attribution or causation
DetectionRule executed over expected scope/data and produced evidenceRule firing does not prove malicious activity
WorkflowAlert reached analyst and investigation preserved evidence/outcomeAlert 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

Confirmation

Confirm action

Continue?