Step 18 of 36 · Detection and response
Logging and detection priorities
Collect the logs that answer an investigator's first questions. Write detections for your top risks, not for everything a tool flags.
Logging everything is expensive, and you still miss the one record you need. Work backwards from an investigation. If an account were taken over, could you say what it accessed, from where and when? The logs that answer that come first: sign-in events, administrative actions, access to sensitive data, changes to production and the pipeline.
For detection, take your top risk scenarios and ask what you would see if each were happening. Build a few high-quality alerts, each with an owner, a written response and a test that proves it fires. An alert nobody acts on is worse than none, because it trains people to ignore the channel.
Check retention before you need it. The common regret in an investigation is that the logs had already expired.
Try this week
- Walk through one top risk scenario: which logs would show it, are they collected, how long are they kept and who could search them tonight?
- Review last month's alerts and retire or fix every rule that never led to action.
Signs you've got it
- For each top scenario you can show a tested detection and a named responder.
- An investigator can reconstruct what an account did over past months without asking another team for access.
Resources
- guideBest practices for event logging and threat detection (opens in a new tab)Australian Signals Directorate
- toolMITRE ATT&CK (opens in a new tab)MITRE
- articleThe Pyramid of Pain (opens in a new tab)David J. Bianco
- guideAlerting and Detection Strategy Framework (opens in a new tab)Palantir
- bookInvestigating Systems (Building Secure and Reliable Systems, chapter 15) (opens in a new tab)Pete Nuttall, Matt Linton and David Seidman