name: incident-response
description: >-
Incident response operations including volatile evidence collection (memory, disk,
network), forensic tools (Volatility, KAPE, dc3dd), IR runbooks, triage procedures,
timeline reconstruction, containment strategies, eradication, and post-incident
analysis with after-action reports.
domain: cybersecurity
subdomain: incident-response
tags:
- forensics
- dfir
- triage
- ioc
- memory-forensics
- timeline-analysis
- evidence-collection
- containment
- eradication
version: "1.1"
author: defconxt
license: AGPL-3.0
compatibility: Designed for Claude Code, GitHub Copilot, OpenAI Codex, Cursor, Gemini CLI, and any agentskills.io-compatible agent.
metadata:
mitre-attack: ["T1070", "T1036", "T1059", "T1486"]
nist-csf: ["RS.RP-1", "RS.AN-1", "RS.AN-3", "RS.MI-1", "RS.MI-2"]
frameworks: ["NIST SP 800-61", "RFC 3227", "SANS IR Process"]
name: incident-response
description: >
DFIR and incident response skill for CIPHER. Activates on incident triage,
forensic artifact collection, evidence preservation, memory acquisition,
containment procedures, timeline reconstruction, and post-incident analysis.
Trigger keywords: DFIR, forensics, triage, IOC, compromise, breach,
exfiltration, ransomware response, containment, eradication, evidence,
memory acquisition, Wireshark, Chainsaw, Hayabusa, Volatility.
domain: cybersecurity
subdomain: incident-response
tags:
- forensics
- dfir
- triage
- ioc
- memory-forensics
- network-forensics
- timeline-analysis
- containment
- evidence-preservation
- ransomware
version: "1.1"
author: defconxt
license: AGPL-3.0
compatibility: Designed for Claude Code, GitHub Copilot, OpenAI Codex, Cursor, Gemini CLI, and any agentskills.io-compatible agent.
metadata:
mitre-attack:
- T1059 # Command and Scripting Interpreter
- T1003 # OS Credential Dumping
- T1078 # Valid Accounts
- T1021 # Remote Services
- T1190 # Exploit Public-Facing Application
- T1486 # Data Encrypted for Impact (Ransomware)
- T1053 # Scheduled Task/Job
- T1543 # Create or Modify System Process
- T1547 # Boot or Logon Autostart Execution
- T1070 # Indicator Removal
SKILL: Incident Response
When to Use
Activate this skill when the operator:
- Describes an active incident or asks for triage guidance
- Requests IR runbooks (ransomware, AD compromise, cloud compromise)
- Needs forensic artifact locations (Windows, Linux, macOS)
- Asks about evidence collection, memory acquisition, or disk imaging
- Wants timeline reconstruction (Plaso, MFT, EVTX correlation)
- Needs containment or eradication procedures
- Asks about Wireshark/tshark analysis or network forensics
- Discusses post-incident analysis, after-action reports, or detection gaps
Do NOT use for: threat modeling (use security-architecture), detection rule
writing (use detection-engineering), or red team operations (use offensive skill).
Prerequisites
| Tool |
Purpose |
Install |
| Volatility 3 |
Memory analysis |
pip install volatility3 |
| winpmem / LiME / AVML |
Memory acquisition |
Platform-specific |
| Chainsaw |
Fast EVTX triage |
GitHub release binary |
| Hayabusa |
EVTX timeline CSV |
GitHub release binary |
| Plaso (log2timeline) |
Multi-source timeline |
pip install plaso |
| MFTECmd |
MFT/NTFS parser |
Eric Zimmerman tools |
| tshark / Wireshark |
Network forensics |
Package manager |
| YARA / LOKI |
IOC scanning |
pip install yara-python |
| UAC |
Linux artifact collector |
GitHub clone |
| System Informer |
Live Windows process analysis |
GitHub release |
Example: Volatile Evidence Collection
# Collect volatile evidence in order of volatility (RFC 3227)
# 1. Network connections
ss -tulnp > /evidence/network-connections.txt
# 2. Running processes
ps auxf > /evidence/processes.txt
# 3. Open files
lsof -nP > /evidence/open-files.txt
# 4. Logged-in users
w > /evidence/users.txt
last -25 >> /evidence/users.txt
# 5. Generate hash manifest
sha256sum /evidence/*.txt > /evidence/manifest.sha256
Example: Windows Event Log Triage
# Failed logins (Event ID 4625)
Get-WinEvent -FilterHashtable @{LogName='Security'; Id=4625} -MaxEvents 100 |
Select-Object TimeCreated, @{N='User';E={$_.Properties[5].Value}},
@{N='Source';E={$_.Properties[19].Value}} | Format-Table
# New service installations (Event ID 7045)
Get-WinEvent -FilterHashtable @{LogName='System'; Id=7045} -MaxEvents 50 |
Select-Object TimeCreated, @{N='Service';E={$_.Properties[0].Value}} | Format-Table
Quick Reference
| Task |
Command |
| Memory (Windows) |
winpmem_mini_x64.exe mem.raw |
| Memory (Linux, LiME) |
insmod lime.ko "path=/tmp/mem.lime format=lime" |
| Memory (Linux, AVML) |
avml /tmp/mem.lime |
| Disk image |
dd if=/dev/sda bs=512 | gzip > disk.img.gz |
| Hash evidence |
sha256sum mem.raw > mem.raw.sha256 |
| Process list (Linux) |
ps auxf && cat /proc/*/status 2>/dev/null | grep -E "Name|Pid|PPid" |
| Network connections |
ss -tulnp (Linux) / netstat -anob (Windows) |
| Windows event logs |
wevtutil qe Security /count:1000 /rd:true /format:text |
| Chainsaw EVTX triage |
chainsaw hunt /path/to/evtx --sigma rules/ --mapping mappings/sigma-event-logs-all.yml |
| Hayabusa timeline |
hayabusa csv-timeline -d /path/to/evtx -o timeline.csv |
| Volatility pslist |
vol.py -f mem.raw windows.pslist + windows.psscan |
| tshark C2 beacons |
tshark -r capture.pcap -Y "tcp.flags.syn==1 && !tcp.flags.ack==1" -T fields -e ip.dst | sort | uniq -c | sort -rn |
| Linux artifact collection |
./uac -p /tmp/uac-output |
Workflow
Phase 1 — Volatile Evidence Collection
Collect volatile data before ANYTHING else. NIST 800-86 order:
running processes → network connections → logged-in users → loaded modules → ARP cache
Full collection scripts (Linux + Windows) and memory acquisition commands:
→ references/volatile-evidence.md
Phase 2 — Forensic Analysis & Artifact Collection
Memory analysis with Volatility 3, live process analysis with System Informer,
forensic artifact locations (Windows/Linux/macOS), network forensics with
tshark/Wireshark (display filters, capture filters, attack pattern filters),
timeline reconstruction (Plaso, MFT, EVTX correlation), containment strategies
(network isolation, account containment), IOC scanning (YARA, LOKI, Fenrir),
and post-incident after-action report structure.
→ references/forensics-tools.md
Phase 3 — Incident Runbooks & Response Chains
Scenario-specific runbooks and operational key chains:
- Ransomware Response — triage, containment, evidence preservation, pre-ransomware IOCs
- Active Directory Compromise — DCSync detection, golden ticket, krbtgt rotation
- Cloud Account Compromise (AWS) — CloudTrail investigation, IAM containment, DenyAll policy
- Key Chain: Initial Triage → Scoped Compromise (first 2 hours)
- Key Chain: Evidence Collection → Forensic Package
- Key Chain: Containment → Eradication Pipeline
→ references/ir-runbooks.md
Verification
After completing an IR engagement, confirm:
v1.1 | Validated: 2026-03-13
1---2name: incident-response-53description: <!-- Copyright (c) 2026 defconxt. All rights reserved. -->4---5
6<!-- Copyright (c) 2026 defconxt. All rights reserved. -->
7<!-- Licensed under AGPL-3.0 — see LICENSE file for details. -->
8---
9name: incident-response
10description: >-
11 Incident response operations including volatile evidence collection (memory, disk,
12 network), forensic tools (Volatility, KAPE, dc3dd), IR runbooks, triage procedures,
13 timeline reconstruction, containment strategies, eradication, and post-incident
14 analysis with after-action reports.
15domain: cybersecurity
16subdomain: incident-response
17tags:
18 - forensics
19 - dfir
20 - triage
21 - ioc
22 - memory-forensics
23 - timeline-analysis
24 - evidence-collection
25 - containment
26 - eradication
27version: "1.1"
28author: defconxt
29license: AGPL-3.0
30compatibility: Designed for Claude Code, GitHub Copilot, OpenAI Codex, Cursor, Gemini CLI, and any agentskills.io-compatible agent.
31metadata:
32 mitre-attack: ["T1070", "T1036", "T1059", "T1486"]
33 nist-csf: ["RS.RP-1", "RS.AN-1", "RS.AN-3", "RS.MI-1", "RS.MI-2"]
34 frameworks: ["NIST SP 800-61", "RFC 3227", "SANS IR Process"]
35---
36<!-- Copyright (c) 2026 defconxt. All rights reserved. -->
37<!-- Licensed under AGPL-3.0 — see LICENSE file for details. -->
38<!-- CIPHER is a trademark of defconxt. -->
39
40---
41name: incident-response
42description: >
43 DFIR and incident response skill for CIPHER. Activates on incident triage,
44 forensic artifact collection, evidence preservation, memory acquisition,
45 containment procedures, timeline reconstruction, and post-incident analysis.
46 Trigger keywords: DFIR, forensics, triage, IOC, compromise, breach,
47 exfiltration, ransomware response, containment, eradication, evidence,
48 memory acquisition, Wireshark, Chainsaw, Hayabusa, Volatility.
49domain: cybersecurity
50subdomain: incident-response
51tags:
52 - forensics
53 - dfir
54 - triage
55 - ioc
56 - memory-forensics
57 - network-forensics
58 - timeline-analysis
59 - containment
60 - evidence-preservation
61 - ransomware
62version: "1.1"
63author: defconxt
64license: AGPL-3.0
65compatibility: Designed for Claude Code, GitHub Copilot, OpenAI Codex, Cursor, Gemini CLI, and any agentskills.io-compatible agent.
66metadata:
67 mitre-attack:
68 - T1059 # Command and Scripting Interpreter
69 - T1003 # OS Credential Dumping
70 - T1078 # Valid Accounts
71 - T1021 # Remote Services
72 - T1190 # Exploit Public-Facing Application
73 - T1486 # Data Encrypted for Impact (Ransomware)
74 - T1053 # Scheduled Task/Job
75 - T1543 # Create or Modify System Process
76 - T1547 # Boot or Logon Autostart Execution
77 - T1070 # Indicator Removal
78---
79
80# SKILL: Incident Response
81
82## When to Use
83
84Activate this skill when the operator:
85- Describes an **active incident** or asks for triage guidance
86- Requests **IR runbooks** (ransomware, AD compromise, cloud compromise)
87- Needs **forensic artifact** locations (Windows, Linux, macOS)
88- Asks about **evidence collection**, memory acquisition, or disk imaging
89- Wants **timeline reconstruction** (Plaso, MFT, EVTX correlation)
90- Needs **containment** or **eradication** procedures
91- Asks about **Wireshark/tshark** analysis or network forensics
92- Discusses **post-incident** analysis, after-action reports, or detection gaps
93
94Do NOT use for: threat modeling (use security-architecture), detection rule
95writing (use detection-engineering), or red team operations (use offensive skill).
96
97## Prerequisites
98
99| Tool | Purpose | Install |
100|------|---------|---------|
101| Volatility 3 | Memory analysis | `pip install volatility3` |
102| winpmem / LiME / AVML | Memory acquisition | Platform-specific |
103| Chainsaw | Fast EVTX triage | GitHub release binary |
104| Hayabusa | EVTX timeline CSV | GitHub release binary |
105| Plaso (log2timeline) | Multi-source timeline | `pip install plaso` |
106| MFTECmd | MFT/NTFS parser | Eric Zimmerman tools |
107| tshark / Wireshark | Network forensics | Package manager |
108| YARA / LOKI | IOC scanning | `pip install yara-python` |
109| UAC | Linux artifact collector | GitHub clone |
110| System Informer | Live Windows process analysis | GitHub release |
111
112
113
114### Example: Volatile Evidence Collection
115
116```bash
117# Collect volatile evidence in order of volatility (RFC 3227)
118# 1. Network connections
119ss -tulnp > /evidence/network-connections.txt
120
121# 2. Running processes
122ps auxf > /evidence/processes.txt
123
124# 3. Open files
125lsof -nP > /evidence/open-files.txt
126
127# 4. Logged-in users
128w > /evidence/users.txt
129last -25 >> /evidence/users.txt
130
131# 5. Generate hash manifest
132sha256sum /evidence/*.txt > /evidence/manifest.sha256
133```
134
135### Example: Windows Event Log Triage
136
137```powershell
138# Failed logins (Event ID 4625)
139Get-WinEvent -FilterHashtable @{LogName='Security'; Id=4625} -MaxEvents 100 |
140 Select-Object TimeCreated, @{N='User';E={$_.Properties[5].Value}},
141 @{N='Source';E={$_.Properties[19].Value}} | Format-Table
142
143# New service installations (Event ID 7045)
144Get-WinEvent -FilterHashtable @{LogName='System'; Id=7045} -MaxEvents 50 |
145 Select-Object TimeCreated, @{N='Service';E={$_.Properties[0].Value}} | Format-Table
146```
147
148
149## Quick Reference
150
151| Task | Command |
152|------|---------|
153| Memory (Windows) | `winpmem_mini_x64.exe mem.raw` |
154| Memory (Linux, LiME) | `insmod lime.ko "path=/tmp/mem.lime format=lime"` |
155| Memory (Linux, AVML) | `avml /tmp/mem.lime` |
156| Disk image | `dd if=/dev/sda bs=512 \| gzip > disk.img.gz` |
157| Hash evidence | `sha256sum mem.raw > mem.raw.sha256` |
158| Process list (Linux) | `ps auxf && cat /proc/*/status 2>/dev/null \| grep -E "Name\|Pid\|PPid"` |
159| Network connections | `ss -tulnp` (Linux) / `netstat -anob` (Windows) |
160| Windows event logs | `wevtutil qe Security /count:1000 /rd:true /format:text` |
161| Chainsaw EVTX triage | `chainsaw hunt /path/to/evtx --sigma rules/ --mapping mappings/sigma-event-logs-all.yml` |
162| Hayabusa timeline | `hayabusa csv-timeline -d /path/to/evtx -o timeline.csv` |
163| Volatility pslist | `vol.py -f mem.raw windows.pslist` + `windows.psscan` |
164| tshark C2 beacons | `tshark -r capture.pcap -Y "tcp.flags.syn==1 && !tcp.flags.ack==1" -T fields -e ip.dst \| sort \| uniq -c \| sort -rn` |
165| Linux artifact collection | `./uac -p /tmp/uac-output` |
166
167## Workflow
168
169### Phase 1 — Volatile Evidence Collection
170
171**Collect volatile data before ANYTHING else.** NIST 800-86 order:
172
173> running processes → network connections → logged-in users → loaded modules → ARP cache
174
175Full collection scripts (Linux + Windows) and memory acquisition commands:
176
177→ **[references/volatile-evidence.md](references/volatile-evidence.md)**
178
179### Phase 2 — Forensic Analysis & Artifact Collection
180
181Memory analysis with Volatility 3, live process analysis with System Informer,
182forensic artifact locations (Windows/Linux/macOS), network forensics with
183tshark/Wireshark (display filters, capture filters, attack pattern filters),
184timeline reconstruction (Plaso, MFT, EVTX correlation), containment strategies
185(network isolation, account containment), IOC scanning (YARA, LOKI, Fenrir),
186and post-incident after-action report structure.
187
188→ **[references/forensics-tools.md](references/forensics-tools.md)**
189
190### Phase 3 — Incident Runbooks & Response Chains
191
192Scenario-specific runbooks and operational key chains:
193
194- **Ransomware Response** — triage, containment, evidence preservation, pre-ransomware IOCs
195- **Active Directory Compromise** — DCSync detection, golden ticket, krbtgt rotation
196- **Cloud Account Compromise (AWS)** — CloudTrail investigation, IAM containment, DenyAll policy
197- **Key Chain: Initial Triage → Scoped Compromise** (first 2 hours)
198- **Key Chain: Evidence Collection → Forensic Package**
199- **Key Chain: Containment → Eradication Pipeline**
200
201→ **[references/ir-runbooks.md](references/ir-runbooks.md)**
202
203## Verification
204
205After completing an IR engagement, confirm:
206
207- [ ] Volatile data collected BEFORE any reboot or disk modification
208- [ ] All evidence hashed (SHA-256) with chain of custody documented
209- [ ] Memory image acquired and verified (hash match)
210- [ ] Event logs exported to write-protected location
211- [ ] Timeline normalized to UTC from all log sources
212- [ ] Patient zero identified with earliest compromise evidence
213- [ ] All persistence mechanisms catalogued and removed
214- [ ] Credentials rotated (compromised → service → privileged → krbtgt if AD)
215- [ ] Initial access vector patched before systems restored
216- [ ] After-action report includes detection gap analysis mapped to ATT&CK
217- [ ] SIEM rules updated to cover observed TTPs
218
219---
220v1.1 | Validated: 2026-03-13