Lesson 7 of 9 · 22m
Detection Playbooks: Runbooks for Humans, Not Shelfware
How to write concise, executable playbooks for recurring alert types that support judgment instead of replacing it.
Most playbooks fail because they are written for auditors instead of analysts. Fifty pages of prose cannot be used at 02:00. A good playbook is closer to a pilot's checklist: short steps, exact pivots, decision points, and explicit escalation criteria.
A playbook answers five questions
For each alert type, document:
- What does this alert claim?
- What evidence confirms or refutes it?
- What benign explanations are common?
- What immediate actions are authorized?
- When must this become an incident?
If any answer is "ask Dave," the playbook is unfinished.
Example: impossible travel identity alert
## Identity: Impossible Travel
Claim: same account authenticated from two locations faster than physical travel allows.
### First pivots
- Normalize timestamps and source IPs; check VPN, proxy, and corporate egress.
- Compare device, user agent, ASN, and authentication protocol.
- Look for legacy auth, token reuse, or session cookie use.
### Common benign causes
- Mobile carrier egress changes
- Corporate VPN exit in another region
- Cloud service polling mailbox or calendar
- User traveling with cached GPS or inaccurate geolocation
### Escalate when
- MFA fatigue prompts or unusual MFA method registration appear
- Inbox rules, forwarding, OAuth grants, or sharing changes follow the login
- Login uses legacy protocol or unfamiliar device plus high-risk resource access
### Authorized containment
- Revoke sessions and refresh tokens for confirmed compromise
- Require password reset only after session revocation
- Preserve sign-in logs before retention or export window expiresThis is executable. It tells the analyst where to look and when the situation stops being routine.
Playbooks are not automation scripts
Automation can execute repetitive pivots, but playbooks must preserve judgment. A playbook that says "if X then close" without capturing edge cases trains analysts to stop thinking. Use automation for enrichment — asset owner, recent changes, geoip, process prevalence — and humans for interpretation.
def enrich_alert(alert):
return {
"asset": asset_inventory.lookup(alert.host_id),
"recent_changes": change_db.recent(alert.host_id, hours=72),
"process_prevalence": edr.prevalence(alert.sha256),
"identity_risk": idp.risk_score(alert.user),
}Version them like code
Playbooks rot. Put them in git, review changes after incidents, and test them during exercises. Each playbook needs an owner, last-tested date, and links to the exact queries it depends on. If the SIEM field names change, the playbook broke even if the prose still sounds right.
Write for the tired reader
Short headings. Imperative verbs. Tables where comparisons matter. No background essays. Link to deep references, but keep the operational path on one page. If a step requires privileged access, name the group or system needed.
Field notes
- Build playbooks from real closed alerts, not imagined incidents.
- Include negative guidance: what not to do, such as reimaging before memory capture.
- Every playbook should end with evidence to preserve and lessons to feed detection improvement.
- If analysts ignore a playbook, assume the playbook is wrong until proven otherwise.
Was this lesson helpful?