Start with decisions, not tools
Operating model and learning outcomes
DFIR is a decision-support discipline. The team must preserve sufficiently trustworthy records, reconstruct what is supportable, communicate uncertainty, and enable proportionate action while normal business and adversary activity may still be changing the environment.
Prepare before the alert
Define authority, roles, communications, evidence sources, retention, secure tooling, clean access, isolation patterns, recovery dependencies, and escalation paths before an incident tests them.
Protect evidence and operations
Choose collection methods according to volatility, value, business impact, privacy, and contamination risk. Record exactly what was acquired, how, by whom, with which tool and clock.
Reason from multiple sources
Correlate endpoint, identity, network, cloud, application, and threat-intelligence evidence. Distinguish direct observations, normalized records, analyst inference, and unsupported possibilities.
Recover with verification
Contain deliberately, eradicate root causes and persistence, restore from trusted state, validate controls and telemetry, and keep monitoring until exit criteria are satisfied.
A modern lifecycle
NIST SP 800-61 Rev. 3 integrates incident response throughout all six NIST CSF 2.0 functions rather than treating it as a disconnected sequence. A useful operating loop is:
Preparation and learning span the loop. Collection and analysis support decisions inside it. A team may still use preparation, detection/analysis, containment/eradication/recovery, and post-incident language in playbooks, but should not present that older phase model as the complete current NIST framework.
Vocabulary controls conclusions
Core language and evidence states
Event, alert, case, incident
An event is an observable occurrence. An alert is a rule or analytic output requiring evaluation. A case organizes investigation work. An incident is a declared adverse cybersecurity occurrence under the organization’s criteria. They are not synonyms.
Artifact and evidence
An artifact is a potentially relevant record or object. Evidence is material used to support a proposition after provenance, integrity, context, and limitations are considered. A collected file is not automatically conclusive evidence.
Indicator and behavior
An indicator is a value or pattern that may support detection or investigation. Behavior describes actions or relationships. IOC presence alone does not establish compromise; absence does not establish safety.
Acquisition and analysis copy
The acquisition is the preserved collection from a source. Analysis should normally occur on a controlled working copy while the preserved original remains access-controlled and verifiable.
Timeline fact and inference
A source timestamp is an observation with a clock, format, and semantics. A normalized timeline is derived. An inferred sequence or attribution is an analytical conclusion and must retain its supporting records and confidence.
Containment and eradication
Containment limits ongoing harm. Eradication removes malicious capability and root cause. Isolation can destroy volatile access or disrupt evidence; restoration without eradication can recreate the incident.
Practitioner curriculum
Fourteen-module DFIR learning path
Complete the modules in order for a new capability. Experienced teams can use each module as a review checklist. Every module produces an operational artifact rather than only reading notes.
Readiness, mandate, governance, and communications
Make authority, responsibility, safe access, evidence sources, and crisis decisions explicit before pressure arrives.
- Define what constitutes a security incident, who may declare and close one, severity criteria, duty coverage, executive ownership, and conditions for external support.
- Build a role matrix for incident commander, lead investigator, evidence custodian, system owner, identity/cloud/network responders, legal, privacy, HR, communications, insurance, vendors, and law enforcement liaison.
- Establish out-of-band communications and clean-room access. Assume normal email, chat, identity, endpoint management, and secrets may be observed or unavailable.
- Inventory telemetry and retention by source: endpoints, identity, DNS, DHCP, VPN, email, proxy, firewall, cloud control planes, workloads, applications, databases, SaaS, backups, and physical systems. Test retrieval—not only collection.
- Pre-stage signed or hashed tools, trusted boot media where applicable, secure evidence storage, isolated analysis systems, collection scripts, service-provider contacts, legal-hold procedures, and restoration credentials.
- Exercise decision-heavy scenarios: ransomware, identity-provider compromise, cloud key theft, business email compromise, destructive insider activity, software supply-chain compromise, and loss of primary communications.
Baseline: use NIST SP 800-61 Rev. 3 with the FIRST CSIRT Services Framework 2.1. No team must provide every FIRST service; define what your constituency can actually expect.
Related Cyber Knowledge: Governance, Risk & Compliance (GRC) — Operational resilience, continuity, crisis, and incident governance
Incident declaration, triage, scope, and hypotheses
Turn a noisy alert into a bounded investigation with explicit questions, risks, and decision points.
- Record the trigger exactly: source, detection/rule ID and version, raw event references, first-seen time, receiver, affected identity/asset, and what the alert actually asserts.
- Validate the signal without prematurely modifying the target. Check parser health, duplicate alerts, time zone, clock offset, asset/identity ownership, expected administration, and known maintenance.
- Declare or reject an incident under documented criteria. Record who decided, when, based on which evidence, and when the decision must be revisited.
- State testable hypotheses: initial access, affected identities, privilege gained, persistence, lateral movement, collection, exfiltration, impact, and whether the activity is still active. Name evidence that would support or weaken each.
- Build an initial scope graph around users, hosts, IPs, sessions, processes, applications, cloud resources, tokens, repositories, data stores, and time windows. Treat scope as versioned—not final.
- Assign severity from business impact, data, safety, privilege, exposure, active adversary control, recoverability, regulatory/contractual context, and confidence. Do not calculate severity from an IOC reputation score alone.
First-party practice: the SOC Tier 1 onboarding guide shows the handoff between monitoring, triage, escalation, evidence, and response.
Related Cyber Knowledge: Blue Team & Defensive Security — Module 6 — Alert triage, investigation, and escalation
Evidence integrity, order of volatility, and chain of custody
Preserve provenance and integrity while acknowledging that any live collection changes the source.
- Obtain authority and define the purpose, systems, accounts, locations, data categories, time range, collection limits, minimization, retention, and permitted recipients.
- Prioritize volatile information by case value and loss risk: active sessions, processes, network state, memory, temporary storage, local logs, disk, remote logs, snapshots, and backups. “Order of volatility” is a decision aid, not an automatic command to collect everything.
- Before collection, record collector identity, source identity, physical/logical location, source state, system time and reference time, tool name/version/hash, command or API request, output destination, and known changes introduced.
- Use forensically appropriate acquisition where required. Hash the acquisition and working copies with an approved algorithm, verify after transfer, restrict access, log every custody transfer, and preserve storage/audit records.
- Keep raw artifacts immutable where feasible. Perform parsing, carving, enrichment, and annotation on controlled copies; record tool versions, configuration, time-zone conversion, parser warnings, and failed/partial collection.
- Separate technical integrity from legal admissibility. Consult counsel and qualified forensic personnel for litigation, criminal, employment, privacy, cross-border, regulated, or insurance-sensitive matters.
Primary guidance: RFC 3227 remains useful for collection and archiving principles; NIST SP 800-86 integrates forensic techniques with incident response but is a 2006 technical publication, not current legal advice.
Related Cyber Knowledge: Malware Analysis & Reverse Engineering — Intake, provenance, and analysis scope
Endpoint live response and volatile acquisition
Capture high-value runtime state with the smallest justified operational and evidentiary footprint.
- Decide whether to observe, isolate, snapshot, collect, or power down based on active harm, safety, encryption, volatile evidence, adversary awareness, business criticality, and legal direction. Record the decision.
- Confirm host identity using more than display name: asset record, hardware/cloud instance ID, operating system, addresses, owner, management agent, boot time, and current/reference clock.
- Collect logged-on users and sessions, processes and parent/child relationships, executable paths and hashes, command lines where legally permitted, loaded modules, open files, listening/connected sockets, routes, DNS/cache, scheduled execution, services, and security-tool state.
- Preserve relevant volatile data before disruptive actions. Memory acquisition may reveal injected code, credentials, keys, and sessions, but also highly sensitive data; secure and minimize it accordingly.
- Record each command, agent action, remote connection, created file, timestamp change, process start, and network request caused by response. Avoid exploratory commands with uncontrolled output or tools that silently alter artifacts.
- Validate collection completeness and failures. A successful API response does not prove all fields were returned; a disconnected endpoint does not prove it is offline.
Related Cyber Knowledge: Blue Team & Defensive Security — Module 7 — Endpoint defense and EDR
Disk, file-system, and persistence forensics
Reconstruct durable activity from file-system metadata, content, configuration, and application artifacts.
- Choose logical collection, snapshot, volume image, or physical image based on question, platform, encryption, scale, legal need, available time, and operational risk. Document sectors, volumes, snapshots, exclusions, and partial acquisition.
- Preserve partition, file-system, mount, encryption, time-zone, and system-clock context. Record whether timestamps come from source metadata, application content, archive headers, database records, or parser inference.
- Analyze file creation/modification/access/change metadata, journals, deleted entries, alternate streams/extended attributes, archives, temporary files, browser/application state, user profiles, recycle/trash, and configuration stores.
- Enumerate persistence and execution surfaces: services, scheduled jobs, startup folders, shell/profile files, login items, systemd/launchd units, registry autoruns, WMI/event subscriptions, browser extensions, package hooks, and cloud-init/user data.
- Hash and classify suspicious files, preserve path and metadata, compare trusted baselines, search variants, and determine whether absence reflects deletion, non-collection, unsupported parsing, or true absence.
- Build a file-level timeline, correlate with execution and identity records, and retain exact source references. Do not infer execution from file presence alone unless the artifact’s semantics support it.
Related Cyber Knowledge: Malware Analysis & Reverse Engineering — Static triage: strings, imports, resources, and capabilities
Windows endpoint and identity forensics
Correlate Windows execution, persistence, authentication, and user activity without treating a single artifact as a complete history.
- Preserve relevant EVTX channels and channel configuration: Security, System, Application, PowerShell, Task Scheduler, WMI, Defender, Sysmon where deployed, Terminal Services, and product-specific logs. Record retention and overwrite state.
- Investigate logons and tokens using account/domain/SID, logon type, source workstation/address, target, authentication package, process, session/logon ID, privilege assignment, and logoff—while accounting for service accounts, NAT, proxies, and missing auditing.
- Use registry hives and transaction logs to examine services, autoruns, user activity, USB/device history, network configuration, shell state, and application configuration. Preserve hive origin and last-write semantics.
- Correlate Prefetch, Amcache, Shimcache/AppCompatCache, SRUM, LNK files, Jump Lists, browser history, PowerShell history/logging, scheduled tasks, services, MFT/USN journal, and EDR telemetry according to OS version and artifact availability.
- For Active Directory or Entra-linked incidents, scope credential exposure, privileged groups, ticket/token issuance, directory changes, applications/service principals, MFA changes, federation, device registration, risky sessions, and synchronization infrastructure.
- Validate tooling against known fixtures. Artifact meaning and availability vary by Windows version, settings, cleanup, retention, application, and parser; document those limits.
Related Cyber Knowledge: Blue Team & Defensive Security — Module 9 — Identity defense and ITDR
Linux and macOS endpoint forensics
Reconstruct host and user activity across distributions and macOS versions while preserving platform-specific context.
- Identify distribution/build, kernel, boot/session state, file systems, containers/virtualization, time synchronization, audit configuration, log rotation, endpoint tooling, package manager, and mounted remote storage.
- On Linux, preserve journald and syslog sources, authentication/sudo records, auditd, shell histories with their limitations, cron and systemd timers/units, SSH configuration and keys, package history, web/application logs, persistence paths, and process/network state.
- On macOS, examine Unified Logs, FSEvents, APFS snapshots, launch agents/daemons, login items, quarantine and download metadata, TCC, shell and application artifacts, persistence extensions, user sessions, and endpoint security telemetry where available.
- Review accounts, groups, SSH/remote-access state, authorized keys, sudoers, PAM, environment/profile files, credentials/tokens, cloud CLI state, package repositories, kernel/system extensions, and security-control changes.
- Correlate inode/file metadata, journal records, process accounting/audit, package records, service activation, network flows, and centralized logs. Treat shell history as user-controlled and incomplete.
- Preserve ownership, permissions, ACLs, extended attributes, capabilities, symbolic links, namespaces, and container volume mappings; a simple archive can lose material metadata.
Related Cyber Knowledge: Blue Team & Defensive Security — Module 7 — Endpoint defense and EDR
Memory forensics and runtime reconstruction
Use volatile memory to examine runtime structures that disk and logs may not retain.
- Acquire memory with an approved, validated tool appropriate to operating system, architecture, virtualization, security controls, and case authority. Record acquisition tool, driver/module, output, duration, host changes, and hash.
- Establish image metadata and analysis compatibility. Preserve symbols, profiles, kernel/build information, plugin versions, failed translations, and unsupported structures.
- Enumerate processes and cross-check multiple structures for hidden/terminated activity; inspect parentage, command lines, environment, handles, loaded modules, threads, sockets, and security tokens where supported.
- Investigate executable and anomalous memory regions, injections, hooks, unsigned/unbacked mappings, decoded configurations, command-and-control state, and credential material only within authorization and data-handling rules.
- Extract candidate files, strings, keys, connections, and indicators into controlled derivatives. Hash them, link them to memory offsets/process context, and validate with disk, endpoint, network, and threat-intelligence sources.
- State negative results narrowly: “this plugin found no matching structure in this image” is defensible; “the host had no malware” is not.
Tooling: use the maintained Volatility 3 project and its documentation; preserve framework, symbol, plugin, and command versions in every result.
Related Cyber Knowledge: Malware Analysis & Reverse Engineering — Memory forensics, injection, and resident behavior
Network, DNS, proxy, VPN, and email forensics
Reconstruct communications and access paths from packets, flows, application records, and identity context.
- Map observation points and visibility: endpoint, switch/TAP, firewall, NAT, VPN, resolver, proxy, load balancer, CDN, WAF, cloud flow logs, email gateway, and SaaS audit. State whether records contain packets, metadata, sampled flow, or derived alerts.
- Preserve packet captures and logs with interface/sensor identity, capture filter, snap length, loss/drop counters, time source, encapsulation, retention, export query, and checksum. Analysis should use a working copy.
- Normalize addresses through DHCP, NAT, VPN, IPv6 privacy addresses, proxies, cloud elastic addresses, and load balancers before assigning activity to an asset or user.
- Correlate DNS query/response, passive DNS where authorized, proxy and TLS metadata, HTTP records, network flows, EDR sockets, process identity, and server/application logs. Encryption may limit content while preserving useful metadata.
- For email, preserve the original message and headers, authentication results, envelope, message trace, mailbox/audit activity, URLs, attachments, sender infrastructure, user actions, and tenant changes. Do not rely on the visible From field.
- Use baselines and peer comparison for beaconing, data staging/exfiltration, lateral protocols, scanning, tunneling, unusual authentication, and protocol mismatch. Validate that collection and parsing can observe the hypothesized behavior.
First-party practice: Protocol-Level Network Threat Hunting develops a Wireshark-centered method for translating hypotheses into packet and protocol evidence.
Related Cyber Knowledge: Blue Team & Defensive Security — Module 8 — Network defense, protocol analysis, and NDR
Cloud, SaaS, identity, container, and Kubernetes forensics
Investigate ephemeral, API-driven environments using provider records, snapshots, resource identity, and shared-responsibility boundaries.
- Prepare a clean forensic/security account or project, cross-account roles, immutable evidence storage, encryption keys, automation, region coverage, organization-level logging, and provider escalation before an incident.
- Preserve control-plane and data-plane audit logs, identity-provider events, session/token issuance, configuration history, network flow/DNS, workload and application logs, object access, secret/KMS activity, security findings, billing, and support records.
- Record tenant/account/subscription/project, resource ID, region, API and request ID, principal/session, source address, user agent, time, event version, ingestion delay, export query, retention, and evidence-store object version.
- Snapshot disks/volumes and collect instance/container state using provider-supported methods. Do not attach an affected disk to an unprotected analyst workstation; isolate analysis and restrict egress.
- For Kubernetes and containers, preserve cluster audit logs, API events, RBAC, service accounts/tokens, admission and runtime alerts, image digests, manifests, node/runtime logs, network policy/flow, persistent volumes, registry and CI provenance, and ephemeral-container use.
- For SaaS, export admin, authentication, sharing, mailbox, application consent, API token, file access, and retention records before short windows expire. Confirm provider time semantics and export completeness.
- Scope credentials and infrastructure as code: keys, temporary sessions, workload identity, roles/policies, federated trust, secrets, pipelines, repositories, state files, and changes replicated across regions or organizations.
Primary practice: AWS describes separating collection from analysis and storing evidence before automated analysis in its forensics-in-IR guidance. Adapt the principle—not service-specific commands—to your environment.
Related Cyber Knowledge: Cloud Security — Cloud incident response, forensics, containment, and recovery
Malware, phishing, ransomware, and behavior extraction
Turn suspicious content into defensible behavioral findings, scoping leads, and detection candidates.
- Preserve the original message, file, script, archive, document, URL, or memory-derived object; record source, delivery context, filenames, container relationships, passwords, hashes, and handling restrictions.
- Perform static triage in an isolated environment: type/signature, metadata, strings, imports, configuration, macros/scripts, packer/obfuscation, certificates, embedded content, and known reputation—without opening on a normal workstation.
- Use controlled dynamic analysis only when authorized: instrumented host, network simulation or tightly controlled egress, snapshots, process/file/registry/API/network capture, time controls, cleanup, and evidence preservation.
- Extract behaviors first, indicators second. Record how each domain, IP, URL, hash, mutex, path, key, user agent, certificate, or command was observed and its expected lifetime and false-positive risk.
- Map behaviors to ATT&CK as an analytical index, not attribution. Develop Sigma/YARA/network/EDR candidates with source evidence, scope, required telemetry, test fixtures, and review.
- For ransomware, prioritize safety, active spread, privileged access, backup integrity, encryption/inhibition behavior, exfiltration evidence, and trusted recovery. Do not run unverified decryptors on the only evidence copy.
Deep dive: continue in the Malware Analysis & Reverse Engineering field guide, then use AdversaryGraph’s malware-family investigation workflow to organize reviewed evidence.
Related Cyber Knowledge: Malware Analysis & Reverse Engineering — Family classification, behavior models, YARA, and ATT CK
Timeline reconstruction, ATT&CK mapping, CTI, and confidence
Create a traceable sequence that supports scope and decisions without flattening source semantics or uncertainty.
- Retain raw timestamps, source time zone, precision, clock offset, event semantics, ingestion time, parser, and record locator. Normalize to one analysis time zone only as a derived field.
- Merge endpoint, file-system, memory, identity, network, email, application, cloud, physical, and analyst-action records. Deduplicate carefully; repeated records across collectors may corroborate or simply mirror one source.
- Build anchor events from high-confidence records such as verified authentication, provider API request IDs, process start linked to EDR, or message trace. Expand before and after each anchor and test alternative explanations.
- Map entities and relationships: user, credential/session/token, device, process, file, address, domain, application, resource, repository, data object, alert, and evidence item. Preserve source-level links for every edge.
- Use ATT&CK technique mapping to structure observed behavior. Record procedure evidence, platform, data source, mapping rationale, and confidence; a technique match does not establish actor identity.
- Enrich indicators and techniques with current CTI while keeping external claims separate from local evidence. Check source date, confidence, collection method, sharing restrictions, revocation, and infrastructure reuse.
- Assign confidence per conclusion and list supporting, contradicting, and missing evidence. Mark unknowns and collection gaps rather than converting them to negative findings.
Platform workflow: AdversaryGraph can store reports and investigation sessions, correlate reviewed entities, map ATT&CK, and produce analyst-reviewed outputs. Start with From Log to Report and the third-party report validation guide. It does not convert enrichment into proof.
Related Cyber Knowledge: Cyber Threat Intelligence (CTI) — Module 5 — Analysis Techniques Tradecraft
Containment, eradication, recovery, communications, and closure
Reduce harm and restore trusted operation while preserving the evidence and reasoning behind each action.
- For each containment option, assess expected harm reduction, evidence impact, adversary reaction, operational/safety cost, reversibility, dependency, owner, approval, and rollback. Preserve volatile evidence first when risk permits.
- Contain identities and sessions as well as hosts: revoke tokens, rotate exposed credentials and keys, disable or restrict accounts/apps, repair federation/trust, control egress, isolate segments/resources, and protect backups and response tooling.
- Eradicate root cause, persistence, malicious access, vulnerable paths, unauthorized applications, compromised build/deployment artifacts, and poisoned configuration. Search variants and adjacent trust relationships.
- Recover from a defined trusted state. Validate image/artifact provenance, patch/configuration, identity, secrets, backups, data integrity, dependencies, logging, detection, access, and business function before staged reconnection.
- Monitor for recurrence using behaviors, identities, affected resources, newly learned indicators, and control-health signals. Define owner, duration, expected baseline, thresholds, and exit criteria.
- Maintain technical and executive situation reports with confirmed facts, uncertainty, impact, decisions, actions, owners, next update, and handling classification. Legal/privacy/communications teams decide notification under applicable requirements.
- Close only when scoped systems and identities are addressed, recovery is accepted, monitoring criteria are met, evidence retained, reports reviewed, and residual risks have accountable owners.
Worked workflow: follow Ransomware intrusion investigation for an evidence-preserving ransomware case structure.
Related Cyber Knowledge: Governance, Risk & Compliance (GRC) — Operational resilience, continuity, crisis, and incident governance
Post-incident learning and controlled AI/RAG/MCP assistance
Turn the incident into durable improvements while keeping models and connected tools inside explicit evidence and authority boundaries.
- Conduct a blameless but accountable review: intended controls, what occurred, detection and decision timeline, evidence gaps, containment/recovery effectiveness, communication, business impact, contributing conditions, and successful practices.
- Create owned, time-bounded improvements for prevention, telemetry, detection, response automation, evidence retention, access, architecture, backup/recovery, training, suppliers, and policy. Verify completion rather than closing on ticket creation.
- Measure capabilities with distributions and context: time to validate, declare, scope, contain, recover, and close; evidence-source availability; collection success; decision latency; recurrence; exercise findings; and overdue improvements. Averages alone can hide severe outliers.
- Use an approved LLM to summarize sanitized records, propose hypotheses, draft queries or timelines, explain artifacts, map candidate ATT&CK behaviors, and suggest missing evidence—but require a human to review every claim against sources.
- For RAG, enforce source-level authorization before retrieval and response, preserve citations and immutable evidence IDs, separate original artifacts from chunks/embeddings/summaries, version the index, and reconcile additions, updates, deletions, and access changes.
- For MCP or other tool connections, allowlist tools and targets, validate strict schemas, use least-privilege identities, isolate execution, cap time/data/cost, log every request/result, and require confirmation before containment, collection, scanning, deletion, or external communication.
- Test prompt injection in reports, logs, webpages, documents, filenames, and retrieved content. Treat model output and tool output as untrusted until validated; never let the model approve its own evidence or expand its own authority.
- Record provider/model/version, prompt/template, data classification, retrieved source IDs, tool calls, policy decisions, output, reviewer, corrections, and final disposition. Redact secrets and regulated content according to policy.
Implementation context: review the AdversaryGraph unified RAG and MCP guide and platform documentation. These define analysis assistance and auditability; they do not authorize collection or response actions.
Related Cyber Knowledge: Blue Team & Defensive Security — Module 13 — AI-assisted defense, RAG, agents, and MCP
Select by question and evidence
DFIR tool-selection matrix
Tools are examples, not endorsements. Validate each version against known fixtures, preserve command/configuration and logs, and record unsupported formats or failed plugins. No single product establishes completeness.
| Capability | Example tools or sources | Best question | Evidence and limit |
|---|---|---|---|
| Fleet triage and collection | Velociraptor, osquery, EDR live response, KAPE | Which hosts, users, processes, files, and connections need deeper collection? | Query/artifact, endpoint identity, timestamps, output, errors. Agent scope and retention determine visibility. |
| Disk and file systems | The Sleuth Kit/Autopsy, X-Ways or EnCase where licensed, native snapshot tools | What durable files, metadata, journals, deletions, and persistence exist? | Verified image/snapshot and offsets. Logical collection may omit unallocated or metadata. |
| Windows artifacts | Eric Zimmerman tools, KAPE, Chainsaw, Hayabusa, EvtxECmd | What execution, authentication, persistence, and user activity do Windows artifacts support? | Source file, parser/version, record ID/offset. Semantics vary by version and settings. |
| Memory | Volatility 3, platform acquisition tools | What processes, connections, mappings, credentials, or injected/runtime state existed? | Verified image, OS/symbol context, plugin logs. Acquisition changes state and may be partial. |
| Timeline | Plaso/log2timeline, Timesketch, native queries, structured notebooks | How do events across sources relate in time? | Raw record locator, parser, source/normalized time. Parser output is derived evidence. |
| Network | Wireshark/tshark, Zeek, Suricata, flow/DNS/proxy/firewall records | Which systems communicated, how, when, and with what observable content or metadata? | PCAP/log export and sensor context. Encryption, loss, sampling, and placement limit visibility. |
| Email and SaaS | Original EML, message trace, tenant audit, eDiscovery/export APIs | How was a message delivered and what mailbox, consent, sharing, or user action followed? | Original content plus provider record IDs. Short retention and delegated access complicate scope. |
| Cloud evidence | CloudTrail/Config/Flow Logs, Azure activity/Entra/Defender, GCP audit, provider snapshots | Which principal changed or accessed which resource through which session/API? | Immutable export, query, resource/principal IDs. Shared responsibility limits infrastructure access. |
| Containers and Kubernetes | Kubernetes audit, runtime/registry logs, Falco, image/SBOM/provenance tools | Which identity, image, workload, API action, node, and persistent resource were involved? | Digest, manifests, audit IDs, runtime evidence. Ephemeral containers/filesystems disappear quickly. |
| Malware | YARA, capa, FLOSS, Ghidra, isolated sandboxes, MalwareGraph | What does the sample contain and do, and which leads are durable enough to operationalize? | Sample hash, trace, rule/version, behavioral support. Reputation or unpacking alone is not attribution. |
| Rules and hunting | Sigma, YARA/YARA-L, SIEM/EDR queries, AdversaryGraph Query Library | Can a reviewed behavior be found consistently in available telemetry? | Rule/query, data contract, fixtures, results, false positives. A syntactically valid rule may never see required data. |
| AI-assisted correlation | Approved LLM, access-trimmed RAG, schema-constrained MCP tools | Can assistance summarize, propose, translate, or identify gaps without taking authority? | Source citations, prompt/model/tool trace and reviewer. Output is unverified until checked. |
Reusable artifact
Minimum evidence and investigation record
Use a structured record even during a fast response. Add fields required by your organization, counsel, regulator, insurer, or forensic process; do not remove the links needed to reproduce a conclusion.
case:
id: IR-YYYY-NNNN
title:
classification: internal | confidential | restricted
declared_at_utc:
declared_by:
severity:
business_services:
authority_and_scope:
legal_hold_or_special_handling:
evidence_item:
id: EV-NNNN
source_type: endpoint | identity | network | cloud | email | file | memory
source_identity:
source_location:
collector:
collection_started_utc:
collection_completed_utc:
source_clock_and_offset:
acquisition_method:
tool_name_version_hash:
command_or_api_query:
output_location:
sha256:
verification:
known_collection_changes:
completeness_and_errors:
custody_transfers:
access_classification:
retention_or_hold:
observation:
id: OBS-NNNN
statement:
evidence_ids: [EV-NNNN]
raw_record_locators:
source_timestamp:
normalized_timestamp_utc:
parser_and_version:
confidence:
limitations:
conclusion_or_decision:
id: DEC-NNNN
statement:
supporting_observations: [OBS-NNNN]
contradicting_or_missing_evidence:
alternatives_considered:
confidence:
owner_and_approver:
action_and_rollback:
decided_at_utc:
review_at_utc:
Do not overwrite: corrections should append a new version with author, timestamp, reason, and link to the superseded record. Preserve original evidence and prior decisions according to retention policy.
Worked analytical patterns
Six end-to-end DFIR case studies
These are controlled training patterns, not claims about a real victim. Each case emphasizes a different decision and evidence boundary.
1. Encoded PowerShell and suspected credential access
Trigger: EDR reports PowerShell launched by an office process with an encoded command and outbound connection.
Workflow
- Preserve the raw alert, process tree, command line, script-block/AMSI events where available, user/session, binary hashes, target address, and endpoint clock.
- Isolate based on active-risk criteria after volatile collection. Acquire memory if credential material or injected runtime state is relevant and authorized.
- Decode only in an isolated environment; retain original and decoded bytes, method, encoding assumption, hashes, URLs/domains, and script behavior.
- Correlate Office/email delivery, downloads, child processes, authentication events, credential access, lateral sessions, DNS/proxy, and other hosts with matching behaviors.
- Reset credentials only after scoping session/token and persistence impact; validate logging and deploy reviewed behavioral detections.
Do not claim: Base64 or PowerShell alone is malicious. The conclusion comes from process lineage, content, execution, network, identity, and surrounding behavior.
2. Ransomware intrusion from sparse logs
Trigger: files become unavailable and one endpoint reports bulk renames; central logs are incomplete.
Workflow
- Declare severity from operational impact and spread. Protect backups, identity systems, hypervisors, management plane, and response channels.
- Preserve available EDR, authentication, VPN, firewall, DNS, file-server, backup, hypervisor, and cloud records; collect representative endpoints rather than imaging blindly.
- Build anchors for initial access, privilege change, lateral administration, defense impairment, staging/exfiltration, encryption, and backup inhibition.
- Separate confirmed encryption from possible data theft. Absence of network evidence in missing telemetry is unknown—not “no exfiltration.”
- Recover only after identity, persistence, entry point, vulnerable paths, backup integrity, and restored monitoring satisfy written criteria.
Platform practice: use the AdversaryGraph ransomware investigation guide to maintain evidence, mappings, and report handoff.
3. Cloud service-account key abuse
Trigger: a cloud audit event shows an unusual principal reading secrets and creating compute in a new region.
Workflow
- Preserve organization/account audit, identity/federation, KMS/secret, configuration, network flow, DNS, workload, billing, repository, and CI records before retention expires.
- Trace key or token creation, issuance, session attributes, source, user agent, API request IDs, resources accessed, policy changes, and downstream credentials.
- Snapshot affected volumes/resources into a forensic account. Restrict egress and preserve resource IDs, region, image digest, user data, metadata, and tags.
- Contain the credential and trust path, not merely one VM. Review workload identity, role trust, CI secrets, repository history, and mirrored deployments.
- Restore from verified infrastructure code and images; test organization-level logging, region coverage, secret rotation, and alerting.
Do not claim: one source IP identifies a person. Cloud proxies, VPNs, compromised systems, and shared infrastructure require identity/session correlation.
4. Business email and OAuth consent compromise
Trigger: a user reports a suspicious sent message while the mail gateway shows no malware.
Workflow
- Preserve the original message, message trace, mailbox audit, sign-ins, MFA, inbox/forwarding rules, delegates, application consent, token grants, file access, and admin actions.
- Identify phishing, password theft, session theft, malicious application consent, help-desk abuse, or legitimate delegation as competing hypotheses.
- Revoke sessions/tokens and malicious consent, reset affected credentials, repair MFA/recovery data, remove rules/delegates, and scope other users receiving the lure.
- Correlate user reports, authentication detail, device state, identity risk, application publisher/permissions, mailbox actions, and financial-process impact.
- Validate technical recovery and business workflow controls; communications and finance/legal teams handle counterparties and notification.
Do not claim: a “successful MFA” record proves the legitimate user acted. Session theft, push abuse, token replay, or attacker-registered authentication can change interpretation.
5. Internet-facing application compromise
Trigger: WAF and application logs show exploit-like requests followed by a new process and outbound connection.
Workflow
- Preserve CDN/WAF/load-balancer, reverse-proxy, application, authentication, database, container/orchestrator, host, DNS, egress, deployment, and source-control records.
- Determine whether the request reached the vulnerable code path, which version/configuration was deployed, execution context, data accessed, secrets available, and whether other instances shared it.
- Snapshot or collect affected workloads, image digests, manifests, runtime state, files, memory where justified, service identity, environment, and persistent volumes.
- Contain routes/credentials/egress while maintaining evidence; patch root cause, rotate exposed secrets, rebuild from trusted artifacts, and search variants across the fleet.
- Reproduce in an isolated environment, add a security regression, validate telemetry, and hand root-cause/remediation evidence to the secure-code program.
Cross-domain path: use the Secure Code guide and Vulnerability Research guide for remediation and exploitability validation.
6. Suspected data exfiltration by an insider or compromised account
Trigger: DLP flags a large archive copied to personal cloud storage by a departing employee.
Workflow
- Coordinate with legal, privacy, HR, and management before collection. Define authority, monitoring boundaries, data minimization, employment context, and communications.
- Preserve DLP, endpoint, identity, file access, cloud sharing, proxy/network, removable-media, email, physical access, and approved business workflow records.
- Test alternatives: authorized migration, backup/synchronization, compromised account, malicious insider, automated process, classification error, or duplicated alert.
- Build a file/user/device/session timeline and identify exactly which data is supported as accessed or transferred. Avoid reading unrelated personal content without authority.
- Use proportionate containment and preserve due process. Technical findings should distinguish account activity from proven human intent.
Do not claim: an account action alone establishes the actor or motive. Attribution to a person requires corroboration and organizational/legal process.
Practice in isolated environments
Twelve-lab DFIR progression
Use synthetic data and systems you own or are explicitly authorized to investigate. Reset between exercises. Never upload customer, employee, malware, credential, or regulated evidence to an unapproved service.
Labs 1–4: readiness and host evidence
- Tabletop and charter: write declaration criteria, RACI, communication paths, evidence authority, and recovery criteria; run a ransomware decision inject.
- Evidence package: collect a benign file/log set, record clocks and tools, hash acquisition/working copies, transfer custody, verify, and append a correction.
- Windows triage: generate known logon, PowerShell, scheduled task, service, browser, and file events; collect and reconstruct them with artifact caveats.
- Linux/macOS triage: create known SSH/sudo or login/persistence/package events; preserve logs and metadata, then state what retention prevents you from proving.
Labs 5–8: volatile, network, message, cloud
- Memory: acquire an isolated test VM running known processes and sockets; verify the image and compare multiple process/network views in Volatility 3.
- Network: capture a scripted DNS/HTTP/TLS exchange; document sensor limits, correlate PCAP with endpoint process, and write narrow findings.
- Email: analyze a synthetic EML plus tenant-like audit export; trace delivery, URL, user action, consent, and containment without trusting display fields.
- Cloud: create and rotate a temporary lab identity, invoke known APIs, export audit records immutably, build a principal-resource graph, and test a snapshot playbook.
Labs 9–12: integrated response
- Container/Kubernetes: deploy a disposable workload, generate an RBAC/API/image event, preserve audit/manifests/digest/runtime evidence, and restore from code.
- Malware-like behavior: use a harmless simulator in an isolated lab; extract behavior, qualify indicators, map ATT&CK, and write a tested detection.
- AdversaryGraph case: load sanitized logs/report/IOCs, create evidence-linked entities, review ATT&CK candidates, and produce an analyst-approved investigation report.
- AI boundary: give an approved model a sanitized evidence set containing a prompt-injection string; test source citations, access trimming, tool confirmation, hallucination correction, and audit logging.
Scoring every lab
- Authority and scope are explicit.
- Original evidence and working derivatives are distinguishable.
- Clocks, tools, commands, versions, hashes, and failures are recorded.
- Every conclusion links to evidence and names uncertainty.
- Containment has approval, expected effect, and rollback.
- Recovery has technical and business acceptance criteria.
- New controls are verified with a repeatable test.
- Sensitive data is minimized and handled correctly.
Environment library: use the site’s authorized security labs and technical guides for supporting Windows, Linux, network, malware, and platform exercises.
What breaks real investigations
Failure atlas and operational readiness gate
| Failure pattern | Why it fails | Corrective control |
|---|---|---|
| IR plan exists only as a document | Contacts, access, retention, collection, isolation, provider support, and recovery fail under pressure. | Exercise scenarios, retrieve real test logs, use clean accounts, and track corrective actions to verification. |
| Alert text copied as fact | Detection logic, parser, context, or enrichment may be wrong or incomplete. | Preserve raw records and rule/version; independently validate signal, entity, clock, and scope. |
| Immediate reimage or shutdown | Volatile evidence, active sessions, keys, process state, or scope may be destroyed. | Use a documented risk decision and prioritized collection before disruption when safety permits. |
| Collect everything | Delays response, expands sensitive data, raises cost, and obscures decision-relevant evidence. | Use hypotheses, volatility, value, minimization, and collection tiers with review points. |
| Work on the only copy | Analysis changes or corruption cannot be distinguished from source state. | Preserve verified acquisition; analyze controlled copies and record derivatives. |
| One timestamp column | Source time, ingestion time, normalized time, precision, and clock drift become indistinguishable. | Preserve raw time/semantics, clock context, normalized time, and parser lineage. |
| IOC match equals compromise | Infrastructure is reused, feeds age, hashes collide by family/version context, and benign systems contact shared services. | Correlate behavior, process/user/resource context, source quality, time, and local evidence. |
| ATT&CK overlap equals attribution | Techniques are widely shared and mappings may be generic or inferred. | Use ATT&CK for behavior organization; keep attribution as a separate multi-source assessment. |
| Host isolated, identity untouched | Tokens, cloud roles, mailbox consent, remote sessions, or CI secrets preserve adversary access. | Contain the full identity/session/trust graph and rotate exposed credentials in dependency order. |
| Patch then restore | Persistence, stolen credentials, poisoned artifacts, lateral scope, and root causes may remain. | Define eradication and trusted-state recovery criteria; search variants and monitor recurrence. |
| Cloud logs enabled but not retrievable | Region, tenant, role, retention, provider delay, or compromised admin path blocks evidence. | Test cross-account export, organization coverage, immutable storage, clean roles, and provider escalation. |
| AI summary becomes the report | Source omissions, hallucinations, prompt injection, access leakage, and lost provenance undermine conclusions. | Require citations, immutable evidence links, schema/audit, access trimming, reviewer correction, and signed disposition. |
Minimum production readiness gate
- Incident authority, declaration, severity, roles, and out-of-band communications are approved and exercised.
- Critical asset, identity, data, service, supplier, logging, retention, backup, and recovery dependencies are inventoried.
- Clean responder access and emergency credentials work without relying on the affected identity plane.
- Endpoint, identity, network, cloud, email, application, and SaaS evidence can be retrieved and time-normalized.
- Collection tools are approved, integrity-checked, versioned, logged, and tested on representative systems.
- Evidence storage enforces access, encryption, integrity/versioning, audit, retention, and legal-hold procedures.
- Containment playbooks cover hosts, identities, sessions/tokens, networks, cloud resources, applications, and suppliers.
- Backups and restoration are tested; trusted-state, business acceptance, monitoring, and rollback criteria exist.
- External provider, counsel, privacy, HR, communications, insurance, and law-enforcement pathways are known.
- AI/RAG/MCP use has approved data handling, access trimming, tool authorization, prompt-injection tests, audit, and human review.
- A tabletop and technical exercise produced evidence packages and tracked corrective actions to verified closure.
Authoritative baselines and ecosystem links
Standards, guidance, and first-party reading
Primary and current guidance
- NIST SP 800-61 Rev. 3 — current incident-response recommendations integrated with NIST CSF 2.0; final April 2025 and supersedes Rev. 2.
- NIST Cybersecurity Framework 2.0 — Govern, Identify, Protect, Detect, Respond, and Recover outcomes.
- NIST SP 800-86 — technical integration of forensic techniques into incident response; published 2006, so supplement with current platform and legal guidance.
- RFC 3227 — evidence collection, volatility, integrity, custody, and archiving principles.
- FIRST CSIRT Services Framework 2.1 — vocabulary for defining a response team’s service portfolio.
- CISA Incident and Vulnerability Response Playbooks — repeatable federal procedures that can inform non-federal playbook design when adapted deliberately.
- AWS forensics in incident response — cloud preparation, secure collection, automation, and analysis separation.
- Microsoft Cloud Security Benchmark: Incident Response — current cloud preparation, investigation, evidence preservation, response, and learning controls.
1200km and AdversaryGraph practice
- AdversaryGraph and the documentation hub — evidence-linked CTI, investigation, ATT&CK, hunting, and validation workflows.
- From Log to Report: IOC Investigation — local workflow from raw event to reviewed report.
- Cloud incident investigation — cloud evidence, correlation, and analyst handoff.
- APT campaign cluster investigation — source-backed clustering without automatic attribution.
- IOC enrichment pipeline — qualified enrichment and provenance rather than match-as-verdict.
- CTI field guide, Blue Team guide, and Malware Analysis guide — adjacent analytical and defensive disciplines.
- Secure Code and Vulnerability Research — root-cause remediation, exploitability validation, disclosure, and regression testing.
- SOC Tier 1 onboarding and protocol-level network hunting — monitoring and packet-analysis practice.