Playbooks

T1486

Ransomware Response

A step-by-step playbook for the first 60 minutes of a ransomware incident — isolate, identify, preserve evidence, check backups, and decide whether to contain or escalate. Includes detection Event IDs, SPL/KQL queries, and variant-specific triage.

View on Graph

What This Playbook Covers

  • This playbook handles the first 60 minutes between the moment ransomware is confirmed (encrypted files, ransom note present, or encryption in progress) and the initial containment decision.
  • It does not replace a full incident response plan — it is the immediate-response checklist for the SOC analyst or first responder who gets the call before the IR team is assembled.
  • MITRE ATT&CK maps the impact phase to T1486 (Data Encrypted for Impact).

Phase 0: Triage — Confirm It Is Ransomware (0-5 minutes)

Before executing any response actions, confirm you are dealing with ransomware:

IndicatorWhere to CheckConfirmation
File renamingNetwork share — are .locked, .encrypt, .crypt, or random file extensions appearing?Check a few files — can they still be opened?
Ransom noteDesktop, root of drives, all directories — README.txt, HOW_TO_DECRYPT.html, DECRYPT_INSTRUCTIONS.txtRead a line. Note the group name and contact method.
Process encryptionEDR alert or manual check — is a process writing to many files at high speed?Task Manager → High disk I/O from an unknown process
High disk I/O alertsEDR or Sysmon — thousands of WriteFile operations per secondCorrelate with file rename events (Sysmon Event ID 11)

SPL query — detect mass file encryption via Sysmon Event ID 11 (run in Splunk):

index=windows sourcetype=WinEventLog:Sysmon EventCode=11
| stats count by Computer, Image, TargetFilename, bin(_time, 60s)
| where count > 100
| eval alert = "CRITICAL — " . count . " file modifications in 60 seconds by " . Image . " — possible ransomware encryption in progress"
| table _time, Computer, Image, count, TargetFilename, alert
| sort - count

SPL query — detect file rename storm (Sysmon Event ID 11 with rename):

index=windows sourcetype=WinEventLog:Sysmon EventCode=11
| search TargetFilename="*.*.encrypt" OR TargetFilename="*.*.locked" OR TargetFilename="*.*.crypt" OR TargetFilename="*.*.lockbit" OR TargetFilename="*.*.blackcat" OR TargetFilename="*.*.ako"
| stats count by Computer, Image, bin(_time, 30s)
| where count > 20
| eval alert = "CRITICAL — mass file renaming by " . Image . " — ransomware likely"
| table _time, Computer, Image, count, alert

Phase 1: Immediate Isolation (5-15 minutes)

Do NOT shut down affected systems. Shutting down destroys volatile evidence (memory, running processes, network connections) and may trigger additional encryption behavior on reboot.

Checklist — Short-Term Isolation

  • Isolate the affected host — disable the network interface or block switch port. Do not use shutdown.
  • Block outbound C2 at the firewall — if the ransomware variant is known, block its known C2 domains/IPs. If unknown, temporarily block all outbound traffic from the affected network segment.
  • Disconnect network shares — prevent the encryptor from reaching mapped drives. The attacker may have already poisoned the network share with a scheduled encryption job.
  • Isolate other hosts that are communicating with the affected host. Check Sysmon Event ID 3 (network connections) for lateral movement indicators.
  • Disable the affected user’s AD account — the credentials used at the time of compromise may be compromised.

What NOT to Do

ActionWhy It’s Dangerous
Power off the systemDestroys memory evidence, may trigger “I’ve been detected, encrypt everything” logic
Run anti-malware scanMay alter evidence, delete artifacts, or trigger additional malicious behavior
Reimage immediatelyYou lose all forensic evidence. Image first, reimage later.
Pay the ransomNo guarantee of decryption. Emboldens attackers. Funds criminal operations.

Phase 2: Variant Identification (15-25 minutes)

Knowing the ransomware family tells you whether decryption is possible, whether data exfiltration was involved, and what containment steps are known to work.

Quick Identification Checklist

ClueWhere to CheckPossible Variant
File extension.lockbit, .abcd, .encrypt, .blackcatLockBit, ALPHV/BlackCat, Akira, Royal
Ransom note nameREADME.txt, HOW_TO_DECRYPT.html, RECOVER-FILES.txt, DECRYPT_INSTRUCTIONS.txtCheck note content against known variants
Contact methodEmail address, Tox ID, qTox chat, web portalTOX-based = LockBit or similar; Email-based = older variants
Encryption speedFast (minutes) vs slow (hours)Fast = intermittent encryption (LockBit, BlackCat); Slow = full encryption (older variants)
Exfiltration noteRansom note mentions “your data was stolen”Double-extortion variant — data was exfiltrated before encryption
Background encryptionCan you use the machine while it’s encrypting?Yes = user-mode encryption; No = kernel-mode or interrupt-driven

