soar-playbook-design
Skill0 starsChanged 14 days agoMITView on GitHub
Design a SOAR or automation playbook as an explicit step graph with triggers, inputs, enrichment, decisions, approval gates, rollback, timeouts and a kill switch, then lint it with a bundled checker. Use when designing a new SOAR playbook, porting one between platforms (Sentinel Logic Apps, Splunk SOAR, XSOAR, Tines, Torq, Shuffle), or reviewing whether an existing playbook can fail safely.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- ftrout/secops-claude-skillstheir own version, first seen Sep 18, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- ftrout/secops-claude-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository273 other files it gives its agents.
- ad-attack-path-analysisSkill
- adcs-security-reviewSkill
- ad-privileged-access-reviewSkill
- dcsync-detectionSkill
- gpo-security-reviewSkill
- kerberos-attack-detectionSkill
- agent-tool-permission-reviewSkill
- ai-incident-responseSkill
- llm-gateway-controlsSkill
- llm-security-evaluationSkill
- mcp-server-security-reviewSkill
- model-artifact-securitySkill
- prompt-injection-reviewSkill
- rag-security-reviewSkill
- api-abuse-detectionSkill
- api-authorization-testingSkill
- api-inventorySkill
- api-schema-securitySkill
- dast-baselineSkill
- sast-triageSkill
- sca-dependency-riskSkill
- secure-code-reviewSkill
- security-requirementsSkill
- threat-modelingSkill
- asset-criticality-tieringSkill
- asset-inventory-reconciliationSkill
- external-attack-surface-reviewSkill
- shadow-it-discoverySkill
- aws-credential-compromiseSkill
- aws-iam-reviewSkill
- aws-org-guardrailsSkill
- cloudtrail-investigationSkill
- guardduty-triageSkill
- s3-exposure-reviewSkill
- azure-activity-investigationSkill
- azure-rbac-reviewSkill
- conditional-access-reviewSkill
- entra-audit-investigationSkill
- entra-signin-investigationSkill
- backup-assuranceSkill
- critical-service-mappingSkill
- ransomware-recoverySkill
- recovery-exerciseSkill
- cloud-exposure-reviewSkill
- cloud-incident-responseSkill
- cloud-logging-baselineSkill
- cloud-posture-assessmentSkill
- audit-evidence-packageSkill
- continuous-control-monitoringSkill
- control-mappingSkill
- control-testing-samplingSkill
- container-incidentSkill
- dockerfile-hardeningSkill
- image-scanningSkill
- runtime-detection-falcoSkill
- db-audit-loggingSkill
- db-exfiltration-investigationSkill
- db-hardeningSkill
- db-privilege-reviewSkill
- data-classificationSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 24
Keep human: scoping, attribution, legal/HR decisions, anything irreversible (deleting mailboxes, wiping devices).
- Distinctive: line 28
Write the playbook in this vendor-neutral JSON before building it.
- Very specific: line 78
Fail to a human: Every on_error and default ends in an analyst task with the context gathered so far, never in a silent stop.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
SOAR Playbook Design
Design the playbook on paper as a graph first, lint the graph, and only then click it together in the vendor editor. Most production incidents caused by automation come from paths nobody drew: the null branch, the retry loop, the connector that hangs.
1. Decide whether to automate at all
Automate a step when all are true:
- The step is executed the same way by every analyst today (written runbook exists; see
runbook-authoring). - Volume justifies it (rule of thumb: > 20 executions per week, or the step blocks MTTR).
- Inputs are structured fields, not free text an analyst interprets.
- A wrong result is either harmless (enrichment, notification) or reversible and gated (containment).
Keep human: scoping, attribution, legal/HR decisions, anything irreversible (deleting mailboxes, wiping devices).
2. Model the playbook as a step graph
Write the playbook in this vendor-neutral JSON before building it. Every platform maps onto it.
{
"name": "phish-reported-email",
"owner": "soc-automation",
"kill_switch": "Disable Logic App 'pb-phish' or set flag automation/phish=off in the config list",
"start": "parse",
"steps": {
"parse": {"type": "query", "timeout_s": 60, "next": "enrich"},
"enrich": {"type": "enrich", "timeout_s": 120, "on_error": "manual", "next": "verdict"},
"verdict": {"type": "decision", "branches": {"malicious": "approve", "benign": "close"}, "default": "manual"},
"approve": {"type": "action", "action": "purge_message", "destructive": true, "approval": "soc-l2",
"rollback": "restore_message", "idempotency_key": "{{message_id}}", "timeout_s": 300,
"on_error": "manual", "next": "notify"},
"restore_message": {"type": "action", "action": "restore_message", "timeout_s": 300, "approval": "soc-l2",
"rollback": "purge_message", "destructive": false, "next": "notify"},
"notify": {"type": "notify", "next": "end"},
"manual": {"type": "notify", "next": "end"},
"close": {"type": "notify", "next": "end"},
"end": {"type": "end"}
}
}Step contract:
| Field | Meaning |
type | query, enrich, decision, action, notify, wait, end |
next / branches / default | Successors. A decision must have a default for values nobody planned for |
timeout_s | Required on every external call |
on_error | Where a connector failure goes (usually a "hand to analyst" step) |
destructive, approval, rollback, idempotency_key | Required for anything that changes state in production |
auto_approved_by, exclusions | Only for pre-approved automatic containment (see automated-containment-guardrails) |
max_iterations | Required on any step that loops (polling, retries) |
params | Connector parameters. Credentials are vault references, never literals |
3. Lint the graph
python3 scripts/playbook_lint.py playbooks/*.json --fail-on highThe linter reports dangling and unreachable steps, paths that never reach end, loops without max_iterations, decisions without a default, disruptive actions (explicit or by verb: isolate, disable, revoke, purge, ...) without approval/rollback/idempotency key, auto-approved actions without exclusions, external calls without timeouts, a missing owner or kill switch, and literal secrets in params. Exit code 1 when any finding reaches --fail-on; run it in CI next to the exported playbooks.
4. Design rules
- Trigger narrowly. Bind to specific analytic rule IDs, not "any high-severity incident". Record the rule IDs in the playbook description.
- Enrich before you decide. Decisions read fields, never raw text. Normalize verdicts to a small enum (
malicious,suspicious,benign,unknown). - Fail to a human. Every
on_erroranddefaultends in an analyst task with the context gathered so far, never in a silent stop. - Write back. Each step comments on the incident: what ran, inputs, result, duration. The case must be reconstructable without the SOAR run history (which often expires after 30-90 days).
- Idempotency. Re-running the playbook on the same incident must not double-act. Key actions on the entity (message ID, user object ID, device ID).
- Least privilege connectors. One managed identity or service account per playbook, scoped to the actions it performs. A phishing playbook does not need
User.ReadWrite.All. - Kill switch. A single documented control (disable the workflow, feature flag in a watchlist/config table) that stops all instances. Test it.
5. Platform mapping notes
| Concept | Sentinel (Logic Apps) | Splunk SOAR | Cortex XSOAR | Tines / Torq |
| Approval gate | Teams/Outlook approval action | prompt block | Data collection task / manual task | Prompt / Approval step |
| Timeout | Action retry policy + timeout setting | Block timeout | Task timeout | Action timeout |
| Kill switch | Disable the Logic App; automation rule order | Disable playbook / set inactive | Disable playbook trigger | Disable story / workflow |
| Secrets | Managed identity, Key Vault reference | Asset config | Credentials store | Credentials / secrets store |
Output
- Step-graph JSON committed next to the exported vendor playbook.
- Linter output with zero
high/criticalfindings or a documented exception. - Runbook link, owner, kill switch and the analytic rule IDs that trigger it.
Related skills
playbook-testing, automation-risk-review, automated-containment-guardrails, enrichment-automation, runbook-authoring, alert-triage
References
- NIST SP 800-61r3 (Incident Response Recommendations): https://csrc.nist.gov/pubs/sp/800/61/r3/final
- Microsoft Sentinel playbooks: https://learn.microsoft.com/en-us/azure/sentinel/automation/automate-responses-with-playbooks
- Splunk SOAR playbooks: https://docs.splunk.com/Documentation/SOAR/current/Playbook/Overview
- CISA Federal Incident and Vulnerability Response Playbooks: https://www.cisa.gov/resources-tools/resources/federal-government-cybersecurity-incident-and-vulnerability-response-playbooks
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

