Stage 5 of 9 · about 8–12 hours · intermediate · checked 2026-11-23

Playbooks, SOPs and SOAR

Goal. By the end you can choose the right kind of response document for a job, write one a tired analyst can follow, and decide what to automate, what to put behind a human approval and what to leave manual.

Why it matters#

At 03:00 nobody should be inventing a process. Written procedures make response consistent and fast, and they carry the hard-won details: collect memory first, call the bank, revoke the sessions as well as resetting the password. Automation multiplies all of that, and it multiplies mistakes too. A badly designed automatic action blocks the wrong thing at machine speed while nobody is watching.

What you will learn#

The document hierarchy#

Response documents form a ladder, from broad intent down to keystrokes:

Layer What it settles An example title
Policy That the organisation will respond to incidents, and who has the authority Incident response policy
Plan The people, roles, severity levels and contact routes for any incident Incident response plan
Procedure (often called an SOP) A repeatable task that many situations need Isolating a laptop
Playbook The decisions and order of work for one kind of incident Ransomware playbook
Runbook The exact clicks or commands in one product Isolating a host in our EDR

The higher a document sits, the less often it should change. Teams use these words loosely, so agree your own definitions and write them down. The distinction that pays off is task versus situation: a playbook calls procedures instead of repeating them, so a change to how you isolate a host is made once.

NIST SP 800-61 Rev. 3 lists what a policy should contain: management commitment, purpose, scope, definitions, roles and authorities (including who may disconnect or shut down assets), severity guidance and performance measures. It adds that procedures should cover the most common incident types and the urgent ones, such as redeploying your main authentication platform, and that many organisations package procedures as playbooks.

What goes in a playbook#

Text
HEADER     Name, ID, owner, review date, what starts it and what it does not cover
DEFAULTS   Starting severity, who is told, what the SOC may do without asking
WORK       Confirm, contain, remove, restore, with each choice written as a branch
GUARDS     What to save first, and what never to do
CLOSE      Who to notify, and what the ticket must record for later metrics
LINKS      Procedures it calls, related detections and ATT&CK techniques
CHANGES    A short log of edits

An excerpt, with invented details:

Text
PLAYBOOK   PB-ATO-01 Suspected account takeover      OWNER  SOC lead     REVIEW  2027-05-01
TRIGGER    Alert "sign-in from new country, then MFA change"; user reports unexpected prompts
AUTHORITY  SOC may revoke sessions and remove mailbox rules. Disabling a service or executive
           account needs the incident commander. Password resets only via the verified phone number.
STEP 3     IF the user is in finance OR payment mail was touched THEN set severity High and
           tell finance to hold bank-detail changes (see PB-BEC-01).
DO NOT     Email the user on the affected mailbox. Reset the password before sessions are revoked.

What makes one usable at 03:00:

  • Write commands, not descriptions: "Revoke the user's sessions", never "sessions should be revoked".
  • Where the reader must choose, spell out both paths.
  • Order steps by urgency, and put the step that saves evidence ahead of any step that would wipe it.
  • Grant routine moves in advance. If isolating one laptop needs a manager, the step will be skipped at night.
  • End each risky step with how to confirm it worked and how to reverse it.
  • Name the point at which the reader must stop and call someone.
  • Have a person who did not write it follow it in a lab, then fix every hesitation.
  • Keep the urgent ones where you can still reach them when file shares and chat are down.

Targets and keeping documents alive#

Write down targets for acknowledging an alert, making the first decision, deciding on containment and sending updates. Targets are promises. Start with ones you can meet, measure them (Stage 1) and tighten later.

Assign one person to each document and put a date on revisiting it, or it drifts out of date unnoticed. Keep them under version control with review, as you would code (the Detection Engineering roadmap's stage on detection-as-code shows how). Review them after every incident and exercise, and give analysts an easy way to flag a step that did not work.

SOAR basics#

SOAR (security orchestration, automation and response) software connects your tools and runs workflows across them. The parts are:

  • a trigger: an alert, a reported email or a ticket;
  • enrichment: looking up context;
  • a decision: a branch on what was found;
  • an action: block, isolate, disable, revoke;
  • an approval: a step that waits for a person;
  • a connector: the integration to each product;
  • a case: the record of what happened.

Products include Splunk SOAR, Microsoft Sentinel (automation rules and playbooks built on Azure Logic Apps, which can incur extra charges) and the open-source Shuffle. A typical flow for a reported phishing email:

  1. Extract the sender, links and attachments.
  2. Look up reputation, or detonate in a sandbox.
  3. Decide: malicious or not?
  4. If malicious, ask a person to approve an organisation-wide purge, then block and purge.
  5. Write the result to the case, and close it or escalate.

Automation runs a procedure faster. It does not fix an unclear one. Write the manual playbook first, run it for a while, then automate the stable parts.

What to automate, and what to ask a person#

Ask three questions of every action. How sure is the signal? How costly is waiting? How easily can the action be undone?

Level Use it when Examples
Fully automatic The action is safe, reversible or informational Enrichment, de-duplication, opening the ticket, paging the on-call, closing a known-benign pattern with spot checks, isolating a standard workstation on a high-confidence ransomware precursor
Automatic with approval The action is disruptive or hard to undo, and a person can decide in one click Disabling an executive or service account, blocking a shared address range, purging mail from every mailbox, isolating a server
Left to people It needs judgement, law or reputation Deciding intent in an insider case, notifying regulators or customers, public statements, any payment

Safeguards:

  • An allow-list of assets automation must never touch: domain controllers, core network devices, the SOC's own tools.
  • A rate limit or circuit breaker: after a set number of actions in an hour, stop and page a person.
  • A dry-run mode, and testing in a non-production environment first.
  • Check that each action succeeded, and handle partial failure. Do not assume.
  • Make actions idempotent, so running one twice does no harm.
  • Log every automated action to the case.
  • Give the automation account the least privilege that works, and watch it like any other privileged account.
  • Keep a kill switch.

Be honest about the cost. Automation adds failure modes: an expired API key, a changed log format, a connector that quietly stops. Someone must own it and monitor it.

Do this#

  1. Write a playbook (about 2 hours). Use the skeleton for "suspicious sign-in followed by a new inbox rule", the Stage 2 worked example. Include authority, evidence and a do-not line.
  2. Cold-read it (30–45 minutes). Give it to someone who did not write it, and watch where they hesitate. Fix each place.
  3. Mark up an automation on paper (1 hour). Draw the phishing flow above. Label every step automatic, approval or manual, with one line of reasoning.
  4. Build a small workflow (3–4 hours). In a lab, use Shuffle, or a Logic App in a free trial tenant: a webhook trigger, one enrichment lookup, a decision, an approval step and a note on a case. Use fake data only.
  5. Break it on purpose (1 hour). Add an allow-list and a rate limit. Feed it a protected asset and a burst of 50 alerts, and confirm it stops. List what you would monitor to know it is still working.

Resources#

Free first

Paid or needs an account

  • None needed for this stage.

Checkpoint#

You are ready to move on when you can:

Go deeper (optional)#

  • Apply the review and testing habits from Detection-as-code to your playbooks.
  • Read how First detections writes the "what to do" notes that analysts see when a rule fires, and link your playbook from one.

0 / 6 checkpoints ticked

View this page on GitHub

9 lines · 59 stages · 77 pages 0 of 59 stages done