When a Hospital Had Minutes to Decide
In 2017, the NotPetya attack hit pharmaceutical giant Merck, causing $1.4 billion in damage. In the first minutes, IT teams had to decide: disconnect servers to contain the spread (and halt global operations) or leave systems online to preserve evidence (and risk total encryption). This split-second decision is why incident response exists — a structured, pre-planned approach that replaces panic with procedure. Organizations with mature IR capabilities contain breaches 60% faster and save millions in breach costs.
Incident Response (IR) is the structured approach to managing and addressing security breaches. A well-defined IR process minimizes damage, reduces recovery time and costs, preserves evidence, and prevents future incidents.
Prerequisites
**Security Monitoring** — Understanding of detection capabilities**SIEM Fundamentals** — Familiarity with alerting and logging**Digital Forensics Basics** — Evidence handling and preservationThe Incident Response Lifecycle
The NIST SP 800-61 framework defines four IR phases, while SANS PICERL defines six. We cover the six-phase SANS model for comprehensiveness.
Phase 1: Preparation
The most critical phase. Organizations with prepared IR teams respond faster and more effectively.
Key Activities:
Develop and maintain IR policies and proceduresBuild an IR team with defined roles (incident coordinator, technical lead, communications lead)Provision tools (forensic workstations, imaging hardware, analysis software)Establish communication channels (secure chat, phone bridges, encrypted email)Conduct tabletop exercises and simulationsCreate playbooks for common scenarios (ransomware, phishing, data exfiltration)# Preparation: Create forensic response toolkit
# Tools to have ready on forensic workstation
sudo apt install sleuthkit autopsy volatility guymager
Phase 2: Identification
Detection and initial assessment of potential incidents.
Key Activities:
Triage alerts from SIEM, EDR, and other sourcesValidate if an incident is actually occurring (eliminate false positives)Determine scope: what systems, users, and data are affectedAssess severity: critical, high, medium, or lowEscalate according to the IR planIndicators of Compromise (IOCs):
Unusual outbound network connectionsUnexpected system processesNew user accounts or group membership changesAntivirus/EDR alerts on known malwareUnusual database query volumesRansom notes or encryption activityPhase 3: Containment
Stop the incident from spreading and limit damage.
Short-term Containment:
Isolate affected systems from the networkDisable compromised accountsBlock malicious IPs at the firewallTake systems offline if necessaryLong-term Containment:
Apply temporary security patchesImplement additional monitoring on unaffected systemsRotate credentials for potentially compromised accounts# Block malicious IP at firewall
iptables -A INPUT -s 192.168.1.100 -j DROP
iptables -A OUTPUT -d malicious-c2.com -j DROP
# Disable compromised account
net user compromised_user /domain /active:no
Phase 4: Eradication
Remove the threat from the environment entirely.
Key Activities:
Remove malware from affected systemsPatch vulnerabilities that were exploitedDelete attacker-created accounts and backdoorsReset credentials for all affected accountsVerify persistence mechanisms are removedImportant: Eradication often involves rebuilding systems from known-good backups or re-imaging workstations entirely.
Phase 5: Recovery
Restore affected systems to normal operation.
Key Activities:
Restore systems from clean backupsMonitor restored systems for signs of re-infectionGradually return systems to productionCommunicate restoration status to stakeholdersImplement additional security controls based on findingsPhase 6: Lessons Learned
The most often skipped but most valuable phase.
Key Activities:
Conduct post-incident review within 1-2 weeksDocument timeline, actions taken, and outcomesIdentify what worked and what didn'tUpdate playbooks and proceduresImplement improvements to prevent recurrenceReport to management on findings and recommendationsIncident Severity Levels
| Level | Description | Response Time |
|-------|-------------|---------------|
| L1 | Phishing, low-impact malware | 4 hours |
| L2 | Worm, targeted attack, data exfiltration | 2 hours |
| L3 | Ransomware, APT, critical system compromise | Immediate |
Real-World Example: Ransomware Incident Response
Scenario: A hospital detects ransomware encrypting file servers.
**Detection**: EDR alerts on multiple systems executing suspicious PowerShell commands**Containment**: IR team immediately isolates affected servers by disconnecting network cables and disabling switch ports**Assessment**: 12 servers encrypted; patient data confirmed on encrypted drives; backup systems verified intact**Eradication**: Affected systems rebuilt from clean images; root cause identified as phishing email**Recovery**: Data restored from backups (verification process takes 48 hours); systems returned to production**Lessons Learned**: Phishing training enhanced; email filtering strengthened; MFA deployed for all remote access**Outcome**: No ransom paid; patient care minimally disrupted; operation cost $200K vs $5M potential ransomCommon Mistakes
**Skipping preparation** — Without preparation, response is chaotic and ineffective**Not preserving evidence** — Destroying evidence during response prevents prosecution and analysis**Isolating systems without preserving volatile data** — Memory and process information lost when powering off**Focusing only on technical recovery** — Ignoring communications, legal, and PR aspects**Not conducting lessons learned** — Repeating the same mistakes in future incidents**Destroying evidence before legal review** — Evidence may be needed for prosecutionBest Practices
**Prepare before incidents occur** — Build IR plans, teams, and playbooks in advance**Practice regularly** — Conduct tabletop exercises and simulated incidents quarterly**Document everything** — Timelines, actions, decisions, and evidence preservation**Preserve evidence** — Follow chain of custody for forensic data**Communicate clearly** — Keep stakeholders informed without speculation**Learn and improve** — Every incident is an opportunity to strengthen defenses**Automate where possible** — Automated containment can stop attacks in secondsRelated Tools
**TheHive** — Open-source IR platform**DFIRTrack** — IR case management**Velociraptor** — Endpoint visibility and IR**GRR Rapid Response** — Remote live forensics**Cortex** — Observable analysis and response[SMBClient](/tools/smbclient) — SMB share access for evidence collectionRelated Articles
Security Monitoring: Building Detection CapabilitiesSIEM Fundamentals: Security Information and Event ManagementDigital Forensics Basics: Collecting and Analyzing EvidenceThreat Hunting: Proactive Cyber Defense StrategiesDetection Engineering: Creating Security Alerts and RulesSummary
Incident Response is a structured lifecycle with six phases: Preparation, Identification, Containment, Eradication, Recovery, and Lessons Learned. Preparation is the most critical phase. Effective IR requires defined procedures, trained teams, proper tools, preservation of evidence, clear communication, and continuous improvement through lessons learned.
Knowledge Check
What are the six phases of the SANS IR lifecycle?Why is the preparation phase most critical?What is the difference between short-term and long-term containment?Why is evidence preservation important during IR?What should be the outcome of the Lessons Learned phase?References
{@ref nist-csf}
{@ref mitre-attack-enterprise}