Response playbooks and progressive checklists
This walkthrough explains how blueboard matches Defender XDR and Microsoft Sentinel incidents to Markdown playbooks, how dependent checklist steps unlock as analysts and agents complete earlier steps, how to attach a playbook manually, and how to author and validate custom playbooks as code.
Who this is for
SOC analysts and AI agents (Board.Post) who work checklist steps, and SOC engineers / administrators who write and deploy custom playbooks in playbooks/.
Before you start
- Understand claiming and settling messages (Walkthrough 03).
- For authoring custom playbooks:
.NET 10 SDKinstalled locally to runblueboard playbooks.
Steps
Understand the 10 bundled Defender and Sentinel playbooks
-
When an incident is first ingested, blueboard evaluates all loaded playbooks ordered by priority (highest first, ties broken by filename) and attaches the first match. Only one playbook attaches automatically on first sight.
Playbook ID Priority Matches (categories / titles / MITRE / service sources) Steps ransomware-lateral-movement30 Ransomware, shadow copy, LSASS, lateral movement, PsExec; T1486,T1490,T1003,T10218 oauth-app-consent-abuse25 OAuth, consent grant, illicit consent, service principal; T1528,T1550.001,T1098.0017 bec-aitm-token-theft20 Inbox rule, forwarding rule, BEC, AiTM, stolen session cookie; T1539,T1114,T1564.0089 azure-privilege-escalation20 Key Vault, role assignment, Azure priv-esc; T1098.003,T1552.005,T1078.004;microsoftDefenderForCloud6 password-spray-mfa-fatigue15 MFA fatigue/spam, credential stuffing, brute force; T1110.003,T1110.004,T16216 data-exfiltration-cloud10 Mass download, exfiltration, SharePoint/OneDrive download; T1567,T1530,T10486 malware-infostealer10 Infostealer, C2 beacon, trojan, malicious browser extension; T1555,T1071,T12047 phishing0 Phishing, malicious URL, email messages containing, user clicked; T15667 endpoint-powershell0 Category Execution; PowerShell, download cradle, encoded command;T1059.0017 risky-sign-in0 Impossible/atypical travel, risky/unfamiliar sign-in, anonymous IP, password spray; T10786
Work checklist steps in an incident thread
-
Open the incident page and locate the Playbook progress block in the summary (for example 4 of 7 steps done).
Each step shows its stage (
triage,investigate,contain,eradicate,recover,record) and state (open,claimed,done, orhiddenwhile waiting on prerequisites). -
Claim an open step in the thread (Claim or MCP
claim_message), perform the investigation or request the suggested action if evidence supports it, post yourfinding, and click Mark done (complete_claim { "outcome": "done" }).As soon as a step is marked
done,PlaybookRunner.AfterSettleAsyncimmediately posts every dependent step whoseafterprerequisites are now alldone. A 1-minute backstop timer (unlock-playbook-steps) checks for any missed unlocks.::: important Playbooks never execute or request actions automatically. A step's
suggested_actionis strictly a hint. Someone must still callrequest_action(or use Request action in the UI), policy still evaluates it, and a human approver still decides every destructive action. :::
Attach a playbook manually
-
If an incident arrived without an automatic match (or after you deployed a new playbook), list available playbooks and attach one:
- Over MCP: call
list_playbooks, thenattach_playbook { "incident": "1004", "playbook_id": "bec-aitm-token-theft" }. - Over REST:
POST /api/incidents/<id>/playbookwith{"playbook_id": "bec-aitm-token-theft"}.
blueboard posts the playbook's initial steps into the incident's root
#incidentsthread immediately. - Over MCP: call
Author and validate a custom playbook
-
Create
playbooks/<slug>.md(or place it in your customBLUEBOARD_PLAYBOOKS_DIR) with YAML front matter:---id: suspicious-dns-tunnelingtitle: Suspected DNS tunnelling or exfiltrationpriority: 15match:categories: ["Exfiltration"]titles: ["DNS tunneling", "DNS exfiltration"]techniques: ["T1048.003", "T1071.004"]service_sources: ["microsoftSentinel", "microsoftDefenderForEndpoint"]severities: ["medium", "high"]steps:- id: scope-dnsstage: triagetitle: Quantify DNS query volume, apex domain and affected hostsdetail: Hunt DeviceNetworkEvents / DnsEvents for the apex domain over 72h.- id: block-domainstage: containtitle: Block the tunnelling domain tenant-wideafter: [scope-dns]suggested_action: block_indicator- id: recordstage: recordtitle: Post verdict and add incident commentafter: [block-domain]suggested_action: add_incident_comment---Analyst notes (not posted into the thread). -
Validate every playbook locally (works offline, no database required) before committing:
dotnet run --project api/Blueboard.Tools -- playbooksdotnet run --project api/Blueboard.Tools -- playbooks ./my-playbooksExpect
okfor every file and exit code0. Any broken file is skipped at Function App start-up, logged at error level, and listed underproblemsatGET /api/playbooksandlist_playbooks.
What blueboard checks
| Rule | Refusal / validation error | How to fix |
|---|---|---|
Unknown YAML key (e.g. sugested_action) | invalid front matter: Property 'sugested_action' not found | Fix the spelling; unknown keys are rejected so typos are never ignored. |
Step dependency cycle or missing after ID | steps depend on each other in a cycle or after refers to unknown step | Ensure after forms a DAG referencing step IDs in the same playbook. |
Invalid suggested_action | unknown suggested_action '<kind>' | Use an exact action kind from Catalog.All / list_action_types. |
| Invalid MITRE technique | invalid MITRE technique '<val>' | Use T1234 or T1234.001 format (parent techniques automatically match sub-techniques). |
| Attaching a second playbook to an incident that already has one | incident already has a playbook attached (HTTP 409) | One playbook per incident; post additional tasks as normal question messages. |
What is recorded in audit_log
Claiming, renewing and completing playbook steps write the standard message.claimed, message.claim_renewed, message.claim_done and message.claim_release events. Checklist steps do not inflate the Queue's Open asks counter so freshly ingested incidents do not falsely page analysts.
Troubleshooting
| Symptom | Likely cause | Fix |
|---|---|---|
| A specific playbook didn't attach; a more generic one won | Both matched and the generic one had equal or higher priority (or an earlier filename) | Increase priority (up to 1000) on the more specific playbook and verify with unit tests. |
| Dependent steps didn't appear immediately after marking a step done | A prerequisite in after is still open or claimed | Check the Playbook progress list on the incident summary to see which prerequisite step is unfinished. |
Related guides
- 03 Working a Defender XDR and Sentinel incident, for claiming and settling steps.
- 07 Defender XDR and Microsoft Sentinel case walkthroughs, for detailed step execution on each scenario.
- Developer Guide, for adding playbook regression tests.