ir-playbook
SkillMonitoring & opsExecutes a structured incident response workflow based on NIST SP 800-61 Rev 2 and the SANS Incident Handler's Handbook. Auto-invoked when the user reports a security incident, asks how to respond to a breach, or needs help with incident classification, containment decisions, stakeholder notification, or evidence preservation. Produces an incident response plan with severity determination, containment decision tree, communication templates, and escalation criteria.
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the ir-playbook skill
What this skill tells your AI
The instructions your AI receives, as published by unitoneai/securityskills in skills/incident-response/ir-playbook/SKILL.md and read by ahel’s review.
Frameworks: NIST SP 800-61 Rev 2 (Computer Security Incident Handling Guide), SANS Incident Handler's Handbook Role: SOC Analyst, Security Engineer, vCISO Time: 30-60 min Output: Incident response plan with severity classification, containment decision tree, communication templates, escalation criteria, and post-incident handoff checklist
1. When to Use
If a target is provided via arguments, focus the review on: $ARGUMENTS
Invoke this skill when any of the following conditions are met:
- Active security incident detected -- An alert, anomaly, or user report indicates a potential or confirmed security event requiring coordinated response.
- Incident classification needed -- An event has been detected and needs to be categorized by type (malware, unauthorized access, data exfiltration, denial of service, insider threat) and severity.
- Containment decision required -- The responder needs guidance on whether to isolate, quarantine, or monitor the affected system based on business impact and threat severity.
- Stakeholder notification planning -- The incident requires communication to internal leadership, legal counsel, regulators, law enforcement, or affected customers.
- Evidence preservation guidance -- Digital evidence must be collected and preserved before containment or eradication actions alter the environment.
- Escalation criteria evaluation -- The responder needs to determine whether the incident warrants escalation to senior leadership, external IR firms, or law enforcement.
- Post-incident handoff -- The active response phase is concluding and the incident must be transitioned to the post-incident review process.
Do not use when: The task is purely forensic evidence collection (use forensics-checklist), focused solely on containment tactics (use containment), or limited to post-incident retrospective (use post-incident-review).
2. Context the Agent Needs
Before beginning, gather or confirm the following. Mark each item as obtained or missing and proceed with available information, noting gaps as assumptions.
- Incident trigger -- What alert, report, or observation initiated the response? (SIEM alert, EDR detection, user report, external notification, threat intel)
- Affected systems -- Hostnames, IP addresses, cloud resources, applications, and services impacted or suspected of compromise.
- Timeline -- When was the activity first observed? When was it reported? Known duration of exposure.
- Indicators of compromise (IOCs) -- File hashes, IP addresses, domains, URLs, email addresses, registry keys, or behavioral indicators observed.
- Business context -- What business functions do the affected systems support? Revenue impact, customer impact, regulatory exposure.
- Current state -- Is the attack ongoing, contained, or resolved? What actions have already been taken?
- Existing IR plan -- Does the organization have a documented IR plan, designated IR team, and established communication channels?
- Regulatory obligations -- Applicable breach notification requirements (GDPR 72-hour rule, HIPAA, state breach notification laws, SEC 4-day rule, PCI DSS).
- Third-party dependencies -- Managed security providers (MSSP/MDR), cyber insurance carrier notification requirements, external IR retainer.
3. Process
This process follows the NIST SP 800-61 Rev 2 four-phase lifecycle, cross-referenced with the SANS six-step process where the models diverge.
NIST SP 800-61 Rev 2 Phases:
1. Preparation
2. Detection & Analysis
3. Containment, Eradication & Recovery
4. Post-Incident Activity
SANS Incident Handler's Handbook Steps:
1. Preparation
2. Identification
3. Containment
4. Eradication
5. Recovery
6. Lessons Learned
Mapping:
NIST Phase 1 = SANS Step 1
NIST Phase 2 = SANS Step 2
NIST Phase 3 = SANS Steps 3 + 4 + 5
NIST Phase 4 = SANS Step 6
Phase 1: Preparation (NIST) / Preparation (SANS)
Verify that the foundational elements for incident response are in place. If gaps exist, document them as findings and proceed.
IR readiness checklist:
| Element | Status | Notes |
|---|---|---|
| Designated IR team with roles and contact info | [ ] | NIST 800-61 Section 2.4.1 |
| Documented IR plan reviewed within last 12 months | [ ] | |
| Communication channels (out-of-band, not dependent on compromised infrastructure) | [ ] | Secure messaging, bridge lines |
| Forensic toolkit available (disk imaging, memory capture, network capture) | [ ] | |
| Log sources centralized and accessible (SIEM, cloud trail, EDR console) | [ ] | |
| Legal counsel identified and reachable | [ ] | Internal or external |
| Cyber insurance policy and carrier contact | [ ] | Notification within 24-72h typical |
| External IR retainer (if applicable) | [ ] | |
| Regulatory notification requirements documented | [ ] | GDPR, HIPAA, state laws, SEC |
| Evidence storage with chain-of-custody procedures | [ ] |
Phase 2: Detection and Analysis (NIST) / Identification (SANS)
Step 2.1: Incident Classification
Classify the incident using the NIST SP 800-61 taxonomy:
| Incident Category | Description | Examples |
|---|---|---|
| Unauthorized Access | Unauthorized logical access to systems, networks, or data | Compromised credentials, brute force success, privilege escalation |
| Malware | Malicious code execution on organization systems | Ransomware, trojan, worm, cryptominer, rootkit |
| Destructive / Wiper | Malware designed to destroy data or render systems inoperable, with no recovery mechanism (unlike ransomware) | Wiper malware, MBR overwrite, firmware destruction, partition table corruption |
| Data Exfiltration | Unauthorized transfer of data outside the organization | Database dump to external host, email forwarding rule, cloud storage sync |
| Denial of Service | Disruption of service availability | DDoS, application-layer flood, resource exhaustion |
| Insider Threat | Malicious or negligent actions by authorized users | Data theft by employee, accidental exposure, policy violation |
| Supply Chain Compromise | Compromise via trusted third-party software or service | Malicious update, compromised dependency, vendor breach |
| Web Application Attack | Exploitation of web application vulnerabilities | SQL injection, XSS, SSRF, API abuse |
| Social Engineering | Manipulation of personnel to gain access or information | Phishing, BEC, vishing, pretexting |
Step 2.2: Severity Determination
Assign severity based on the combination of functional impact, information impact, and recoverability (NIST SP 800-61 Table 3-2):
Functional Impact:
| Level | Definition |
|---|---|
| None | No effect on the organization's ability to provide services |
| Low | Minimal effect; organization can still provide all critical services |
| Medium | Organization has lost the ability to provide a critical service to a subset of users |
| High | Organization has lost the ability to provide one or more critical services to all users |
Information Impact:
| Level | Definition |
|---|---|
| None | No information was exfiltrated, changed, deleted, or compromised |
| Privacy Breach | PII or PHI of individuals was accessed or exfiltrated |
| Proprietary Breach | Trade secrets, IP, or non-public business information was accessed or exfiltrated |
| Integrity Loss | Sensitive or critical information was changed or deleted |
Recoverability:
| Level | Definition |
|---|---|
| Regular | Time to recovery is predictable with existing resources |
| Supplemented | Time to recovery is predictable but requires additional resources (external IR, vendor support) |
| Extended | Time to recovery is unpredictable; requires significant resources |
| Not Recoverable | Recovery is not possible (e.g., data destroyed with no backup) |
Severity Matrix:
| Severity | Criteria | Response Posture |
|---|---|---|
| SEV-1 (Critical) | High functional impact OR privacy/integrity breach with extended/not-recoverable timeline | All-hands response; executive notification within 1 hour; external IR engagement; legal counsel activated |
| SEV-2 (High) | Medium functional impact OR proprietary breach with supplemented recovery | Dedicated IR team engaged; management notification within 4 hours; consider external support |
| SEV-3 (Medium) | Low functional impact OR information impact with regular recovery | IR team investigates during business hours; management notification within 24 hours |
| SEV-4 (Low) | None/minimal functional impact; no information impact; regular recovery | Documented and monitored; addressed in normal operations |
Step 2.3: Indicator Analysis
For each IOC, document and cross-reference:
Indicator Analysis Record:
- Indicator Type: [IP | Domain | Hash (MD5/SHA1/SHA256) | URL | Email | File Path | Registry Key | Behavioral]
- Indicator Value: [value]
- Source: [SIEM alert | EDR detection | Threat intel feed | Manual discovery]
- First Seen: [YYYY-MM-DD HH:MM UTC]
- Last Seen: [YYYY-MM-DD HH:MM UTC]
- Affected Systems: [hostname/IP list]
- TI Enrichment: [VirusTotal | AbuseIPDB | Shodan | MISP | Internal TI]
- ATT&CK Technique: [T-code and name]
- Confidence: [Confirmed | Probable | Suspected]
Phase 3: Containment, Eradication, and Recovery (NIST) / Containment + Eradication + Recovery (SANS)
Step 3.1: Containment Decision Tree
Use this decision tree to determine the appropriate containment strategy. Each decision balances security risk against business impact.
START: Is the attack actively ongoing?
|
+-- YES --> Is data actively being exfiltrated?
| |
| +-- YES --> IMMEDIATE CONTAINMENT
| | - Network isolation (disable switchport / security group)
| | - Block egress to C2 IPs/domains at firewall
| | - Capture memory before power-off if possible
| | - Notify legal (potential breach notification trigger)
| |
| +-- NO --> Is the attacker moving laterally?
| |
| +-- YES --> SHORT-TERM CONTAINMENT
| | - Isolate affected subnet/VLAN
| | - Disable compromised accounts
| | - Deploy emergency firewall rules
| | - Preserve evidence before changes
| |
| +-- NO --> MONITORED CONTAINMENT
| - Increase logging/monitoring
| - Deploy network capture on affected segments
| - Prepare containment actions for rapid execution
| - Set time limit for observation (max 24h)
|
+-- NO --> Is the affected system business-critical?
|
+-- YES --> SURGICAL CONTAINMENT
| - Minimal disruption actions only
| - Block specific IOCs (IPs, domains, hashes)
| - Rotate compromised credentials
| - Schedule full containment during maintenance window
|
+-- NO --> STANDARD CONTAINMENT
- Isolate system from network
- Image disk for forensics
- Rebuild from known-good baseline
Step 3.1b: Wiper / Destructive Malware Response Track
Wiper malware destroys data irrecoverably (unlike ransomware which preserves encrypted data for ransom). This demands a fundamentally different response posture.
Immediate actions (first 30 minutes):
- Isolate aggressively -- Disconnect affected segments at switch/firewall level. Wipers propagate via SMB, WMI, or GPO. Do not wait for forensic imaging.
- Preemptively shut down unaffected systems if propagation vector is unknown. A wiper that has not triggered is stopped by cold shutdown.
- Verify backup integrity -- Wipers target Volume Shadow Copies, backup agents, and NAS/SAN. Confirm offline/immutable backups exist before recovery planning.
- Preserve one affected system (powered off, disk intact) for forensics and attribution.
Key differences from ransomware:
| Factor | Ransomware | Wiper / Destructive |
|---|---|---|
| Recovery | Via decryption key | Only from immutable backups |
| Motivation | Financial | Disruption, sabotage, geopolitical |
| Containment urgency | High | Critical -- every second is permanent data loss |
| Attribution | Lower priority (criminal) | Higher priority (often nation-state; FBI/CISA/ISAC engagement) |
Nation-state context: State-sponsored actors (Iranian, Russian, North Korean) increasingly deploy wipers against healthcare and defense supply chains. The 2026 Stryker medtech wiper attack demonstrates ePHI custodians are active targets. IR teams must account for pre-positioned backdoors beyond the wiper payload, potential prior data exfiltration, and the need for FBI/CISA/H-ISAC notification.
Step 3.2: Eradication
After containment, remove the threat from the environment:
- Identify root cause -- Determine the initial access vector (MITRE ATT&CK Initial Access TA0001)
- Remove malware and artifacts -- Delete malicious files, scheduled tasks, registry keys, persistence mechanisms
- Patch exploited vulnerabilities -- Apply security updates that address the exploited vulnerability
- Revoke compromised credentials -- Reset passwords, rotate API keys, revoke tokens, regenerate certificates
- Validate removal -- Scan with updated signatures; review logs to confirm no residual attacker activity
- Harden against re-entry -- Close the initial access vector; apply additional controls (MFA, network segmentation, WAF rules)
Step 3.3: Recovery
Restore systems to normal operations:
- Restore from known-good state -- Use verified backups or rebuild from golden images; never restore from potentially compromised backups
- Validate system integrity -- Compare file hashes against known-good baselines; verify configuration integrity
- Phased reconnection -- Reconnect systems to the network in stages; monitor each phase for signs of re-compromise
- Enhanced monitoring -- Increase logging verbosity and alerting sensitivity for a minimum of 30 days post-recovery
- Stakeholder confirmation -- Obtain business owner sign-off before declaring systems operational
- Update IOC blocklists -- Ensure all identified IOCs remain blocked across perimeter and endpoint controls
Step 3.4: Stakeholder Notification
Use the appropriate communication template based on the audience.
Internal Executive Notification (SEV-1/SEV-2):
Subject: [SEVERITY] Security Incident - [Category] - [Incident ID]
Status: [Active | Contained | Eradicated | Recovered]
Severity: [SEV-1 | SEV-2]
Classification: [Unauthorized Access | Malware | Data Exfiltration | ...]
Time Detected: [YYYY-MM-DD HH:MM UTC]
Affected Systems: [Summary of affected systems/services]
Business Impact: [Description of impact to business operations]
Data Impact: [Type and estimated volume of data affected, if applicable]
Current Actions: [What the IR team is doing now]
Next Update: [Scheduled time for next update]
Incident Commander: [Name and contact]
Legal/Regulatory Notification:
Subject: Security Incident Requiring Legal Review - [Incident ID]
Incident Summary: [Brief factual description]
Data Types Involved: [PII | PHI | Financial | Credentials | None confirmed]
Estimated Records Affected: [Number or "under investigation"]
Jurisdictions: [States/countries where affected individuals reside]
Applicable Regulations: [GDPR | HIPAA | State breach laws | SEC | PCI DSS]
Notification Deadlines:
- GDPR: 72 hours from awareness (Article 33)
- HIPAA: 60 days from discovery (45 CFR 164.408)
- SEC: 4 business days from materiality determination (Item 1.05 Form 8-K)
- State laws: Varies (see state-specific matrix)
Recommendation: [Legal review of notification obligations]
Regulatory Notification (if breach confirmed):
Subject: Breach Notification - [Organization Name] - [Date]
Reporting Organization: [Legal entity name]
Contact: [DPO/Privacy Officer name and contact]
Date of Discovery: [YYYY-MM-DD]
Date of Incident: [YYYY-MM-DD or range]
Nature of Breach: [Description of what occurred]
Categories of Data: [Types of personal data involved]
Approximate Number of Individuals: [Count or estimate]
Consequences: [Assessed or potential consequences]
Measures Taken: [Containment and remediation actions]
Measures to Mitigate: [Steps to address adverse effects]
Step 3.5: Escalation Criteria
Escalate to the next tier when any of the following conditions are met:
| Trigger | Escalate To | Timeframe |
|---|---|---|
| Confirmed data exfiltration involving PII/PHI | Legal counsel, Privacy Officer, Executive leadership | Immediately |
| Ransomware with encryption of production systems | Executive leadership, External IR, Cyber insurance carrier, Law enforcement (FBI IC3) | Within 1 hour |
| Wiper/destructive malware with active data destruction | Executive leadership, External IR, Cyber insurance, FBI IC3, CISA, Sector ISAC (e.g., H-ISAC for healthcare) | Immediately |
| Active attacker with domain admin / root access | External IR firm, Executive leadership | Within 1 hour |
| Incident duration exceeds 4 hours without containment | IR lead escalates to management for resource allocation | At 4-hour mark |
| Evidence of supply chain compromise affecting customers | Legal, Customer communications, Executive leadership | Within 2 hours |
| Regulatory notification deadline approaching | Legal counsel, Compliance team | 24 hours before deadline |
| Insider threat involving executive or privileged admin | Legal counsel, HR, Board (if executive) | Immediately |
| IR team lacks expertise for the attack type | External IR retainer, Vendor support | Upon recognition |
4. Findings Classification
| Severity | Label | Definition | Response SLA |
|---|---|---|---|
| SEV-1 | Critical | Active compromise with ongoing data loss, system destruction, or safety impact. Full organizational response required. | Immediate -- all-hands response |
| SEV-2 | High | Confirmed compromise with significant business impact. Dedicated IR team engagement required. | 4 hours to full IR mobilization |
| SEV-3 | Medium | Suspected compromise or confirmed event with limited scope and recoverable impact. | 24 hours to investigation start |
| SEV-4 | Low | Security event with no confirmed compromise, minimal scope, and no business impact. | 72 hours to triage |
| SEV-5 | Informational | False positive, policy violation, or security observation requiring documentation only. | Logged and reviewed in next cycle |
5. Output Format
Produce the incident response report with these exact sections:
## Incident Response Report: [Incident ID]
**Date:** [YYYY-MM-DD]
**Skill:** ir-playbook v1.0.0
**Frameworks:** NIST SP 800-61 Rev 2, SANS Incident Handler's Handbook
**Incident Commander:** [Name or "Unassigned -- assign immediately"]
### Executive Summary
[3-5 sentences. State the incident type, severity, current status, business impact,
and recommended immediate actions. Lead with the most critical fact.]
### Incident Classification
| Field | Value |
|---|---|
| Incident ID | [IR-YYYY-NNNN] |
| Category | [Unauthorized Access / Malware / Data Exfiltration / DoS / Insider / Supply Chain / Web App / Social Engineering] |
| Severity | [SEV-1 / SEV-2 / SEV-3 / SEV-4] |
| Functional Impact | [None / Low / Medium / High] |
| Information Impact | [None / Privacy Breach / Proprietary Breach / Integrity Loss] |
| Recoverability | [Regular / Supplemented / Extended / Not Recoverable] |
| Status | [Detected / Analyzing / Contained / Eradicated / Recovered / Closed] |
### Timeline
| Timestamp (UTC) | Event | Source |
|---|---|---|
| [YYYY-MM-DD HH:MM] | [Event description] | [Log source / observation] |
### Indicators of Compromise
| Type | Value | First Seen | Confidence | ATT&CK Technique |
|---|---|---|---|---|
| [IP/Domain/Hash/...] | [value] | [timestamp] | [Confirmed/Probable/Suspected] | [T-code] |
### Containment Actions
| Action | Status | Timestamp | Performed By |
|---|---|---|---|
| [Action taken] | [Complete / In Progress / Planned] | [timestamp] | [responder] |
### Eradication and Recovery
- **Root Cause:** [Description of initial access vector and exploitation path]
- **Eradication Actions:** [List of removal actions taken]
- **Recovery Actions:** [List of restoration actions taken or planned]
- **Enhanced Monitoring:** [Description of increased monitoring posture]
### Stakeholder Notifications
| Stakeholder | Notified | Timestamp | Method |
|---|---|---|---|
| [Executive / Legal / Regulator / Customer / Insurance] | [Yes / No / Pending] | [timestamp] | [Email / Phone / Portal] |
### Escalation Decisions
[Document any escalation triggers hit and actions taken]
### Open Items and Next Steps
- [ ] [Action item with owner and deadline]
### Handoff to Post-Incident Review
- **PIR Scheduled:** [Date or "Not yet scheduled"]
- **Evidence Preserved:** [Yes / No -- reference forensics-checklist]
- **Remediation Tracking:** [Ticket system and IDs]
6. Framework Reference
NIST SP 800-61 Rev 2 -- Computer Security Incident Handling Guide
NIST SP 800-61 Rev 2 (August 2012) defines a four-phase IR lifecycle: (1) Preparation, (2) Detection and Analysis, (3) Containment/Eradication/Recovery (iterative), and (4) Post-Incident Activity. Key principles: response is iterative, documentation is continuous from detection through closure, and coordination with external parties (law enforcement, CERT, sector ISACs) follows pre-established protocols.
SANS Incident Handler's Handbook
The SANS Incident Handler's Handbook provides a six-step process: (1) Preparation, (2) Identification, (3) Containment (short-term and long-term), (4) Eradication, (5) Recovery, (6) Lessons Learned. Unlike NIST, SANS separates containment, eradication, and recovery into distinct steps with clearer operational boundaries.
MITRE ATT&CK -- Mapping Attacker Behavior
During detection and analysis, map observed attacker techniques to the MITRE ATT&CK Enterprise Matrix. This enables:
- Predictive analysis of likely next attacker actions based on known attack patterns
- Identification of detection gaps where visibility is insufficient
- Standardized communication of attacker TTPs across teams and with external parties
- Correlation with threat intelligence reports that reference ATT&CK technique IDs
7. Common Pitfalls
Pitfall 1: Destroying Evidence Before Preserving It
Responders under pressure often prioritize containment speed over evidence preservation. Reimaging a compromised system, rebooting to clear malware from memory, or resetting credentials before capturing authentication logs destroys forensic evidence needed for root cause analysis, legal proceedings, and regulatory compliance. Always capture volatile data (memory, running processes, network connections) and create forensic disk images before taking destructive containment or eradication actions. Reference the forensics-checklist skill for the RFC 3227 order of volatility.
Shortened here. Read the whole file on GitHub.
Signals
- GitHub stars
- 63
- Forks
- 130
- Last commit
- Jun 2026
Advanced
- Catalog kind
- skill
- Gateway key
ir-playbook- Source
- github.com/unitoneai/securityskills