Pcornel
Security · Detection Engineering

Detection Rule

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

Back to the Topic

Answer

A detection rule is logic that searches telemetry for a specific suspicious condition and raises an alert, with a description, severity, MITRE ATT&CK mapping, data source and tested response steps.

Remember

  • Document purpose, data source, logic and response.
  • Map the rule to MITRE ATT&CK.
  • Test before deploying.

First checks

  • Rule metadata: ATT&CK ID, data source, severity, triage steps — quality
  • sigma check <rule.yml> — validate Sigma
  • Unit test with sample events — expected hit

Verify in this order

data → rule → alert with guidance

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.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4879

Confirmation

Confirm action

Continue?