Skip to content

Incident Response

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:#333

The 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 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.

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:

ComponentDescription
Scope and objectivesWhat constitutes an incident, what the plan covers
Roles and responsibilitiesWho does what during each phase (RACI matrix)
Severity classificationHow to categorize incidents by impact and urgency
Communication proceduresInternal escalation, external notification, public comms
Technical proceduresStep-by-step instructions for common incident types
Evidence handlingChain of custody, forensic imaging, log preservation
Tool inventoryWhat tools are available and how to use them
Contact listsIR team, management, legal, law enforcement, regulators
Legal and regulatoryData breach notification requirements, retention policies
RoleResponsibility
Incident CommanderOverall coordination, decision-making, communication
Technical LeadDirects investigation, containment, and eradication
Forensic AnalystEvidence collection, preservation, and analysis
CommunicationsInternal and external messaging, media relations
Legal CounselRegulatory compliance, law enforcement liaison
Management LiaisonExecutive communication, resource authorization
IT OperationsInfrastructure support, isolation, recovery

For small organizations, roles may overlap. The critical requirement is that someone is explicitly Responsible for each function.

Playbooks are predefined procedures for specific incident types. They reduce decision-making under Pressure and ensure consistent, repeatable responses.

Incident TypeKey Playbook Actions
RansomwareIsolate affected systems, identify ransomware variant, assess data exposure, do not pay immediately
Data breachIdentify scope, preserve evidence, notify affected parties, assess regulatory requirements
Credential compromiseForce password reset, revoke sessions, check for lateral movement
DDoSActivate scrubbing, increase capacity, identify attack vector
MalwareIsolate infected host, identify malware family, scan for propagation
Insider threatPreserve evidence (legal hold), revoke access, coordinate with HR/legal
Supply chain attackIdentify affected software, assess blast radius, patch/revert, verify integrity
CategoryTools
SIEMSplunk, Elastic Security, Microsoft Sentinel
EDR/XDRCrowdStrike, SentinelOne, Microsoft Defender
Forensic imagingFTK Imager, dd, dc3dd, ewf
Memory forensicsVolatility, Rekall
Log aggregationFluentd, Logstash, Vector
Threat intelligenceMITRE ATT&CK, VirusTotal, Shodan, CIRCL
CommunicationSlack (dedicated channel), PagerDuty, Opsgenie
TicketingJira, ServiceNow, RT
DocumentationConfluence, shared drive (access-controlled)

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:

  1. Scenario design: Choose a realistic scenario (ransomware, data breach, insider threat)
  2. Inject timeline: Progress the scenario with new information at intervals
  3. Discussion: Team discusses what they would do at each step
  4. Observation: Facilitator notes gaps, confusion, and delays
  5. Debrief: Review findings, update playbooks and IRP

Example inject sequence for a ransomware exercise:

TimeInject
T+0User reports files are encrypted and a ransom note is displayed
T+15minSecond user reports the same. IT discovers network share is encrypted
T+30minEDR alerts on lateral movement attempts from the first host
T+60minLegal asks: “Do we know what data was accessed before encryption?”
T+90minMedia inquiry received. Board asks for status update
T+120minThreat intel: ransomware variant has known data exfiltration
T+180minExecutive demands: “Can we restore from backups?”
SourceDetection CapabilityLimitations
SIEM alertsCorrelated events across sourcesRequires tuning, high false positive rate
EDR/XDREndpoint behavior, process execution, file changesAgent must be running and healthy
Network IDS/IPSSuspicious network traffic, known signaturesCannot inspect encrypted traffic
Log analysisApplication errors, authentication failuresRequires logging to be enabled
User reportsPhishing, suspicious emails, slow systemsInconsistent, delayed
Threat intelligenceKnown IOCs, vulnerability announcementsReactive, not proactive
File integrityUnauthorized changes to critical filesRequires baseline
Cloud audit logsUnusual API calls, privilege escalationVolume can be overwhelming

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]
SeverityDefinitionResponse TimeExample
CriticalActive breach, data exfiltration, system-wide compromiseImmediateRansomware encrypting production DB
HighConfirmed compromise, limited scope, active threatWithin 1 hourSingle server compromised
MediumSuspicious activity, potential compromiseWithin 4 hoursCredential reuse alert from HaveIBeenPwned
LowPolicy violation, reconnaissance, informationalWithin 24 hoursPort scan from external IP
InfoNo security impact, awareness itemNext business dayVulnerability disclosure (unaffected version)
IOC TypeExampleDetection Method
IP address198.51.100.42 (known C2 server)Firewall logs, IDS alerts
Domainevil-update.example.comDNS logs, proxy logs
File hashSHA-256: abc123... (known malware)EDR, AV scans
URLhttps://evil.com/payload.exeProxy logs, URL filtering
Email subject”Urgent: Verify your account”Email gateway logs
Registry keyHKLM\Software\Microsoft\Windows\CurrentVersion\Run\malwareEDR, system logs
MutexGlobal\{A1B2C3D4-E5F6-7890}Memory analysis, EDR
Network artifactUnusual user-agent, certificate pin mismatchIDS, 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.

PlatformTypeAccessUse Case
MISPOpen sourceSelf-hostedInternal and community IOC sharing
STIX/TAXIIStandardVariousStructured threat intelligence exchange
AlienVault OTXCommunityFreeOpen threat intelligence sharing
CISA AISGovernmentAuthorizedUS government cyber threat sharing
VirusTotalMalwareFree/PaidFile and URL reputation lookup
ShodanInternet scanFree/PaidExposed 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.

Detection rules translate threat intelligence into automated alerts in your SIEM or EDR:

# Sigma rule: Detect suspicious PowerShell execution
title: Suspicious PowerShell Encoded Command
status: production
description: "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: windows
detection:
selection:
Image|endswith: "\powershell.exe''
CommandLine|contains:
- "-enc'
- '-EncodedCommand'
- '-w hidden'
condition: selection
level: medium
tags:
- attack.execution
- attack.t1059.001
# Sigma rule: Detect potential SSH brute force
title: SSH Brute Force Attempt
status: production
description: "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: linux
detection:
selection:
service: sshd
result: failure
timeframe: 5m
condition: selection | count() > 10
level: high
tags:
- attack.brute_force
- attack.t1110

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 --> T10

Containment limits the damage by isolating affected systems and preventing further spread. The goal Is to stop the bleeding without destroying evidence.

Immediate actions to stop the active threat:

ActionWhen to UseRisk
Network isolation (pull plug)Fast-spreading ransomware, active exfiltrationDisrupts service, may alert attacker
Firewall rule blockingKnown C2 IP/domainLess disruptive
Account disableCompromised credentialsUser loses access
VLAN isolationCompromised host on shared networkIsolates without full disconnection
API key revocationLeaked or compromised keysDependent services break

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

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.

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 demonstrating the application of key concepts are covered in the detailed sub-pages linked above.