Variant-Specific Checks

VariantKnown File ExtensionKnown C2 PortsExfiltration MethodDecryption Tool
LockBit 3.0.lockbit443, 80Yes — StealBit toolNo public tool
ALPHV/BlackCat.blackcat443, 8443Yes — Rust-basedNo public tool
Akira.akira443YesNo public tool
Royal.royal443, 80YesNo public tool
BianLian.bianlian443Yes — data-only extortion recentlyNo
Phobos.phobos, .ekingVarious RDP portsNoNo public tool
Magniber.mgnb443NoNo public tool
WannaCry.wncry445 (SMB EternalBlue)NoYes — free tool available
NotPetyaNo extension (overwrites MBR)445NoNo recovery

SPL query — identify variant by ransom note filename:

index=windows sourcetype=WinEventLog:Sysmon EventCode=11
| search TargetFilename IN ("*README*.txt", "*HOW_TO_DECRYPT*", "*RECOVER*", "*DECRYPT*", "*README*.hta", "*HELP_YOUR_FILES*", "*DECRYPT_INFO*", "*RESTORE*")
| stats count by Computer, TargetFilename
| table _time, Computer, TargetFilename, count

Phase 3: Evidence Preservation (25-35 minutes)

What to Capture Before Cleanup

EvidenceCapture MethodWhy Important
Full memory dumpdumpit.exe or winpmemContains encryption keys (if still in memory), C2 endpoint data, running processes
Encrypted filesCopy 5-10 encrypted files and the originals (if available)For file analysis and variant confirmation
Ransom noteFull copy — filename, contents, metadataVariant identification, communication channels
Event logswevtutil epl Security C:\captures\security.evtxProcess creation, account changes, service installation
Sysmon logswevtutil epl Microsoft-Windows-Sysmon/Operational C:\captures\sysmon.evtxFull telemetry trail
Network capturesIf the host is still connected, capture live trafficC2 communication patterns, data exfiltration evidence
Registry exportExport HKLM\SYSTEM, HKLM\SOFTWARE, HKLM\SAMService entries, persistence, configuration

Phase 4: Backup Assessment and Recovery Options (35-45 minutes)

Backup StatusActionRisk
Offline backups available (unaffected)Wipe and restore from clean backup.Low. Ensure the infection vector is closed before restoration.
Online backups available (network-connected)Verify no encryption reached the backup server.Medium. Attacker may have encrypted backups too.
No backupsDo not pay ransom. Engage IR team for recovery assessment.High. Data may be permanently lost.
Backups encryptedCheck for volume shadow copies — vssadmin list shadows.Low chance on modern ransomware.

Backup Verification Commands

# Check for volume shadow copies
vssadmin list shadows
vssadmin list providers

# Check if shadow copies were deleted
vssadmin list shadows
# If empty or different volume, attacker deleted them (common ransomware behavior)

SPL query — detect volume shadow copy deletion:

index=windows sourcetype=WinEventLog:System EventCode=33 OR EventCode=32
| search EventID IN (33, 32)
| eval alert = "CRITICAL — Volume Shadow Copy deleted — ransomware or intentional evidence destruction"
| table _time, Computer, EventCode, Message

Phase 5: Escalation and Decision (45-60 minutes)

Escalation Thresholds

FindingWho to Contact
Single workstation encryptedSOC Manager + IT team (reimage)
File server encryptedIR team + IT management
Multiple servers encryptedIR team + executive leadership
Domain Controller encryptedIR team + executive + CISA (critical infrastructure)
Data exfiltration also confirmedIR team + legal + executive + law enforcement

Decision Matrix

ScenarioContainment ActionRecovery Path
Single host, no lateral movementIsolate host. Image forensically.Restore from backup. Reimage.
File server + workstationIsolate all affected hosts. Scan remaining network for encryption process.Restore file server from clean backup. Reimage workstations.
Domain-wide encryptionKill network. All switches to isolated segments.Restore from offline backup. Rebuild domain from backup.
Data exfiltration confirmedPreserve evidence for law enforcement. Isolate. Engage breach counsel.Standard recovery + breach notification requirements.

Sources