Playbooks, Runbooks and Handover
Two analysts get the same alert, "possible phishing link clicked", on two different nights. One checks the URL, finds nothing and closes it. The other checks the URL, then the proxy log, sees a download, isolates the laptop and resets the user's password. Both acted in good faith; only one followed a process. Playbooks and runbooks make the second outcome the normal one, and a written handover makes sure the next shift knows what the previous one started.
Definitions
- A playbook describes what to decide for a type of alert or incident: the questions to answer, the decision points, who to involve, and when to escalate. It is written for a scenario ("phishing", "brute force on VPN", "malware on endpoint").
- A runbook describes how to do one task, step by step: "isolate a host in the EDR console", "reset a user's sessions in the identity provider", "pull the last 24 hours of proxy logs for a host". Playbooks call runbooks.
- A SOAR (security orchestration, automation and response) platform runs the automatable parts of playbooks: enrichment lookups, ticket creation, isolation after a human approves.
NIST's incident-response guidance (SP 800-61 Rev. 3, April 2025, which replaced the 2012 Computer Security Incident Handling Guide) is written as a CSF 2.0 Community Profile: Govern, Identify and Protect prepare for incidents, and Detect, Respond and Recover handle them; the SOC's playbooks are where those functions become concrete steps. The full incident lifecycle is taught in Malware Analysis, Digital Forensics & Incident Response.
A playbook as data
A playbook that lives in a wiki page drifts from what people do. Writing it as data (YAML in a repository, or the SOAR's own format) makes it reviewable, versioned and partly executable. The program below encodes a small phishing-click playbook as a decision graph and walks it for two synthetic alerts. Each node is a question answered from the alert's enrichment; leaves are actions.
PLAYBOOK = { # node: (question, {answer: next node}) ; leaves start with "ACTION"
"start": ("url_verdict", {"malicious": "download", "unknown": "download", "clean": "ACTION close: benign URL, reason=clean-verdict"}),
"download": ("proxy_download", {True: "exec", False: "creds"}),
"exec": ("edr_new_process_after_download", {True: "ACTION escalate L2 + isolate host (runbook RB-07), severity high",
False: "ACTION quarantine file (RB-03), watch host 24 h, severity medium"}),
"creds": ("credential_form_on_page", {True: "submitted", False: "ACTION close: no download, no form, reason=no-impact"}),
"submitted": ("user_signin_from_new_ip_within_1h", {True: "ACTION escalate L2 + revoke sessions (RB-11) + reset password, severity high",
False: "ACTION reset password (RB-11), notify user, severity low"}),
}
def run(alert):
node, path = "start", []
while not node.startswith("ACTION"):
question, branches = PLAYBOOK[node]
answer = alert[question]
path.append(f"{question} = {answer}")
node = branches[answer]
return path, node
alerts = {
"A-1041 (ws17, user erin)": {"url_verdict": "unknown", "proxy_download": False, "credential_form_on_page": True,
"user_signin_from_new_ip_within_1h": True},
"A-1042 (ws03, user ken)": {"url_verdict": "malicious", "proxy_download": True, "edr_new_process_after_download": False},
}
for name, alert in alerts.items():
path, action = run(alert)
print(name)
for step in path:
print(" ", step)
print(" ->", action[len("ACTION "):])
print()
# A playbook review: every leaf must be reachable and every question must exist in the enrichment.
reachable, todo = set(), ["start"]
while todo:
n = todo.pop()
for nxt in PLAYBOOK[n][1].values():
(reachable.add(nxt) if nxt.startswith("ACTION") else todo.append(nxt))
print(f"{len(reachable)} distinct outcomes, {len(PLAYBOOK)} decision nodes")A-1041 (ws17, user erin)
url_verdict = unknown
proxy_download = False
credential_form_on_page = True
user_signin_from_new_ip_within_1h = True
-> escalate L2 + revoke sessions (RB-11) + reset password, severity high
A-1042 (ws03, user ken)
url_verdict = malicious
proxy_download = True
edr_new_process_after_download = False
-> quarantine file (RB-03), watch host 24 h, severity medium
6 distinct outcomes, 5 decision nodes
Both analysts now take the same path for the same facts. The playbook also documents itself: the questions name the enrichment each step needs (URL verdict, proxy logs, EDR process events, sign-in logs), which tells the platform team which data sources this playbook depends on. If proxy logs stop arriving, the playbook is broken, and you know which ones.
What a good playbook contains
| Part | Example for "phishing link clicked" |
|---|---|
| Trigger | Mail gateway "URL clicked" alert, or a user report |
| Scope and severity | Default medium; high if a privileged user, a download executed or credentials were entered |
| Questions, in order | URL verdict → download? → execution? → credential form? → sign-ins from new places? |
| Data needed | Mail gateway, proxy, EDR, identity provider sign-in logs |
| Actions and their runbooks | Quarantine file, isolate host, revoke sessions, reset password, block domain |
| Approvals | Host isolation of servers needs the system owner or the incident lead |
| Escalation and timing | To L2 within 15 minutes when any "high" condition holds |
| Closure reasons | clean-verdict, no-impact, contained, escalated: fixed codes, so they can be counted |
| Owner and review date | The detection engineer for phishing rules; reviewed every 6 months and after each incident |
Runbooks
A runbook is short and literal. It names the tool, the exact steps, how to verify success and how to undo the step:
RB-07 Isolate a workstation in the EDR console owner: SOC platform reviewed: 2026-09
Precondition : host is a workstation (servers: ask the incident lead first)
Steps : 1. Open the host page, check hostname and last-seen time match the alert
2. Choose "Network isolation"; reason field = case number
3. Confirm the host shows "isolated"; EDR management traffic stays allowed
Verify : host no longer reaches the proxy (proxy log shows no new requests from it)
Undo : "Release from isolation" after the incident lead approves; note it in the caseHandover between shifts
Every shift ends with a handover, written and short, because the people most likely to miss a detail are tired ones. A useful template:
HANDOVER 2026-03-14 06:00 UTC night -> early by: analyst on night shift
Open cases : C-2291 ws17/erin credential phish, sessions revoked 03:40, waiting for user callback
C-2293 VPN brute force from 203.0.113.50, blocked 04:10, watch for new source
Watch : dc01 log volume dropped 40 % at 02:00 (agent restart?) - platform ticket P-812
Changes : suppression S-55 (backup server scans) expires today 12:00, owner detection eng.
Escalated : none pending at incident response
Quiet hours? : 0 alerts from EDR 01:00-02:00 - check the EDR connector, not normalThe last line matters as much as the others: silence is a signal. A source that stops sending is either broken or tampered with, and either way the SOC is blind there.
How playbooks fail, and how that is fixed
- Written once, never tested. Run each playbook in a tabletop exercise or a purple-team test (Evidence Handoff and Purple-Team Exercises), and review it after every real incident.
- Too long to follow at 03:00. Keep the decision path to one screen; details go into runbooks.
- Automated without guardrails. Auto-isolating every host on a medium alert will one day isolate the payment server. Automate enrichment freely; automate disruptive actions only with conditions and approvals.
- No closure codes. Free-text closures cannot be counted, so the false-positive patterns never reach detection engineering.
Practice
1. Change alert A-1042 so the EDR saw a new process after the download. What does the playbook do?
Path: url_verdict = malicious, proxy_download = True, edr_new_process_after_download = True → escalate to L2, isolate the host with RB-07, severity high.
2. Add a branch: if the user is a member of a privileged group, every outcome becomes at least severity high. Where would you put it?
Either as a first question (user_is_privileged) that leads into a copy of the graph with raised severities, or, simpler and less error-prone, as a rule applied after the walk: if alert["user_is_privileged"]: severity = max(severity, "high"). Severity modifiers are usually separate from the decision path.
3. Write the handover line for a source that went quiet, and say who acts on it.
"Watch: firewall fw01 sent no logs since 03:20 UTC (normal: ~200 events/min); platform ticket P-813 opened, on-call engineer paged." The SOC platform engineer acts; the analysts treat alerts depending on that source as unreliable until it is back.
Test yourself
What is the difference between a playbook and a runbook?
- They are the same
- A playbook says what to decide for a scenario; a runbook says how to do one task step by step
- A runbook is for managers
- A playbook only lists phone numbers
In the program, alert A-1041 (no download, credentials entered, sign-in from a new IP) leads to which action?
- Close as benign
- Quarantine the file
- Escalate to L2, revoke sessions and reset the password
- Isolate the host
Why should closure reasons be fixed codes rather than free text?
- They are shorter to type
- They can be counted, so recurring false positives reach detection engineering
- Free text is not allowed by law
- SIEMs cannot store text
A log source suddenly sends nothing at night. What should the handover say?
- Nothing, quiet nights are good
- Record it as a watch item and open a platform ticket: the SOC is blind there
- Delete the source
- Lower all severities