building-soc-playbook-for-ransomware
What it does
This guide helps security teams create a step-by-step plan to respond to ransomware attacks. It covers how to detect, contain, eradicate, and recover data after an attack.
When to use it
- βWhen your security team needs a clear plan for handling ransomware.
- βIf your company lacks a defined procedure for ransomware attacks.
- βTo train your team on how to react to an attack.
Skill link
https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/building-soc-playbook-for-ransomware/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βCreate a ransomware response plan for my security team.β
5 new skills a week. 1 minute to read.
How it works
The guide provides example commands and rules to detect suspicious activity on your systems. It also includes a flowchart to help decide what to do when an attack is detected.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Building SOC Playbook for Ransomware
When to Use
Use this skill when:
- SOC teams need a standardized ransomware response playbook for Tier 1-3 analysts
- An organization lacks documented procedures for ransomware containment and recovery
- Tabletop exercises reveal gaps in ransomware response coordination
- Compliance requirements (NIST CSF, ISO 27001) mandate documented incident playbooks
Do not use during an active ransomware incident as the sole guide β have pre-built playbooks tested and rehearsed before incidents occur.
Prerequisites
- SIEM platform (Splunk ES, Elastic Security, or Sentinel) with endpoint and network data
- EDR solution (CrowdStrike, SentinelOne, or Microsoft Defender for Endpoint) with network isolation capability
- Backup infrastructure with tested recovery procedures and offline/immutable backups
- Communication plan with legal, executive leadership, and external IR retainer contacts
- MITRE ATT&CK knowledge for ransomware technique chains
Workflow
Step 1: Define Detection Triggers
Create SIEM detection rules for early ransomware indicators:
Mass File Encryption Detection (Splunk):
index=sysmon EventCode=11
| bin _time span=1m
| stats dc(TargetFilename) AS unique_files, values(TargetFilename) AS sample_files by Computer, Image, _time
| where unique_files > 100
| eval suspicious_extensions = if(match(mvjoin(sample_files, ","), "\.(encrypted|locked|crypt|enc|ransom)"), "YES", "NO")
| where suspicious_extensions="YES" OR unique_files > 500
| sort - unique_files
Shadow Copy Deletion (T1490):
index=wineventlog sourcetype="WinEventLog:Security" OR index=sysmon EventCode=1
(CommandLine="*vssadmin*delete*shadows*" OR CommandLine="*wmic*shadowcopy*delete*"
OR CommandLine="*bcdedit*/set*recoveryenabled*no*" OR CommandLine="*wbadmin*delete*catalog*")
| table _time, Computer, User, ParentImage, Image, CommandLine
Ransomware Note File Creation:
index=sysmon EventCode=11
TargetFilename IN ("*README*.txt", "*DECRYPT*.txt", "*RANSOM*.txt", "*RECOVER*.html", "*HOW_TO*.txt")
| stats count by Computer, Image, TargetFilename
| where count > 5
Elastic Security EQL variant:
sequence by host.name with maxspan=2m
[process where event.type == "start" and
process.args : ("*vssadmin*", "*delete*", "*shadows*")]
[file where event.type == "creation" and
file.name : ("*README*DECRYPT*", "*RANSOM*", "*HOW_TO_RECOVER*")]
Step 2: Build Triage Decision Tree
RANSOMWARE ALERT TRIAGE
β
βββ Is encryption actively occurring?
β βββ YES β IMMEDIATE: Isolate host from network (Step 3)
β β Do NOT power off (preserve memory for forensics)
β βββ NO β Is this a pre-encryption indicator?
β βββ Shadow copy deletion β HIGH PRIORITY: Isolate and investigate
β βββ Known ransomware hash β HIGH PRIORITY: Block hash, scan enterprise
β βββ Suspicious process behavior β MEDIUM: Investigate, prepare isolation
β
βββ How many hosts affected?
β βββ Single host β Contained incident, follow host isolation procedure
β βββ Multiple hosts (2-10) β Escalate to Tier 2, begin enterprise-wide scan
β βββ Enterprise-wide (>10) β Activate full IR team, engage external retainer
β
βββ Is data exfiltration confirmed?
βββ YES β Double extortion scenario, engage legal for breach notification
βββ NO/UNKNOWN β Check for Cobalt Strike/C2 beacons, review outbound transfers
Step 3: Containment Procedures
Network Isolation via EDR (CrowdStrike Falcon):
# Isolate host using CrowdStrike Falcon API
curl -X POST "https://api.crowdstrike.com/devices/entities/devices-actions/v2?action_name=contain" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"ids": ["device_id_here"]}'
Network Isolation via Microsoft Defender for Endpoint:
# Isolate machine via MDE API
$headers = @{Authorization = "Bearer $token"}
$body = @{Comment = "Ransomware containment - IR-2024-0500"; IsolationType = "Full"} | ConvertTo-Json
Invoke-RestMethod -Uri "https://api.securitycenter.microsoft.com/api/machines/$machineId/isolate" `
-Method Post -Headers $headers -Body $body -ContentType "application/json"
Firewall Emergency Rules:
# Palo Alto β Block SMB lateral spread
set rulebase security rules RansomwareContainment from Trust to Trust
set rulebase security rules RansomwareContainment application ms-ds-smb
β¦
FAQ
What is a 'playbook'?
A playbook is a set of detailed instructions that guide a team on how to respond to a specific event, like a ransomware attack.
What is 'SIEM'?
SIEM (Security Information and Event Management) is a system that collects and analyzes security data from various devices to help detect threats.
What are 'detection, containment, eradication, and recovery phases'?
These are the main steps for handling a security incident: detecting the attack, limiting its damage, removing it, and restoring systems.
Details
Original description by the author
Builds a structured SOC incident response playbook for ransomware attacks covering detection, containment, eradication, and recovery phases with specific SIEM queries, isolation procedures, and decision trees. Use when SOC teams need formalized response procedures for ransomware incidents aligned to NIST SP 800-61 and MITRE ATT&CK ransomware techniques. '
Popularity
- GitHub stars
- 35k
- Ranking position
- #7713
- License
- Apache-2.0
- Updated
- 8/31/2026
Comments
- β¦
More skills from this repository
abusing-dpapi-for-credential-access
35kGives your AI agent ready-made instructions for a specific task, so it does it better and faster.
abusing-shadow-credentials-for-privesc
35kTeaches your AI agent to write clear, well-structured text.
achieving-cmmc-level-2-compliance
35kHelps your agent prepare an environment for CMMC Level 2 compliance. It implements security requirements and manages necessary documentation.
acquiring-disk-image-with-dd-and-dcfldd
35kHelps your agent create exact copies of hard drives. This is useful for ensuring no information is lost or altered during investigations.
Similar skills
reverse-engineer-anything
422kHelps your agent look inside shipped apps and packages to explain features, compare versions, or guide a rebuild, using the REA tool.
1password
394kHelps your agent set up the 1Password CLI, sign in, and read or inject secrets without printing their values into chat.
healthcheck
394kHelps your agent audit the computer or server that runs OpenClaw for security risks, such as SSH, firewall, updates, and backups, then suggest safe fixes.