Incident Response
The Incident Response Lifecycle
Section titled “The Incident Response Lifecycle”NIST SP 800-61 Rev. 2 defines the incident response lifecycle as four phases: Preparation, Detection And Analysis, Containment Eradication and Recovery, and Post-Incident Activity.
graph TD
A[Preparation] --> B[Detection & Analysis]
B --> C[Containment]
C --> D[Eradication]
D --> E[Recovery]
E --> F[Post-Incident Activity]
F --> A
style A fill:#bfb,stroke:#333
style B fill:#bbf,stroke:#333
style C fill:#fbb,stroke:#333
style D fill:#f9f,stroke:#333
style E fill:#fdb,stroke:#333
style F fill:#bdf,stroke:#333The lifecycle is not strictly linear. Detection may happen during containment. Recovery may reveal The need for additional eradication. Post-incident analysis feeds back into preparation, improving Readiness for the next incident.
Preparation
Section titled “Preparation”Preparation is the most important phase. An unprepared team will waste critical time during an Incident figuring out roles, tools, and processes — while the attacker continues to operate.
Incident Response Plan (IRP)
Section titled “Incident Response Plan (IRP)”An IRP is a documented, tested plan that defines how the organization will respond to security Incidents. It should be a living document that is reviewed and updated at least annually.
Essential IRP components:
| Component | Description |
|---|---|
| Scope and objectives | What constitutes an incident, what the plan covers |
| Roles and responsibilities | Who does what during each phase (RACI matrix) |
| Severity classification | How to categorize incidents by impact and urgency |
| Communication procedures | Internal escalation, external notification, public comms |
| Technical procedures | Step-by-step instructions for common incident types |
| Evidence handling | Chain of custody, forensic imaging, log preservation |
| Tool inventory | What tools are available and how to use them |
| Contact lists | IR team, management, legal, law enforcement, regulators |
| Legal and regulatory | Data breach notification requirements, retention policies |
Incident Response Team
Section titled “Incident Response Team”| Role | Responsibility |
|---|---|
| Incident Commander | Overall coordination, decision-making, communication |
| Technical Lead | Directs investigation, containment, and eradication |
| Forensic Analyst | Evidence collection, preservation, and analysis |
| Communications | Internal and external messaging, media relations |
| Legal Counsel | Regulatory compliance, law enforcement liaison |
| Management Liaison | Executive communication, resource authorization |
| IT Operations | Infrastructure support, isolation, recovery |
For small organizations, roles may overlap. The critical requirement is that someone is explicitly Responsible for each function.
Playbooks
Section titled “Playbooks”Playbooks are predefined procedures for specific incident types. They reduce decision-making under Pressure and ensure consistent, repeatable responses.
| Incident Type | Key Playbook Actions |
|---|---|
| Ransomware | Isolate affected systems, identify ransomware variant, assess data exposure, do not pay immediately |
| Data breach | Identify scope, preserve evidence, notify affected parties, assess regulatory requirements |
| Credential compromise | Force password reset, revoke sessions, check for lateral movement |
| DDoS | Activate scrubbing, increase capacity, identify attack vector |
| Malware | Isolate infected host, identify malware family, scan for propagation |
| Insider threat | Preserve evidence (legal hold), revoke access, coordinate with HR/legal |
| Supply chain attack | Identify affected software, assess blast radius, patch/revert, verify integrity |
Tools and Infrastructure
Section titled “Tools and Infrastructure”| Category | Tools |
|---|---|
| SIEM | Splunk, Elastic Security, Microsoft Sentinel |
| EDR/XDR | CrowdStrike, SentinelOne, Microsoft Defender |
| Forensic imaging | FTK Imager, dd, dc3dd, ewf |
| Memory forensics | Volatility, Rekall |
| Log aggregation | Fluentd, Logstash, Vector |
| Threat intelligence | MITRE ATT&CK, VirusTotal, Shodan, CIRCL |
| Communication | Slack (dedicated channel), PagerDuty, Opsgenie |
| Ticketing | Jira, ServiceNow, RT |
| Documentation | Confluence, shared drive (access-controlled) |
Tabletop Exercises
Section titled “Tabletop Exercises”Tabletop exercises are discussion-based simulations where the IR team walks through a hypothetical Incident scenario. They test the plan, identify gaps, and build muscle memory without the pressure Of a real incident.
Exercise structure:
- Scenario design: Choose a realistic scenario (ransomware, data breach, insider threat)
- Inject timeline: Progress the scenario with new information at intervals
- Discussion: Team discusses what they would do at each step
- Observation: Facilitator notes gaps, confusion, and delays
- Debrief: Review findings, update playbooks and IRP
Example inject sequence for a ransomware exercise:
| Time | Inject |
|---|---|
| T+0 | User reports files are encrypted and a ransom note is displayed |
| T+15min | Second user reports the same. IT discovers network share is encrypted |
| T+30min | EDR alerts on lateral movement attempts from the first host |
| T+60min | Legal asks: “Do we know what data was accessed before encryption?” |
| T+90min | Media inquiry received. Board asks for status update |
| T+120min | Threat intel: ransomware variant has known data exfiltration |
| T+180min | Executive demands: “Can we restore from backups?” |
Detection and Analysis
Section titled “Detection and Analysis”Detection Sources
Section titled “Detection Sources”| Source | Detection Capability | Limitations |
|---|---|---|
| SIEM alerts | Correlated events across sources | Requires tuning, high false positive rate |
| EDR/XDR | Endpoint behavior, process execution, file changes | Agent must be running and healthy |
| Network IDS/IPS | Suspicious network traffic, known signatures | Cannot inspect encrypted traffic |
| Log analysis | Application errors, authentication failures | Requires logging to be enabled |
| User reports | Phishing, suspicious emails, slow systems | Inconsistent, delayed |
| Threat intelligence | Known IOCs, vulnerability announcements | Reactive, not proactive |
| File integrity | Unauthorized changes to critical files | Requires baseline |
| Cloud audit logs | Unusual API calls, privilege escalation | Volume can be overwhelming |
Alert Triage
Section titled “Alert Triage”Not every alert is an incident. Effective triage distinguishes true positives from false positives And prioritizes by severity.
Triage decision tree:
graph TD
Alert[Alert Received] --> Q1{Is it a true positive?}
Q1 -->|No| FP[Close as false positive<br/>Update detection rule]
Q1 -->|Yes| Q2{Is the threat active?}
Q2 -->|No| HIST[Close as historical<br/>Document for trending]
Q2 -->|Yes| Q3{What is the scope?}
Q3 -->|Single host| S1[Severity: Low/Medium<br/>Assign to analyst]
Q3 -->|Multiple hosts| Q4{Is data compromised?}
Q4 -->|No| S2[Severity: High<br/>Escalate to team lead]
Q4 -->|Yes| S3[Severity: Critical<br/>Escalate to incident commander]Severity Classification
Section titled “Severity Classification”| Severity | Definition | Response Time | Example |
|---|---|---|---|
| Critical | Active breach, data exfiltration, system-wide compromise | Immediate | Ransomware encrypting production DB |
| High | Confirmed compromise, limited scope, active threat | Within 1 hour | Single server compromised |
| Medium | Suspicious activity, potential compromise | Within 4 hours | Credential reuse alert from HaveIBeenPwned |
| Low | Policy violation, reconnaissance, informational | Within 24 hours | Port scan from external IP |
| Info | No security impact, awareness item | Next business day | Vulnerability disclosure (unaffected version) |
Indicators of Compromise (IOCs)
Section titled “Indicators of Compromise (IOCs)”| IOC Type | Example | Detection Method |
|---|---|---|
| IP address | 198.51.100.42 (known C2 server) | Firewall logs, IDS alerts |
| Domain | evil-update.example.com | DNS logs, proxy logs |
| File hash | SHA-256: abc123... (known malware) | EDR, AV scans |
| URL | https://evil.com/payload.exe | Proxy logs, URL filtering |
| Email subject | ”Urgent: Verify your account” | Email gateway logs |
| Registry key | HKLM\Software\Microsoft\Windows\CurrentVersion\Run\malware | EDR, system logs |
| Mutex | Global\{A1B2C3D4-E5F6-7890} | Memory analysis, EDR |
| Network artifact | Unusual user-agent, certificate pin mismatch | IDS, TLS logs |
IOC Sharing and Threat Intelligence Platforms
Section titled “IOC Sharing and Threat Intelligence Platforms”Sharing IOCs within your organization and with the broader security community amplifies detection Capability. A compromise detected at one organization can be prevented at others if IOCs are shared Rapidly.
| Platform | Type | Access | Use Case |
|---|---|---|---|
| MISP | Open source | Self-hosted | Internal and community IOC sharing |
| STIX/TAXII | Standard | Various | Structured threat intelligence exchange |
| AlienVault OTX | Community | Free | Open threat intelligence sharing |
| CISA AIS | Government | Authorized | US government cyber threat sharing |
| VirusTotal | Malware | Free/Paid | File and URL reputation lookup |
| Shodan | Internet scan | Free/Paid | Exposed services and vulnerability detection |
Sharing IOCs must be done carefully. Sanitize internal information before sharing externally — Remove internal hostnames, usernames, and any information that could reveal your network topology or Security posture.
Automated Detection Rules
Section titled “Automated Detection Rules”Detection rules translate threat intelligence into automated alerts in your SIEM or EDR:
# Sigma rule: Detect suspicious PowerShell executiontitle: Suspicious PowerShell Encoded Commandstatus: productiondescription: "NIST SP 800-61 Rev. 2 defines the incident response lifecycle as four phases: Preparation, Detection And Analysis, Containment Eradication and Recovery, and"logsource: category: process_creation product: windowsdetection: selection: Image|endswith: "\powershell.exe'' CommandLine|contains: - "-enc' - '-EncodedCommand' - '-w hidden' condition: selectionlevel: mediumtags: - attack.execution - attack.t1059.001# Sigma rule: Detect potential SSH brute forcetitle: SSH Brute Force Attemptstatus: productiondescription: "NIST SP 800-61 Rev. 2 defines the incident response lifecycle as four phases: Preparation, Detection And Analysis, Containment Eradication and Recovery, and..."logsource: category: authentication product: linuxdetection: selection: service: sshd result: failure timeframe: 5m condition: selection | count() > 10level: hightags: - attack.brute_force - attack.t1110MITRE ATT&CK Mapping
Section titled “MITRE ATT&CK Mapping”MITRE ATT&CK provides a framework of adversary tactics, techniques, and procedures (TTPs). Mapping Detected activity to ATT&CK techniques helps understand the attacker”s goals and predict next steps.
graph LR
subgraph Initial Access
T1[T1566 Phishing]
T2[T1190 Exploit Public-Facing App]
end
subgraph Execution
T3[T1059 Command and Scripting]
T4[T1204 User Execution]
end
subgraph Persistence
T5[T1543 Create/Modify System Process]
T6[T1053 Scheduled Task/Job]
end
subgraph Lateral Movement
T7[T1021 Remote Services]
T8[T1570 Lateral Tool Transfer]
end
subgraph Exfiltration
T9[T1048 Exfiltration Over Alternative Protocol]
T10[T1567 Exfil Over Web Service]
end
T1 --> T3 --> T5 --> T7 --> T9
T2 --> T4 --> T6 --> T8 --> T10Containment
Section titled “Containment”Containment limits the damage by isolating affected systems and preventing further spread. The goal Is to stop the bleeding without destroying evidence.
Short-Term Containment
Section titled “Short-Term Containment”Immediate actions to stop the active threat:
| Action | When to Use | Risk |
|---|---|---|
| Network isolation (pull plug) | Fast-spreading ransomware, active exfiltration | Disrupts service, may alert attacker |
| Firewall rule blocking | Known C2 IP/domain | Less disruptive |
| Account disable | Compromised credentials | User loses access |
| VLAN isolation | Compromised host on shared network | Isolates without full disconnection |
| API key revocation | Leaked or compromised keys | Dependent services break |
Long-Term Containment
Section titled “Long-Term Containment”Actions that allow business to continue while the investigation proceeds:
- Deploy clean systems alongside compromised ones (temporary replacements)
- Implement network segmentation to contain the affected zone
- Apply emergency patches or configuration changes
- Set up monitoring on containment boundaries for escape attempts
- Implement enhanced logging on affected systems
Evidence Preservation
Section titled “Evidence Preservation”Reference Standards: NIST SP 800-61 Rev. 2 (Computer Security Incident Handling Guide), NIST SP 800-86 (Guide to Integrating Forensic Techniques into Incident Response), NIST SP 800-83 (Guide to Malware Incident Prevention and Handling), RFC 3227 (Guidelines for Evidence Collection and Archiving), MITRE ATT&CK Framework, ISO/IEC 27035 (Information Security Incident Management), NIST Cybersecurity Framework (CSF), SANS Incident Handler’s Handbook.
Summary
Section titled “Summary”This topic covers the core concepts of incident response, including underlying theory, practical implementation, and key applications.
Key concepts include:
- TCP/IP and the OSI model
- network topologies
- protocols (HTTP, FTP, SMTP)
- encryption and security
- client-server and peer-to-peer
Understanding these concepts thoroughly is essential for both examinations and practical programming, and requires both theoretical knowledge and hands-on practice.
Worked Examples
Section titled “Worked Examples”Worked examples demonstrating the application of key concepts are covered in the detailed sub-pages linked above.