#Why this matters
Even a mature SOC cannot stop every intrusion. When alerts confirm unauthorized access, malware execution, or data leakage, improvised actions destroy evidence and leave backdoors active. Incident Response (IR) establishes a repeatable process to contain damage, preserve forensic proof, eradicate access, and restore trusted operations.
Modern response follows NIST SP 800-61 rev. 3, which aligns incident management with the six NIST CSF 2.0 functions: Govern, Identify, Protect, Detect, Respond, and Recover. Pairing this guidance with MITRE ATT&CK helps analysts identify persistence and lateral movement quickly during triage.
#Incident response lifecycle and CSIRT readiness
Operational playbooks group NIST SP 800-61 rev. 3 and CSF 2.0 activities into four phases that loop back into readiness:
- Phase 1: PreparationCSF Govern/Identify/Protect: IRP, playbooks, CSIRT, drills
- Phase 2: Detection & AnalysisCSF Detect: SIEM triage, P1-P4 severity, forensics
- Phase 3: Containment & EradicationCSF Respond: isolate hosts, remove persistence
- Phase 4: Recovery & Post-IncidentCSF Recover/Govern: clean restore, lessons learned
Phase 1 (Preparation) builds an Incident Response Plan (IRP) with severity tiers, escalation matrices, out-of-band communications, playbooks, and tabletop drills. Organizations also staff a CSIRT with clear roles: an IR Lead for coordination, Forensic, Malware, and Network Analysts, plus Legal/PR specialists.
#Severity classification, forensic rules, and traffic triage
In Phase 2 (Detection and Analysis), responders validate alerts and assign a severity level:
| Level | Severity | Typical criteria | Target response |
|---|---|---|---|
| P1 | Critical | Production outage or active data exfiltration | Immediate |
| P2 | High | Critical asset affected with confirmed malicious activity | Within 1 hour |
| P3 | Medium | Non-sensitive system impacted without spread | Within 4 hours |
| P4 | Low | Minor anomaly or isolated policy violation | Next business day |
For a powered-on suspect host, follow strict core forensic rules:
- Collect volatile data before shutdown in order of volatility: RAM first, then swap, then disk. Unplugging power wipes memory-resident malware and open sockets.
- Preserve the original evidence by imaging the drive and analyzing only a working copy.
- Verify integrity with a SHA-256 hash upon acquisition and before analysis.
- Log every action in a Chain of Custody journal with timestamps, handlers, and hashes.
Analysts use Volatility 3 for RAM triage and Wireshark display filters to detect C2 traffic or oversized DNS frames indicating DNS tunneling:
$ vol -f memory.dmp windows.pslist
$ vol -f memory.dmp windows.netscan
$ vol -f memory.dmp windows.malfind
# Wireshark display filters during Phase 2 traffic analysis:
# Detect potential DNS tunneling via oversized DNS frames
dns and frame.len > 200
# Filter outbound traffic to a suspect lab C2 subnet
ip.dst == 198.51.100.0/24#Live Windows triage, containment, and eradication
Phase 3 (Isolation, Eradication, and Removal) halts spread before eliminating root causes.
- Isolate compromised hosts from the network
- Block malicious or compromised user accounts
- Preserve RAM images and system logs first
- Goal: stop spread immediately
- Deploy temporary workarounds or backup services
- Remove malware binaries and close backdoors
- Patch the entry flaw and harden configs
- Goal: sustain operations and remove root cause
On Windows hosts, responders inspect processes, sockets, failed logins (Event ID 4625), file hashes, and MITRE ATT&CK persistence points such as Scheduled Tasks (T1053) and Registry Run keys (T1547.001):
# Inspect running processes and active TCP connections
tasklist /v
netstat -ano
# Check persistence mechanisms (Scheduled Tasks and Registry Run keys)
schtasks /query /fo LIST /v
reg query HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
# Review failed logins (Event ID 4625) and hash system binaries
Get-WinEvent -LogName Security | Where-Object Id -eq 4625 | Select-Object -First 20
Get-FileHash C:\Windows\System32\*.exe | Export-Csv hashes.csv#Recovery, post-incident review, and reporting
Phase 4 (Recovery and Post-Incident) returns hosts safely to production:
- Restore from a verified clean backup taken before the intrusion.
- Patch and harden the entry vulnerability.
- Rotate passwords and tokens for affected accounts.
- Strengthen monitoring for signs of re-entry.
- Return to production after validation checks pass.
A blameless Post-Incident Review (Lessons Learned) updates playbooks and SIEM rules (feeding CSF 2.0 Govern and Protect). Legal teams also handle breach notifications, including GDPR (within 72 hours to the DPA), HIPAA (within 60 days for medical data), and CERT.UZ in Uzbekistan.
#Defending against common incident response mistakes
- Unplugging power immediately: Erases RAM, active sockets, and memory-only payloads before capture.
- Analyzing original drives directly: Alters timestamps and risks invalidating evidence; always work from a hashed copy.
- Rushing back to production: Restoring a backup without patching, rotating passwords, and raising monitoring invites immediate re-compromise.
- Skipping post-incident reviews: Leaving playbooks and SIEM rules unchanged preserves the same blind spots.
#Summary
Effective incident response maps Preparation, Detection and Analysis, Containment and Eradication, and Recovery and Post-Incident to NIST SP 800-61 rev. 3 and NIST CSF 2.0. Classifying severity, preserving volatile evidence in RAM-swap-disk order with SHA-256 hashes and a Chain of Custody, and checking Windows persistence and network filters stop breaches cleanly. Verified recovery, lessons-learned reviews, and timely notifications build lasting resilience.