Chapter 12: Vulnerability Management, Automation, and Incident Response
Learning Outcomes:
- Analyze common vulnerabilities and implement appropriate mitigations.
- Automate security operations using scripting, Infrastructure as Code (IaC), and generative AI.
- Implement Security Orchestration, Automation, and Response (SOAR) playbooks and runbooks.
- Utilize Security Content Automation Protocol (SCAP) standards for vulnerability scanning and reporting.
- Analyze malware artifacts using detonation, sandboxing, and reverse engineering.
- Conduct volatile and non-volatile storage, network, host, metadata, and cloud workload analysis during incident response.
- Perform insider-threat investigations, root cause analysis, and timeline reconstruction following a security breach.
- Organize and execute preparedness exercises, threat response actions, and recovery workflows to enhance enterprise threat response capabilities.
Introduction
The preceding chapters built walls, locked doors, and installed cameras. This chapter is about what happens when something still goes wrong — and about making “going wrong” as rare and short-lived as possible through disciplined vulnerability management and security automation.
Most breaches do not require exotic tradecraft. They trace back to a known vulnerability that was not patched on time, a misconfiguration that was never caught, a phishing email that slipped past a poorly tuned control, or an incident that escalated because responders could not move fast enough manually. (Zero-day attacks on internet-facing devices do happen, so shrinking exposure and detecting quickly both matter.) Each failure mode has a systematic fix, and this chapter covers all of them.
We begin with the vulnerability landscape — what common software weaknesses look like, how they are scored and tracked through CVSS and CVE, and how SCAP standards turn vulnerability data into machine-readable policy that scanning tools can act on automatically. We then move to security automation — scripting, SOAR playbooks, and IaC — that turn what would otherwise be days of manual analyst work into seconds of orchestrated response. Finally, we walk through a widely used incident response (IR) lifecycle of preparation, detection and analysis, containment, eradication, recovery, and post-incident activity while noting that NIST’s current guidance, SP 800-61 Rev. 3, reorganizes the same work around the CSF 2.0 Functions (Nelson et al. 2025).
How Do We Manage and Mitigate Vulnerabilities?
Vulnerability management is the continuous process of discovering, prioritizing, remediating, and verifying weaknesses before adversaries exploit them. The discipline spans software vulnerabilities (injection flaws, memory errors, weak cryptography), configuration weaknesses (open ports, default credentials, overly permissive IAM roles), and the patch lifecycle that keeps every OS, application, hypervisor, and firmware image current.
Common Software Vulnerability Classes
Software vulnerabilities cluster into recurring patterns. Understanding the class of a vulnerability — not just the specific CVE — allows a defender to build architectural mitigations that neutralize whole families at once.
Injection is the oldest and most persistent class. When an application passes untrusted user input directly to an interpreter — SQL engine, operating system shell, LDAP directory, XML parser — the attacker can cause that interpreter to execute commands the developer never intended. The fix is the same in principle everywhere: keep data separate from code. Apply input validation (accept only what an allow-list permits), use parameterized queries or prepared statements for SQL, call APIs that never invoke a shell for operating-system commands, and never build queries by string concatenation.
Example A login form concatenates the submitted username directly into a SQL query:
SELECT * FROM users WHERE username = '+ input +'An attacker submits:' OR '1'='1The resulting query becomes:SELECT * FROM users WHERE username = '' OR '1'='1'which returns all rows, bypassing authentication entirely. A parameterized query —SELECT * FROM users WHERE username = ?with the value bound separately — eliminates this class of attack entirely because the input is never interpreted as SQL syntax.
Cross-Site Scripting (XSS) occurs when an
application reflects user-supplied content back to a browser without
encoding it, allowing the attacker’s JavaScript to execute in the
victim’s session. Stored XSS persists in the database (a forum post that
executes when another user views it); reflected XSS is delivered via a
malicious link; DOM-based XSS manipulates the page’s Document Object
Model in the browser without touching the server at all. The fix is
output encoding: every piece of data rendered into HTML
must have its special characters (<, >,
", &) converted to their HTML entity
equivalents.
Cross-Site Request Forgery (CSRF) tricks an authenticated user’s browser into submitting a state-changing request to a site the user is already logged into, using the victim’s existing session cookie. Because the browser automatically attaches cookies to every request to the relevant domain, the server cannot distinguish a legitimate form submission from a forged one — unless the application includes an unpredictable CSRF token in every form that the server verifies on submission.
Server-Side Request Forgery (SSRF) is a newer but
increasingly critical class where the server itself is tricked into
making requests on behalf of the attacker — to internal services,
metadata endpoints (the AWS instance metadata service at
169.254.169.254 is the canonical target), or cloud
credentials APIs. Defense requires validating and restricting what URLs
the application is permitted to contact, ideally through an allow-list.
On AWS, requiring token-based IMDSv2 adds a second barrier (MacCárthaigh
2019).
Insecure deserialization occurs when an application
deserializes data from an untrusted source without validation. Because
serialization formats (Java’s native serialization, PHP’s
unserialize(), Python’s pickle) can encode
executable objects, an attacker who controls the serialized payload can
sometimes achieve remote code execution. The safest fix is to avoid
native deserialization of untrusted data entirely and use data-only
formats (JSON, Protocol Buffers) with strict schema validation
instead.
Memory unsafety — buffer overflows, use-after-free, integer overflow, format string bugs — remains endemic in C and C++ codebases. These bugs are the substrate for shellcode injection and return-oriented programming (ROP) exploits. Memory-safe languages (Rust, Go, Swift) eliminate whole classes at the language level; where a C/C++ codebase cannot be rewritten, mitigations like address space layout randomization (ASLR), stack canaries, and no-execute (NX/DEP) memory pages raise the attacker’s cost significantly.
Key Point The OWASP Top 10 is a periodically updated ranking of the most critical web-application risk categories (OWASP Foundation 2025). Categories move between editions (in 2025, for example, SSRF was folded into Broken Access Control). CompTIA SecurityX expects you to do more than name these classes; you must describe the underlying mechanism and the correct architectural control for each one.
Configuration and Dependency Weaknesses
Not every vulnerability is in the application code. A large fraction
of real-world breaches exploit insecure configurations:
default credentials left on a newly deployed device, an S3 bucket with
public-read ACL, an SSH service that still allows root login, a cloud
IAM role with *:* permissions. A well-run vulnerability
management program scans for configuration drift continuously — not just
application code flaws.
Embedded secrets are another perennial problem. Hard-coded API keys, database passwords, and private certificates committed into source code repositories get exposed through repository leaks, log shipping, or accidental public disclosure. The correct design is to retrieve secrets from a secrets manager (HashiCorp Vault, AWS Secrets Manager, Azure Key Vault) at runtime, never to store them in code or configuration files.
Vulnerable dependencies are the vulnerability class that Log4Shell made impossible to ignore: in December 2021, a flaw in Apache Log4j, a ubiquitous Java logging library (CVE-2021-44228, CVSS 10.0), let attackers run code on a server just by getting a crafted string written to its logs (Cybersecurity and Infrastructure Security Agency 2022). Modern applications have hundreds of third-party libraries; a critical vulnerability in any one of them is a critical vulnerability in every application that ships it. A Software Bill of Materials (SBoM) — a machine-readable inventory of every dependency and its version, commonly in SPDX or CycloneDX format — is the foundation for answering the question “are we affected?” within hours rather than weeks. A Vulnerability Exploitability eXchange (VEX) statement is its companion: a vendor’s declaration of whether a CVE actually affects a product (for example, “not affected: the vulnerable code is never called”).
Warning Dependency vulnerabilities are frequently discovered in libraries your team has never directly chosen. A JavaScript frontend may pull in dozens of transitive dependencies through a single
npm install. Tools like Dependabot, Snyk, and OWASP Dependency-Check automate the monitoring and alerting pipeline — but only if they are integrated into the CI/CD pipeline rather than treated as an afterthought.
| CVSS v3.1 Base Metric | Key Dimensions | What It Measures |
|---|---|---|
| Attack Vector (AV) | Network / Adjacent / Local / Physical | How the attacker reaches the component |
| Attack Complexity (AC) | Low / High | Technical difficulty of the attack |
| Privileges Required (PR) | None / Low / High | Pre-existing access level needed |
| User Interaction (UI) | None / Required | Does a victim need to take an action? |
| Scope (S) | Unchanged / Changed | Can the impact cross to another component? |
| Confidentiality Impact (C) | None / Low / High | Data exposure potential |
| Integrity Impact (I) | None / Low / High | Data modification potential |
| Availability Impact (A) | None / Low / High | Service disruption potential |
Table 12.2: Understanding CVSS v3.1 Base Metrics. A network-exploitable, low-complexity vulnerability that needs no privileges or user interaction and has high impact on all three CIA dimensions scores 9.8 (10.0 if Scope is Changed). CVSS measures severity, not the likelihood of attack, so it is only one input to prioritization.
gets(), MD5)Prioritizing beyond severity. Many high-scoring flaws are never exploited, while some medium-scoring ones are used in real attacks, so defenders pair CVSS with evidence of exploitation:
- The CISA Known Exploited Vulnerabilities (KEV) catalog lists CVEs with reliable evidence of active exploitation. Under Binding Operational Directive 22-01, U.S. federal civilian agencies must fix KEV entries by a due date; everyone else can treat KEV as a “patch these first” list (Cybersecurity and Infrastructure Security Agency 2021).
- The Exploit Prediction Scoring System (EPSS), maintained by FIRST, estimates the probability that a CVE will be exploited in the wild within 30 days; version 4 arrived in March 2025 (Forum of Incident Response and Security Teams 2025).
- Stakeholder-Specific Vulnerability Categorization (SSVC) is a decision tree (CISA publishes one) that weighs exploitation, whether exploitation can be automated, technical impact, and mission and well-being impact to output Track, Track*, Attend, or Act (Cybersecurity and Infrastructure Security Agency, n.d.).
- Your own context: internet exposure, asset criticality, and compensating controls.
Data sources have limits, too. In April 2026 NIST announced that the National Vulnerability Database (NVD), which adds CPE product data and scores to CVEs, would prioritize KEV, federal, and critical software, so many other CVEs may carry no NVD analysis (National Institute of Standards and Technology 2026).
Security Content Automation Protocol (SCAP) is a NIST-maintained suite of standards (Waltermire et al. 2018) that allows vulnerability-scanning tools to operate against machine-readable policy specifications rather than hand-crafted scripts. The key SCAP components are:
- CVE — vulnerability naming (described above).
- CVSS — severity scoring (described above).
- CPE (Common Platform Enumeration) — standardized naming for hardware, OS, and application versions, so a scanner can precisely identify affected products.
- OVAL (Open Vulnerability and Assessment Language) — an XML language for describing system state checks that a scanner can execute to determine whether a given CVE condition is present.
- XCCDF (Extensible Configuration Checklist Description Format) — an XML language for encoding compliance checklists (like CIS Benchmarks) in a machine-readable form that automated scanners can evaluate and report on.
Example An organization subscribes to the CIS Benchmark for Red Hat Enterprise Linux 8. The benchmark is published as an XCCDF document. The organization’s SCAP-compliant scanner (OpenSCAP, Tenable Nessus, Qualys) ingests that XCCDF file and runs the defined OVAL checks against every enrolled Linux host, producing a compliance percentage report and a detailed finding list — entirely automated, without an analyst manually comparing the benchmark checklist row by row.
Thought Question Your vulnerability scanner reports 1,400 open findings, but the engineering team says they can remediate roughly 50 vulnerabilities per sprint. Which evidence would you use to choose the first 50, and how would you explain to a business unit why its Critical-scoring finding is not in this sprint?
Quick Check 12.2
- Recall. What do CVE, CVSS, and SCAP each contribute to vulnerability management?
- Discriminate. A scanner ingests a CIS benchmark expressed as XML and automatically checks Linux hosts against it. Which SCAP components are doing the work?
- Apply. One CVE has a CVSS base score of 9.8, an EPSS probability near zero, and no KEV listing. Another scores 6.5 and is in KEV. Both affect internet-facing servers. Which do you patch first, and why?
Answers — Quick Check 12.2
- CVE names the vulnerability, CVSS scores its severity, and SCAP provides machine-readable standards that let scanners automate identification and compliance checking.
- XCCDF and OVAL. XCCDF carries the checklist, and OVAL carries the machine-readable state checks used to evaluate it.
- The 6.5 KEV-listed flaw. KEV confirms active exploitation, while the 9.8 shows no sign of it. CVSS measures severity, not likelihood, so the 9.8 can wait its turn (but should still be scheduled).
How Can Automation Force-Multiply Security?
Security teams are always outnumbered. A 10-person SOC defending a 10,000-employee organization cannot manually review every alert, manually contain every suspicious endpoint, or manually push every patch — the math does not work. Automation is not a nice-to-have; it is how modern security organizations remain viable.
Scripting for Security
Python is the dominant scripting language in
security because of its library ecosystem: requests for
HTTP automation, scapy for packet crafting,
boto3/azure-sdk for cloud API interaction, and
an enormous range of vendor SDKs. PowerShell is the
essential Windows automation language — every Windows and Microsoft 365
administrative operation is accessible via cmdlets, and incident
responders who cannot script PowerShell are at a significant
disadvantage. Bash is the substrate of Linux/Unix
automation, CI/CD pipelines, and Docker entrypoints.
Effective security scripting focuses on three patterns:
- Scheduled tasks and cron jobs for recurring operations — pulling IOC feeds nightly, running compliance checks weekly, generating metric dashboards hourly.
- Event-driven triggers that fire in response to conditions — an AWS EventBridge rule that invokes a Lambda function when an IAM role is modified, a webhook (an HTTP callback: when an event occurs, one system POSTs a small JSON message to a URL the other exposes) from the SIEM that calls a containment endpoint when a high-severity alert fires. A webhook endpoint is attack surface in its own right, so authenticate callers (signed payloads or mTLS) and validate what they send.
- API and SDK integration that chains multiple tools together — a script that queries the SIEM for all hosts that communicated with a known-bad IP, then calls the EDR API to isolate each one, then opens a ticket in the ITSM with the list and a timestamp.
Example A Python script used in incident containment:
import os, requests SIEM_API = "https://siem.internal/api/alerts" EDR_API = "https://edr.internal/api/v1/endpoints" # Tokens are injected at runtime by a secrets manager, never written in code SIEM_TOKEN = os.environ["SIEM_TOKEN"] EDR_TOKEN = os.environ["EDR_TOKEN"] # Pull affected hosts from the SIEM alert alert = requests.get(SIEM_API + "/alert-4421", headers={"Authorization": "Bearer " + SIEM_TOKEN}, timeout=10).json() affected_hosts = alert["affected_hosts"] # Network-isolate each host via the EDR API for host in affected_hosts: r = requests.post(EDR_API + f"/{host}/isolate", json={"reason": "SOAR auto-contain: alert-4421"}, headers={"Authorization": "Bearer " + EDR_TOKEN}, timeout=10) print(f"Isolated {host}: HTTP {r.status_code}")This pattern — SIEM alert → enrichment → EDR action — is the core loop of nearly every SOAR playbook, whether implemented as a script or a no-code workflow. A production version would add the enrichment step, error handling, and an approval gate for important hosts.
Infrastructure as Code and Configuration Management
Infrastructure as Code (IaC) tools (Terraform, Pulumi, AWS CloudFormation) define infrastructure declaratively in version-controlled files. From a security standpoint, IaC provides several advantages over console-managed infrastructure:
- Drift detection. A CI/CD pipeline can continuously compare the declared state against the actual state and alert or auto-remediate when they diverge.
- Pre-deployment scanning. Tools like Checkov, Trivy, and Snyk IaC scan Terraform and CloudFormation files for misconfigurations (open security groups, unencrypted storage, public bucket ACLs) before they are ever deployed.
- Immutable infrastructure. Containers and VM images are built once, scanned, and deployed. Rather than patching running instances, the image is rebuilt with the patch applied and redeployed — eliminating the drift that accumulates on long-running servers.
Configuration management tools (Ansible, Chef, Puppet) apply and enforce desired state on running systems — ensuring that every Linux server has the same SSH hardening configuration, that every Windows workstation has the same registry security baseline, and that deviations are automatically corrected or flagged.
These tools read configuration files: YAML (Kubernetes manifests, Ansible playbooks, CI/CD pipelines), JSON (cloud templates, API payloads), XML (SCAP content, many enterprise tools), and TOML (Python and Rust project settings). All are plain text that can be version-controlled and peer-reviewed, but one misplaced indent in YAML can silently attach a setting to the wrong block, so lint and schema-validate before deploying.
SOAR Playbooks and Runbooks
Security Orchestration, Automation, and Response (SOAR) platforms (Splunk SOAR, Palo Alto Cortex XSOAR, IBM Security QRadar SOAR, Microsoft Sentinel playbooks) provide a workflow engine that chains security tool APIs together in response to SIEM alerts. A playbook is the automated policy logic — “when a phishing alert fires, do X, then Y, then Z.” A runbook is the documented manual procedure that an analyst follows when the automation is not sufficient or when a human decision point is reached. When a playbook acts by itself — isolating a host, disabling an account — without waiting for a person, that is auto-containment.
The value of a SOAR is compression of the mean time to respond (MTTR), the average time from detection to containment. (Vendors also expand MTTR as mean time to recover, remediate, or resolve, so always check the definition in use.) Manual triage of a phishing alert — opening the email gateway console, extracting headers, checking VirusTotal, querying Active Directory for the recipient, quarantining the message, documenting the ticket — can take 20–45 minutes per alert. An automated SOAR playbook can run the same workflow in well under a minute, at any hour, without fatigue.
Figure 12.1: A SOAR phishing response playbook. When the email
gateway fires a suspicious-message alert, the playbook automatically
extracts indicators, checks them against threat intelligence, scores the
confidence level, auto-quarantines the message, blocks identified URLs
and IPs at the firewall and DNS sinkhole, notifies the reporting user,
creates the SIEM incident record, and — if any endpoint made a click or
download — isolates it via EDR. Human analyst escalation happens only
when the confidence score is below threshold or when the situation
requires judgment the playbook cannot provide.
Key Point SOAR is not “set it and forget it.” Playbooks need version control, testing against historical alert data, and regular review as the environment changes. A stale playbook that auto-remediates based on outdated logic can be more dangerous than no automation at all — especially at the containment and blocking stages. Auto-containment also needs guardrails: scope conditions that exclude sensitive accounts, and human approval for high-impact actions such as isolating a production server.
Case Study Alice Liddell Automates Containment at Wonderland Logistics
Alice Liddell, Incident Response Manager at Wonderland Logistics (a 6,000-employee regional freight company), inherited an incident response program that ran almost entirely on heroics: two senior analysts working from memory, a shared Word document called “IR Checklist v7_FINAL_USE_THIS_ONE.docx,” and no integrations between the SIEM, the EDR, and the ticketing system.
The breaking point came during a credential-stuffing campaign that hit Wonderland’s employee portal on a Friday evening. Twenty-three accounts were compromised before the on-call analyst noticed the spike — two hours after the attack began. By that point, three of the compromised accounts had already been used to access internal shipping manifests and customer data. The post-incident review was blunt: the detection had worked fine; the response had been the bottleneck.
Alice spent the following quarter building a containment automation library in Python. Each function in the library mapped to one atomic response action:
disable_ad_account(username),revoke_entra_sessions(upn),reset_password(username),isolate_endpoint(hostname),create_ticket(title, severity, details). Every function called the relevant vendor API and wrote a structured log entry that could be attached to the IR ticket automatically.She then connected those functions to the SOAR platform as named actions and built a credential-stuffing playbook: when the SIEM fired an alert tagged
credential_stuffing_suspected, the playbook disabled the flagged account in Active Directory, revoked all active Entra sessions, forced a password reset, created an incident ticket, and paged the on-call analyst with a pre-populated summary. The analyst’s job shifted from four manual steps across three consoles to a single decision: real alert, or false positive to close?During the next credential-stuffing campaign six weeks later, attackers hit eight accounts in a 20-minute burst. All eight were disabled automatically within 90 seconds of the SIEM alert firing — before any of them could be used to access production systems. Alice’s lesson: automation does not replace incident responders. It replaces the mechanical parts of the job so responders can spend their time on the parts that actually require judgment.
Quick Check 12.3
- Recall. What is the difference between a SOAR playbook and a runbook?
- Discriminate. A SIEM alert automatically disables an AD account, revokes Entra sessions, and opens a ticket, with no analyst involved. What kind of system behavior is that?
- Apply. Your containment automation is fast but brittle and hard to audit. Name three engineering practices from the chapter that make that automation safer.
Answers — Quick Check 12.3
- A playbook is the automated response logic in the SOAR platform, while a runbook is the documented manual procedure analysts follow when judgment is required.
- Auto-containment by a SOAR playbook. A runbook would have an analyst perform those steps.
- Version control, testing against historical alerts, and structured logging tied to the incident record are three key practices. The chapter also calls for scope conditions and human approval on high-impact containment actions.
Generative AI for Security Operations
Generative AI has entered the security operations workflow in several practical forms:
- Code assist. Large language models help analysts write and debug detection rules (Sigma, KQL, SPL) and response scripts faster, lowering the expertise barrier for less experienced team members.
- Alert summarization. AI-powered SIEM and SOC assistants (such as Microsoft Security Copilot) can produce natural-language summaries of multi-event alert chains, saving the analyst five minutes of log-reading at triage time.
- Documentation. Generative AI drafts post-incident reports, runbook updates, and briefings from structured IR data, dramatically reducing the overhead of documentation.
The risks are also real: a model that confidently hallucinates a CVE number or misidentifies a benign process as malware can cause incorrect containment actions. Every AI-suggested action in a security workflow should have a human confirmation step at any containment-or-beyond stage. Treat AI-generated code like code from an unknown contributor: review and test it in a lab first, and do not paste secrets or sensitive logs into an external AI service unless policy allows it.
How Do We Measure Exposure and Automate Remediation?
Vulnerability scanning is the ongoing practice of systematically probing assets to identify known vulnerabilities, misconfigurations, and missing patches. The two dominant deployment patterns are:
- Authenticated (credentialed) scanning. The scanner is given a dedicated, least-privilege scan account on the target (administrative-equivalent read access on Windows, an SSH key with limited sudo on Linux) and reads the installed package list, registry settings, and service configurations directly. Credentialed scans are dramatically more accurate and complete than unauthenticated scans.
- Unauthenticated (network) scanning. The scanner probes from the network, inferring vulnerability status from service banners, TCP responses, and protocol behavior. Useful for discovering unknown assets and misconfigurations visible from the network; misses many OS-level vulnerabilities that are only visible with credentials.
Warning A vulnerability scan result is a snapshot, not a continuous truth. An asset that was clean at 2 a.m. Tuesday can have a new critical vulnerability installed by 10 a.m. Tuesday when an application dependency is updated. Modern vulnerability management programs combine scheduled credentialed scans (weekly or daily) with agent-based continuous assessment (real-time on every endpoint) for a much more current picture.
Reporting and metrics turn findings into decisions. Dashboards and other visualizations should show open findings by severity and asset group, scan coverage, mean time to remediate, and findings past their deadline. Trends matter more than snapshots: a rising total means findings arrive faster than they are fixed.
Automated patching closes the loop from finding to fix. It must cover every layer: the operating system, application software, the hypervisor, firmware, and the system images new machines are built from. A safe process patches a pilot group first, uses maintenance windows, confirms the result with a follow-up scan, and keeps a rollback path. It can run on a schedule or be event-driven, such as a pipeline that rebuilds an image when a patched base image is published. KEV-listed flaws warrant an out-of-band emergency patch; systems that cannot be patched should be isolated with compensating controls.
Containerization in automated security workflows provides another lever. Instead of installing scanning tools directly onto production systems, security workflows increasingly run tools as ephemeral containers — spin up a Trivy container to scan an image, emit the results as a JSON report, destroy the container. This pattern keeps the scanning infrastructure isolated, versioned, and reproducible, and fits naturally into CI/CD pipelines where every code push triggers a security scan before any image is promoted to production.
How Do We Respond to an Active Security Incident?
Incident response (IR) is the organized process of detecting, containing, eradicating, and recovering from security incidents while preserving evidence and learning from the experience. The classic reference model is the four-phase lifecycle in NIST SP 800-61 Rev. 2 (2012). In April 2025 NIST replaced it with SP 800-61 Rev. 3, a CSF 2.0 community profile that maps incident response onto the six Functions of the Cybersecurity Framework 2.0: Govern, Identify, and Protect (preparation, treated as everyday risk management) and Detect, Respond, and Recover (the incident itself), with lessons learned flowing back as Improvement (Nelson et al. 2025; National Institute of Standards and Technology 2024). Most playbooks, vendors, and exam questions still use the four-phase model, so this section follows it; Table 12.3 shows the mapping.
Figure 12.2: The classic incident-response lifecycle from NIST SP
800-61 Rev. 2, with four phases: Preparation, Detection and Analysis,
Containment/Eradication/Recovery, and Post-Incident Activity. Rev. 3
superseded it in 2025, but it remains the most common way to teach and
structure IR. Detection/analysis and containment loop back and forth as
new evidence appears, and the cycle is deliberately continuous — lessons
learned feed directly back into preparation for the next
incident.
| Classic Phase (Rev. 2) | Closest Counterpart in Rev. 3 (CSF 2.0) |
|---|---|
| Preparation | Govern, Identify, Protect |
| Detection and Analysis | Detect (analyze adverse events, declare an incident), then Respond (incident analysis) |
| Containment, Eradication, and Recovery | Respond (mitigation: contain and eradicate), then Recover |
| Post-Incident Activity | Improvement (category ID.IM), which feeds lessons into all six Functions |
Phase 1: Preparation
Preparation happens before any incident. An IR program that begins at the moment of detection is already too late. Key preparation activities include:
- IR policy and plan. A documented, board-approved policy that defines what constitutes a security incident, who has authority to declare one, what the escalation chain looks like, and what legal or regulatory notification obligations exist.
- Playbooks and runbooks. Pre-written procedures for the most likely incident types: ransomware, phishing, credential compromise, insider threat, DDoS. A playbook is worth nothing if the analyst cannot find it or access it when the corporate network is down.
- Communication plan. Who calls whom, in what order, under what conditions. Includes out-of-band communication channels (personal phones, encrypted messaging apps) because the corporate email may be the compromised system.
- IR toolset readiness. A jump bag or forensic kit pre-loaded with write-blockers, bootable forensic media, clean storage drives, and documented tool installations on hardened analysis workstations.
- Preparedness exercises. Regular simulated incidents run with the IR team, leadership, legal, and PR. A tabletop talks through a scenario; a functional exercise has responders use their real tools (for example, isolating a test host); a full-scale exercise tests people, process, and technology together, sometimes with a red or purple team as the attacker. Exercises surface coordination failures before real incidents do.
Key Point The legal function must be involved in IR planning before any incident. Attorney-client privilege may extend to IR reports if legal counsel is part of the investigation. Breach notification timelines are regulated (for example, GDPR requires notifying the supervisory authority within 72 hours of becoming aware of a breach that puts individuals at risk; U.S. public companies must file a Form 8-K within four business days of determining an incident is material (U.S. Securities and Exchange Commission 2023); many U.S. states set their own deadlines). Nobody should be learning those requirements for the first time at 2 a.m. during an active ransomware attack.
Phase 2: Detection and Analysis
Detection in a mature organization is primarily driven by SIEM alerts, EDR detections, and UEBA anomalies (covered in Chapter 11). The detection phase includes not just receiving the alert but scoping the incident — determining how many systems are affected, whether the attacker still has active access, what data may have been exposed, and whether the incident meets the threshold for formal declaration.
Analysis activities include:
- Log triage. Correlating events across authentication logs, EDR process telemetry, DNS queries, and network flow data to reconstruct the attack timeline.
- Malware sandboxing. Submitting suspicious files to an isolated detonation environment (Cuckoo Sandbox, Any.run, Triage, VMRay) that runs the file, captures its behavioral profile — network connections, registry changes, dropped files, injected processes — and scores it for maliciousness without risking the production environment.
- IOC extraction. Pulling indicators of compromise (IP addresses, domains, file hashes, registry keys, process names) from the malware analysis and log correlation to feed the containment and blocking steps.
- Reverse engineering. When a sandbox report is not enough, analysts take the sample apart. Static analysis examines the file without running it: a disassembler turns machine code into assembly, and a decompiler reconstructs readable, C-like source (Ghidra and IDA are common tools). Managed-runtime bytecode (Java, .NET) decompiles into near-original source, far more easily than a native binary. Dynamic analysis runs the sample under a debugger or sandbox.
- Code stylometry and variant matching. Code-similarity measures (fuzzy hashes, shared functions) link a sample to known variants; code stylometry studies programming habits to support attribution, but attackers can plant false flags, so treat attribution as probabilistic.
- Timeline reconstruction. Merge events from every source into one ordered story: normalize timestamps to UTC, allow for clock skew, and work outward from the earliest known malicious event. Tools such as Plaso (log2timeline) build a “super timeline.”
Example An analyst receives an EDR alert: a PowerShell process on a workstation contacted an external IP not seen in the network baseline, then wrote a new DLL to
%APPDATA%. The analyst submits the DLL to a sandbox. The sandbox report shows that the DLL:
- Runs
ipconfig /all(reconnaissance)- Makes an encrypted outbound connection to 198.51.100.47:443
- Attempts to read the LSASS process memory (credential dumping attempt — MITRE ATT&CK T1003.001)
- Drops a persistence registry key under
HKCU\Software\Microsoft\Windows\CurrentVersion\RunFrom this report the analyst extracts four IOCs: the IP address, the DLL hash, the registry key path, and the parent PowerShell command-line pattern. All four get pushed to the SOAR playbook for blocking and scanning across the fleet.
Phase 3: Containment, Eradication, and Recovery
Containment stops the damage from spreading without yet trying to fully clean or restore — because cleaning too fast destroys forensic evidence, and restoring too fast before eradication means restoring into a still-compromised environment.
Short-term containment actions:
- Network-isolate affected endpoints via EDR.
- Block identified C2 IP addresses and domains at the firewall and DNS sinkhole.
- Disable or force-reset compromised user accounts.
- Segment the affected network segment at the switch or firewall.
Long-term containment while the investigation completes:
- Maintain isolated copies of affected systems for forensic analysis.
- Set up enhanced logging and alerting for attacker TTPs that match the current incident.
- Apply emergency patches or configuration changes if the entry point is a known vulnerability.
Eradication removes the attacker’s presence: deleting malware artifacts, removing persistence mechanisms, closing the initial access vector (patching the vulnerability, closing the open RDP port, resetting all potentially harvested credentials).
Recovery restores normal operations: rebuilding compromised hosts from known-good images or backups, verifying integrity of restored data, monitoring closely for recurrence during the first 30 days post-recovery.
Phase 4: Post-Incident Activity
The lessons-learned meeting — held within two weeks of incident closure — is one of the highest-value activities in the entire IR program, and one of the most commonly skipped. The meeting should answer:
- What happened, in precise technical and timeline detail?
- What was the initial access vector, and was it preventable with a control we did not have?
- What was the dwell time, and why was detection delayed?
- Did our playbooks work as expected? Where did human coordination fail?
- What detection rules or SOAR playbook changes result from this incident?
- What metrics update (MTTD, MTTR) and what is the trend?
Root cause analysis (RCA) asks why, not just what. Keep asking “why?” (the “five whys”) until you reach a cause you can fix: “an employee clicked a link” is not a root cause; “the gateway did not detonate attachments” is.
The output is a formal post-incident report (PIR) — also sometimes called an after-action report (AAR) — that documents findings and assigns owners to each remediation item.
Insider Threat Investigations
Insider threats — malicious insiders abusing legitimate access, negligent insiders inadvertently exposing data, or compromised insiders whose accounts are being controlled by an external attacker — require a distinct investigation approach:
- Scope carefully before acting. Unlike an external attack, acting too visibly will alert the insider to destroy evidence or accelerate whatever exfiltration they are conducting.
- HR and legal involvement from the start. Insider investigations quickly become employment or legal matters; involving HR and legal counsel from the initial detection avoids procedural errors that would compromise eventual disciplinary action.
- UEBA as the detection substrate. Peer-group analytics and behavioral baselines (Chapter 11) are the primary detection mechanism for insiders who are technically authorized to access the systems they are abusing.
- DLP telemetry. Unusual print volumes, bulk cloud upload activity, USB write events on systems that have no legitimate use for removable storage, and mass email to personal addresses are DLP signals that often precede an insider data theft.
Case Study The Equifax Breach: Failed Vulnerability Management and IR
In the summer of 2017, credit-reporting giant Equifax suffered one of the most consequential data breaches in U.S. history — 147 million consumers’ personal records, including Social Security numbers, birth dates, addresses, and driver’s license numbers, were exfiltrated by attackers who maintained undetected access for 76 days (U.S. House Committee on Oversight and Government Reform 2018; Federal Trade Commission 2019).
The entry point was straightforward and entirely preventable. Apache Struts, a Java web framework used in Equifax’s online dispute portal, had a critical remote code execution vulnerability — CVE-2017-5638 — disclosed and patched by Apache in March 2017. Equifax’s own security team received the CERT alert. The organization had a policy requiring patches for critical vulnerabilities within 48 hours. The patch was never applied to this particular server. When attackers exploited the vulnerability in May 2017, they found a pathway directly into Equifax’s internal network (U.S. House Committee on Oversight and Government Reform 2018; Federal Trade Commission 2019).
The breach went undetected for 76 days partly because SSL inspection on the device monitoring the portal’s traffic was broken — an expired certificate had disabled it 19 months earlier, and nobody had fixed it. As a result, encrypted attacker traffic traversing the network was never decrypted and examined. When the certificate was renewed and SSL inspection resumed in late July, the inspected traffic immediately revealed the attack (U.S. House Committee on Oversight and Government Reform 2018).
The aftermath was severe. The 2019 settlement with the FTC, the CFPB, and U.S. states totaled at least $575 million (up to $700 million if the consumer fund fell short), and the CEO, CIO, and chief security officer all stepped down. Investigators pointed to recurring root causes: scanning that failed to catch the unpatched server, a lapsed inspection certificate, a flat internal network that allowed lateral movement, and a patch-management process with no way to verify that critical patches had actually been applied (U.S. House Committee on Oversight and Government Reform 2018; Federal Trade Commission 2019).
Equifax remains the canonical case study for vulnerability management failure because every root cause — a missed patch, an expired certificate, a flat network, and an unverified process — is a systematic failure, not a one-off mistake, and each was detectable and correctable with the controls a mature program provides.
Thought Question Equifax had a policy requiring patches within 48 hours. The policy failed. What technical controls — not just policy controls — would have made it substantially more likely that CVE-2017-5638 would have been patched on the affected server? Think about asset inventory, authenticated scanning, patch verification, and exception management.
How Do We Extract and Analyze Artifacts?
Digital forensics is the discipline of collecting, preserving, and analyzing digital evidence in a manner that maintains its integrity and supports legal or disciplinary proceedings. A key organizing principle is the order of volatility — volatile evidence disappears when power is removed (running processes, open network connections, ARP table, RAM contents), so it must be captured first.
Volatile vs. Non-Volatile Storage Analysis
Volatile evidence (captured while the system is running):
- RAM (memory) acquisition. A full memory dump captures all running processes, their loaded DLLs, decrypted keys and credentials in memory, active network connections, and artifacts that file-system analysis would never reveal. Tools: WinPmem, DumpIt, Magnet RAM Capture. Analysis: Volatility 3 (open source).
- Running process list.
tasklist,ps aux, EDR process tree. - Open network connections.
netstat -anor EDR network telemetry. - Logged-in users and active sessions.
who,query session, AD authentication logs.
Non-volatile evidence (persists after power-off):
- Disk image. A forensic bit-for-bit copy of the storage device, captured using a hardware or software write-blocker so the original is not modified. The forensic image is hashed (SHA-256) before and after acquisition to establish integrity. Analysis tools: Autopsy, FTK (Forensic Toolkit), X-Ways.
- File system artifacts. Deleted file recovery, file timestamps (MACB times — Modified, Accessed, metadata Changed, Born/created), browser history, registry hives (Windows), shell history (Linux/macOS). Data recovery and extraction matters here: deleted files can often be carved from unallocated space, though SSD TRIM and full-disk encryption can defeat this — another reason to capture RAM (and any keys in it) first.
- Log files. Windows Event Log (
.evtx), Linux syslog, application logs — captured as part of the disk image or shipped live to the SIEM.
Example A forensic acquisition workflow on a potentially compromised Windows endpoint, following order of volatility:
- Do not reboot. Rebooting destroys RAM contents and clears the network state table.
- Capture memory. Run WinPmem from a clean USB:
winpmem_mini_x64.exe output.mem- Capture volatile network state.
netstat -ano > netstate.txtandarp -a > arp.txt- Capture running processes.
tasklist /v > processes.txt- Hash and chain-of-custody tag the volatile captures.
- Attach write-blocker to the storage device.
- Acquire disk image. Behind the write-blocker the drive appears as a separate device (here
/dev/sdb):dd if=/dev/sdb of=/evidence/host-disk.img bs=4M conv=noerror,sync(or use FTK Imager on Windows).- Compute hash.
sha256sum /evidence/host-disk.img > host-disk.sha256- Document start time, analyst name, tool version, hash, and storage location in the chain-of-custody form.
Network, Host, Metadata, and Cloud Workload Analysis
Network forensics uses packet captures (pcap) and NetFlow records to reconstruct attacker traffic, identify data exfiltration volumes, and establish timelines. A full-packet capture (PCAP) provides the most complete picture but is storage-intensive; NetFlow records only source/destination IP, port, protocol, and byte count — much more storable and often sufficient to scope an incident.
Host forensics extends beyond the disk image to include:
- Registry analysis (Windows): persistence keys, installed software, recently opened files (MRU), USB device history, ShellBags (folder access), browser artifacts.
- Prefetch analysis (Windows): evidence of program execution even if the binary has been deleted.
- Shell history (Linux/macOS):
~/.bash_history,~/.zsh_history— often valuable even though attackers sometimes clear it. - Scheduled tasks and cron jobs: common persistence mechanisms.
Metadata forensics analyzes embedded metadata in
documents, images, and email headers. An image taken with a smartphone
may contain GPS coordinates, device model, and timestamp in its EXIF
data. A leaked Office document may contain the author’s username,
organization name, and revision history in its metadata. An
email header records every server that handled a
message (the Received lines, read bottom-up) plus SPF,
DKIM, and DMARC results, which helps expose spoofing. Audio and video
files carry creation time, device, and encoding details whose
inconsistencies can show editing or synthesis.
Cloud workload analysis is increasingly a forensics discipline in its own right. In cloud environments, traditional disk acquisition is often replaced by:
- Snapshot analysis. Taking an EBS/Azure disk snapshot and attaching it to a clean analysis instance.
- Cloud audit log analysis. AWS CloudTrail, Azure Activity Log, and GCP Cloud Audit Logs record every API call made to the control plane — who called what, from which IP, at what time.
- Container forensics. Docker images can be exported and analyzed layer by layer; Kubernetes audit logs record pod and secret access events.
- Cloud workload protection platforms (CWPP). Agents on VMs, containers, and serverless functions that scan workloads and record runtime process and network activity; for short-lived containers, that may be the only host evidence left.
Key Point Chain of custody is not a bureaucratic formality — it is the foundation of legal admissibility. Every piece of evidence must have a documented, unbroken record of who collected it, when, from what source, under what hash, and who had access to it afterward. An unsigned chain-of-custody form, a missing hash, or a period where the evidence was unaccounted for can make forensic findings inadmissible in disciplinary or legal proceedings.
JTAG and Hardware-Level Analysis
For mobile devices, embedded systems, and IoT devices where traditional file system extraction is not possible (because the OS is locked, encrypted, or non-standard), JTAG (Joint Test Action Group) and ISP (In-System Programming) techniques allow forensic analysts to interface directly with the device’s circuit board through debug ports, bypassing the operating system entirely to extract a raw image of the flash storage.
These techniques require specialized hardware (JTAG debuggers, soldering equipment for ISP), specialized software (Cellebrite UFED, MSAB XRY), and significant skill — but they are often the only option for recovering evidence from a wiped, locked, or damaged mobile device.
Quick Check 12.4
- Recall. Under the order-of-volatility principle, what kinds of evidence should be captured before a disk image?
- Discriminate. An analyst reboots a compromised laptop before acquisition. Name two kinds of evidence that action is likely to destroy.
- Apply. You have one incident involving a cloud workload and another involving a locked mobile device. Name one cloud-specific evidence source and one hardware-level extraction technique from the chapter, then explain why chain of custody still matters for both.
Answers — Quick Check 12.4
- RAM, open network connections, running processes, and active sessions should all be captured before disk imaging because they disappear first.
- Memory-resident artifacts such as decrypted keys or in-memory malware state, and live network or process state such as active connections and process trees.
- A cloud case can rely on CloudTrail, disk snapshots, or container or Kubernetes audit logs, while a locked mobile device may require JTAG or ISP extraction. Chain of custody matters because the evidence must have a documented, intact handling history if it is going to support discipline, legal action, or defensible findings.
Chapter Review and Conclusion
Chapter 12 closed the loop from detection and defense to response and recovery. The three disciplines covered here — vulnerability management, security automation, and incident response — reinforce each other: a disciplined vulnerability program shrinks the attack surface, automation compresses the window between detection and containment, and a well-practiced IR program turns each incident into organizational learning that makes the next one less likely and less damaging.
The Equifax case shows that technical sophistication is no substitute for operational discipline: a known vulnerability, a missed patch, an expired certificate, and an unverified process combined into one of the largest breaches in U.S. history. Alice Liddell’s program at Wonderland Logistics shows the other side: automation does not replace human judgment, but it compresses the mechanical, time-critical parts of response to seconds so skilled analysts can focus on the parts that need a human mind.
Key Terms Review
- SQL Injection: A vulnerability class where attacker-controlled input is concatenated directly into a SQL query and interpreted as SQL syntax. Fixed with parameterized queries.
- Cross-Site Scripting (XSS): Injection of malicious script into a web page viewed by other users. Fixed with output encoding and Content-Security-Policy.
- CSRF (Cross-Site Request Forgery): Forged state-changing request submitted using the victim’s authenticated session. Fixed with CSRF tokens and SameSite cookies.
- SSRF (Server-Side Request Forgery): Server makes attacker-controlled HTTP requests, often targeting internal metadata services. Fixed with URL allow-listing.
- CVE (Common Vulnerabilities and Exposures): The standardized naming system for publicly disclosed vulnerabilities.
- CVSS (Common Vulnerability Scoring System): The 0–10 severity scoring system for CVEs, comprising base, temporal/threat, and environmental metric groups (plus supplemental in v4.0).
- CPE (Common Platform Enumeration): A standardized naming scheme for hardware, operating systems, and applications, so scanners can precisely identify affected products.
- KEV (Known Exploited Vulnerabilities) Catalog: CISA’s list of CVEs with reliable evidence of active exploitation, used as a patch-first list.
- EPSS (Exploit Prediction Scoring System): A FIRST-maintained model estimating the probability that a CVE will be exploited in the wild within 30 days.
- SCAP (Security Content Automation Protocol): NIST suite of standards (CVE, CVSS, CPE, OVAL, XCCDF) enabling automated vulnerability scanning and compliance assessment.
- OVAL (Open Vulnerability and Assessment Language): XML language for encoding machine-readable system-state checks that scanners execute.
- XCCDF (Extensible Configuration Checklist Description Format): XML language for machine-readable compliance checklists (e.g., CIS Benchmarks).
- SBoM (Software Bill of Materials): A machine-readable inventory of every component and dependency in a software artifact.
- VEX (Vulnerability Exploitability eXchange): A vendor statement of whether a specific CVE actually affects a specific product.
- SOAR (Security Orchestration, Automation, and Response): A platform that chains security tool APIs together into automated playbooks triggered by SIEM alerts.
- Playbook: The automated policy logic in a SOAR platform — “when X fires, do Y, then Z.”
- Runbook: The documented manual procedure an analyst follows when automation is insufficient or a human decision point is reached.
- Infrastructure as Code (IaC): Declarative, version-controlled definition of infrastructure (Terraform, CloudFormation) enabling drift detection and pre-deployment security scanning.
- NIST SP 800-61 Rev. 3: NIST’s current incident-response publication (April 2025), which superseded the four-phase Rev. 2 and frames incident response as a CSF 2.0 community profile.
- Order of Volatility: The principle that evidence most likely to disappear first (RAM, network state) must be captured before less volatile evidence (disk image, log files).
- Malware Sandbox: An isolated execution environment that detonates suspicious files, captures their behavioral profile, and scores maliciousness without risking production systems.
- Reverse Engineering: Taking a program apart with disassemblers, decompilers, and debuggers to learn what it does when no source code is available.
- Chain of Custody: The documented, unbroken record of evidence collection, handling, and access that establishes legal admissibility of forensic findings.
- JTAG: A hardware debugging interface used in forensics to extract raw storage contents from mobile and embedded devices when OS-level extraction is impossible.
- Mean Time to Detect (MTTD): The average time elapsed between initial compromise and detection — the primary metric of detection program effectiveness.
- Mean Time to Respond (MTTR): The average time elapsed between detection and containment — the primary metric of response program effectiveness.
- Credential Stuffing: An automated attack using lists of previously breached username/password pairs against other services, relying on password reuse.
- Post-Incident Report (PIR): A formal document produced after incident closure that records root causes, timeline, and remediation assignments.
Practice-Based Questions
Apply The Chapter
Alice Liddell Automates Incident Response at Wonderland Logistics
Design PBQ. Map each open ticket in an IR queue to the right control — CVSS, SCAP/XCCDF/OVAL, SOAR playbook, malware sandbox, order of volatility.
Diagnose The Failure
Alice Reviews the Hare Incident
Diagnostic PBQ. A 90-second automated response destroys an HR investigation in real time. Walk backward through how a working playbook can still produce the wrong outcome — and identify the runbook, scoping condition, and quality metric that should have been there.
Synthesis Activities
These open-ended activities extend the chapter beyond what a search engine or chatbot can answer. Each works alone or in a group, and the goal is the conversation, debate, or artifact itself. Sidebars show how to use a chatbot as a practice partner, never as a source (Chapter 0 explains how).
Conduct an Interview (1 hour)
Talk to someone who actually does incident response, vulnerability management, or SOC work: an IR consultant, SOC analyst, vulnerability manager, or detection engineer. Questions worth asking:
- Walk me through the last incident you handled from page to post-mortem. What was the first signal, and how long until you trusted it?
- How do you decide what to patch first when scanners return ten thousand findings?
- Tell me about a containment decision that was harder than it should have been. What made it hard?
Listen for the gap between the lifecycle as taught (preparation through post-incident) and the lifecycle as lived. That gap is the chapter.
No one to interview? Rehearse with a chatbot playing a senior incident responder at a managed detection and response firm. The rehearsal shows which of your questions go somewhere before you spend them on a real person.
Hold a Debate (1 hour)
Pick the position you find least sympathetic and argue it as well as you can (in class, assign positions and go live):
- A mature SOAR platform should auto-contain confirmed malicious activity (isolating hosts, disabling accounts, blocking IPs) without waiting for a human. The cost of waiting exceeds the cost of occasional false positives.
- Automated containment crosses a line. A human analyst must approve every containment action that touches production, because the operational and legal consequences of a wrong call outweigh any speed benefit.
- The whole framing is wrong. The hard problem isn’t who pulls the trigger; detection is too noisy to trust either way. Until detections are tuned, neither auto-containment nor human review will save you.
Studying alone? Have a chatbot attack your argument as a senior SOC director, citing real ransomware incidents and false-positive horror stories.
Track a Current Debate (20 min)
Find an incident, CVE, or IR-community controversy from the last six months. Good starting points: the CISA Known Exploited Vulnerabilities (KEV) catalog and the SANS Internet Storm Center. Be ready to explain to a classmate, in two minutes, what happened (or what’s in dispute), which phase of the IR lifecycle was decisive, and what defenders are changing as a result. Bring two primary sources.
Lab Artifact: Score a Real Vulnerability (20 min)
Vulnerability scoring turns a paragraph of plain English into a CVSS vector other tools can act on. Do that conversion yourself, then check your work.
- Open the CISA Known Exploited Vulnerabilities catalog at cisa.gov/known-exploited-vulnerabilities-catalog and pick a CVE added within the last three months. Every KEV entry has confirmed in-the-wild exploitation, so these are real, not theoretical.
- Read the NVD entry for that CVE at nvd.nist.gov, but scroll past the published CVSS vector. Read only the description. (NVD prioritizes KEV entries for enrichment, so a KEV pick will usually have a score to check against.)
- Open the FIRST CVSS v3.1 calculator at first.org/cvss/calculator/3.1 and score the vulnerability from the description alone: Attack Vector, Attack Complexity, Privileges Required, User Interaction, Scope, and the C/I/A impact metrics. (If the record publishes only a v4.0 vector, use the v4.0 calculator linked from first.org/cvss instead; v4.0 adds Attack Requirements and drops Scope.)
- Now reveal the published vector (NVD’s, or the vendor’s if NVD has not analyzed the CVE) and compare. Where did you differ, and which metric was the closest call? Reread the description with the gap in mind: is it ambiguous, or did you misread?
- What CWE (Common Weakness Enumeration) weakness class does this vulnerability fall into? Find one architectural mitigation from this chapter that would neutralize the whole class, not just this CVE.
Safety: This activity is read-only. Do not download proof-of-concept exploit code from links in NVD references; reading about a CVE is not the same as running its PoC, and the latter can be live malware.
Walk an IR Tabletop (2+ hours)
Pick one scenario and walk it phase by phase, naming what you would do, what evidence you would collect, who you would call, and what would have to be true in advance for the response to work:
- It’s Saturday at 2 a.m. The CFO’s laptop displays a ransomware note. The on-call analyst sees three other endpoints flagged in EDR within the last hour, all in the finance org.
- A vendor advisory drops at 4 p.m. on a Friday: a CVE in your company’s VPN appliance is being actively exploited. Your scanner says eleven of them face the internet.
- The helpdesk forwards three near-identical phishing emails “from the CEO” asking finance staff to confirm wire details. One appears to have been clicked.
The point is to find what’s missing: the call tree nobody updated, the runbook that assumes a tool you don’t have, the backup nobody has tested restoring from. Write down every gap. With others, take turns as incident commander while the rest raise complications; rotate per phase so everyone makes a hard call.
No group? Have a chatbot facilitate this scenario and inject a complication after each decision. You play incident commander; tell it not to let you skip steps.