Cyber Knowledge · Domain 07 of 11 · Practitioner field guide

Digital Forensics & Incident Response (DFIR)

A defensible DFIR practice connects preparation, evidence preservation, technical investigation, business decisions, containment, recovery, and learning. This guide provides a 14-module workflow for endpoint, disk, memory, network, identity, cloud, SaaS, container, malware, and AI-assisted investigations—without confusing a scanner result, an indicator match, or a fluent model answer with proof.

Authorization, safety, and legal boundary

Collect only data you are authorized to access. Follow organizational policy, privacy and employment requirements, contractual obligations, legal hold instructions, jurisdiction-specific law, and counsel guidance. This technical guide is not legal advice and does not establish admissibility.

Version 1.0 Published Source review: Status: maintained practitioner guide Maintained by Andrey Pautov Editorial policy and corrections

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.

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.

Evidence ladder: label records as raw source, verified acquisition, normalized artifact, correlated observation, analyst inference, or decision. Preserve links backward. Do not allow a summary to erase its provenance.

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.

Module 01
  1. Define what constitutes a security incident, who may declare and close one, severity criteria, duty coverage, executive ownership, and conditions for external support.
  2. 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.
  3. Establish out-of-band communications and clean-room access. Assume normal email, chat, identity, endpoint management, and secrets may be observed or unavailable.
  4. 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.
  5. 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.
  6. 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.
Output: approved IR policy, service catalogue, RACI/on-call roster, contact tree, evidence-source register, retention map, clean-access plan, playbooks, and exercise findings with owners and deadlines.

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.

Incident declaration, triage, scope, and hypotheses

Turn a noisy alert into a bounded investigation with explicit questions, risks, and decision points.

Module 02
  1. 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.
  2. 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.
  3. Declare or reject an incident under documented criteria. Record who decided, when, based on which evidence, and when the decision must be revisited.
  4. 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.
  5. 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.
  6. 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.
Output: case identifier, declaration record, initial facts, hypotheses, scope graph, severity rationale, collection plan, owners, next decision time, and preserved original alert.

First-party practice: the SOC Tier 1 onboarding guide shows the handoff between monitoring, triage, escalation, evidence, and response.

Evidence integrity, order of volatility, and chain of custody

Preserve provenance and integrity while acknowledging that any live collection changes the source.

Module 03
  1. Obtain authority and define the purpose, systems, accounts, locations, data categories, time range, collection limits, minimization, retention, and permitted recipients.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. Separate technical integrity from legal admissibility. Consult counsel and qualified forensic personnel for litigation, criminal, employment, privacy, cross-border, regulated, or insurance-sensitive matters.
Reality check: cryptographic hashes can demonstrate that a byte sequence has not changed since hashing. They do not prove that the source was truthful, the collection complete, the clock correct, or the evidence legally admissible.
Output: collection authorization, acquisition manifest, tool/command record, source and reference clocks, hashes, custody ledger, access log, preservation location, and documented limitations.

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.

Endpoint live response and volatile acquisition

Capture high-value runtime state with the smallest justified operational and evidentiary footprint.

Module 04
  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. 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.
Collection strategy: broad fleet triage with Velociraptor or osquery answers different questions from a full image. Use fast triage to scope and prioritize, then acquire deeper evidence where the decision requires it.
Output: endpoint triage bundle, collection transcript, process/network/session snapshot, sensitive-data classification, failures, and next acquisition decision.

Disk, file-system, and persistence forensics

Reconstruct durable activity from file-system metadata, content, configuration, and application artifacts.

Module 05
  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. 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.
Output: acquisition map, file-system timeline, suspicious-file manifest, persistence inventory, deleted/partial artifact notes, and conclusions tied to source offsets or record IDs.

Windows endpoint and identity forensics

Correlate Windows execution, persistence, authentication, and user activity without treating a single artifact as a complete history.

Module 06
  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. Validate tooling against known fixtures. Artifact meaning and availability vary by Windows version, settings, cleanup, retention, application, and parser; document those limits.
Interpretation discipline: Prefetch can support evidence that an executable ran under particular conditions; it is not a universal program-execution ledger. Similar caveats apply to Amcache, Shimcache, SRUM, and event IDs.
Output: Windows/identity timeline, account-session graph, execution and persistence findings, audit gaps, artifact/version notes, and scoped credential-response actions.

Linux and macOS endpoint forensics

Reconstruct host and user activity across distributions and macOS versions while preserving platform-specific context.

Module 07
  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. Preserve ownership, permissions, ACLs, extended attributes, capabilities, symbolic links, namespaces, and container volume mappings; a simple archive can lose material metadata.
Output: platform profile, log and retention map, account/access findings, persistence and package changes, file-system timeline, metadata-preservation record, and audit blind spots.

Memory forensics and runtime reconstruction

Use volatile memory to examine runtime structures that disk and logs may not retain.

Module 08
  1. 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.
  2. Establish image metadata and analysis compatibility. Preserve symbols, profiles, kernel/build information, plugin versions, failed translations, and unsupported structures.
  3. 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.
  4. 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.
  5. 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.
  6. State negative results narrowly: “this plugin found no matching structure in this image” is defensible; “the host had no malware” is not.
Output: verified memory image, acquisition record, runtime process/network map, suspicious regions and extracted derivatives, plugin logs, sensitive-data controls, and explicit analysis limits.

Tooling: use the maintained Volatility 3 project and its documentation; preserve framework, symbol, plugin, and command versions in every result.

Network, DNS, proxy, VPN, and email forensics

Reconstruct communications and access paths from packets, flows, application records, and identity context.

Module 09
  1. 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.
  2. 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.
  3. Normalize addresses through DHCP, NAT, VPN, IPv6 privacy addresses, proxies, cloud elastic addresses, and load balancers before assigning activity to an asset or user.
  4. 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.
  5. 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.
  6. 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.
Output: sensor/visibility map, verified PCAP/log exports, address-identity translation, communication timeline, message evidence package, packet/flow references, and visibility limitations.

First-party practice: Protocol-Level Network Threat Hunting develops a Wireshark-centered method for translating hypotheses into packet and protocol evidence.

Cloud, SaaS, identity, container, and Kubernetes forensics

Investigate ephemeral, API-driven environments using provider records, snapshots, resource identity, and shared-responsibility boundaries.

Module 10
  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. 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.
  7. 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.
Shared responsibility: customer evidence and provider evidence differ by service model. A cloud customer usually cannot image provider infrastructure; preserve the available customer-plane records and escalate provider requests early.
Output: cloud evidence inventory, immutable exports/snapshots, principal-resource-session graph, container/image provenance, cross-region scope, provider gaps, and credential containment plan.

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.

Malware, phishing, ransomware, and behavior extraction

Turn suspicious content into defensible behavioral findings, scoping leads, and detection candidates.

Module 11
  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. 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.
Output: sample/message manifest, triage and sandbox traces, behavioral report, qualified IOC package, ATT&CK candidates, detection tests, and response/scoping leads.

Deep dive: continue in the Malware Analysis & Reverse Engineering field guide, then use AdversaryGraph’s malware-family investigation workflow to organize reviewed evidence.

Timeline reconstruction, ATT&CK mapping, CTI, and confidence

Create a traceable sequence that supports scope and decisions without flattening source semantics or uncertainty.

Module 12
  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. 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.
  7. Assign confidence per conclusion and list supporting, contradicting, and missing evidence. Mark unknowns and collection gaps rather than converting them to negative findings.
Attribution boundary: shared malware, infrastructure, language, target sector, and ATT&CK overlap are leads. Responsible attribution requires a multi-source analytical argument and may remain unresolved.
Output: normalized and raw-linked timeline, entity/evidence graph, ATT&CK procedure table, CTI enrichment ledger, alternative hypotheses, confidence statement, and collection gaps.

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.

Containment, eradication, recovery, communications, and closure

Reduce harm and restore trusted operation while preserving the evidence and reasoning behind each action.

Module 13
  1. 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.
  2. 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.
  3. Eradicate root cause, persistence, malicious access, vulnerable paths, unauthorized applications, compromised build/deployment artifacts, and poisoned configuration. Search variants and adjacent trust relationships.
  4. 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.
  5. Monitor for recurrence using behaviors, identities, affected resources, newly learned indicators, and control-health signals. Define owner, duration, expected baseline, thresholds, and exit criteria.
  6. 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.
  7. 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.
Output: containment decision log, eradication and variant-search evidence, recovery validation, credential-action ledger, stakeholder reports, residual-risk acceptance, closure approval, and monitoring plan.

Worked workflow: follow Ransomware intrusion investigation for an evidence-preserving ransomware case structure.

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.

Module 14
  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. 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.
  7. 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.
  8. 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.
Non-negotiable boundary: AI may accelerate an investigation; it is not an evidence custodian, legal authority, incident commander, or autonomous containment approver. A confident answer without traceable sources remains unverified.
Output: post-incident review, improvement register, capability metrics, AI data-flow and threat model, retrieval ACL tests, MCP/tool policy, prompt-injection evaluations, audit trail, and documented human decisions.

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.

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.

CapabilityExample tools or sourcesBest questionEvidence and limit
Fleet triage and collectionVelociraptor, osquery, EDR live response, KAPEWhich 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 systemsThe Sleuth Kit/Autopsy, X-Ways or EnCase where licensed, native snapshot toolsWhat durable files, metadata, journals, deletions, and persistence exist?Verified image/snapshot and offsets. Logical collection may omit unallocated or metadata.
Windows artifactsEric Zimmerman tools, KAPE, Chainsaw, Hayabusa, EvtxECmdWhat execution, authentication, persistence, and user activity do Windows artifacts support?Source file, parser/version, record ID/offset. Semantics vary by version and settings.
MemoryVolatility 3, platform acquisition toolsWhat processes, connections, mappings, credentials, or injected/runtime state existed?Verified image, OS/symbol context, plugin logs. Acquisition changes state and may be partial.
TimelinePlaso/log2timeline, Timesketch, native queries, structured notebooksHow do events across sources relate in time?Raw record locator, parser, source/normalized time. Parser output is derived evidence.
NetworkWireshark/tshark, Zeek, Suricata, flow/DNS/proxy/firewall recordsWhich 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 SaaSOriginal EML, message trace, tenant audit, eDiscovery/export APIsHow 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 evidenceCloudTrail/Config/Flow Logs, Azure activity/Entra/Defender, GCP audit, provider snapshotsWhich principal changed or accessed which resource through which session/API?Immutable export, query, resource/principal IDs. Shared responsibility limits infrastructure access.
Containers and KubernetesKubernetes audit, runtime/registry logs, Falco, image/SBOM/provenance toolsWhich identity, image, workload, API action, node, and persistent resource were involved?Digest, manifests, audit IDs, runtime evidence. Ephemeral containers/filesystems disappear quickly.
MalwareYARA, capa, FLOSS, Ghidra, isolated sandboxes, MalwareGraphWhat 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 huntingSigma, YARA/YARA-L, SIEM/EDR queries, AdversaryGraph Query LibraryCan 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 correlationApproved LLM, access-trimmed RAG, schema-constrained MCP toolsCan 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

  1. Preserve the raw alert, process tree, command line, script-block/AMSI events where available, user/session, binary hashes, target address, and endpoint clock.
  2. Isolate based on active-risk criteria after volatile collection. Acquire memory if credential material or injected runtime state is relevant and authorized.
  3. Decode only in an isolated environment; retain original and decoded bytes, method, encoding assumption, hashes, URLs/domains, and script behavior.
  4. Correlate Office/email delivery, downloads, child processes, authentication events, credential access, lateral sessions, DNS/proxy, and other hosts with matching behaviors.
  5. 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

  1. Declare severity from operational impact and spread. Protect backups, identity systems, hypervisors, management plane, and response channels.
  2. Preserve available EDR, authentication, VPN, firewall, DNS, file-server, backup, hypervisor, and cloud records; collect representative endpoints rather than imaging blindly.
  3. Build anchors for initial access, privilege change, lateral administration, defense impairment, staging/exfiltration, encryption, and backup inhibition.
  4. Separate confirmed encryption from possible data theft. Absence of network evidence in missing telemetry is unknown—not “no exfiltration.”
  5. 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

  1. Preserve organization/account audit, identity/federation, KMS/secret, configuration, network flow, DNS, workload, billing, repository, and CI records before retention expires.
  2. Trace key or token creation, issuance, session attributes, source, user agent, API request IDs, resources accessed, policy changes, and downstream credentials.
  3. Snapshot affected volumes/resources into a forensic account. Restrict egress and preserve resource IDs, region, image digest, user data, metadata, and tags.
  4. Contain the credential and trust path, not merely one VM. Review workload identity, role trust, CI secrets, repository history, and mirrored deployments.
  5. 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.

Trigger: a user reports a suspicious sent message while the mail gateway shows no malware.

Workflow

  1. Preserve the original message, message trace, mailbox audit, sign-ins, MFA, inbox/forwarding rules, delegates, application consent, token grants, file access, and admin actions.
  2. Identify phishing, password theft, session theft, malicious application consent, help-desk abuse, or legitimate delegation as competing hypotheses.
  3. Revoke sessions/tokens and malicious consent, reset affected credentials, repair MFA/recovery data, remove rules/delegates, and scope other users receiving the lure.
  4. Correlate user reports, authentication detail, device state, identity risk, application publisher/permissions, mailbox actions, and financial-process impact.
  5. 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

  1. Preserve CDN/WAF/load-balancer, reverse-proxy, application, authentication, database, container/orchestrator, host, DNS, egress, deployment, and source-control records.
  2. 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.
  3. Snapshot or collect affected workloads, image digests, manifests, runtime state, files, memory where justified, service identity, environment, and persistent volumes.
  4. Contain routes/credentials/egress while maintaining evidence; patch root cause, rotate exposed secrets, rebuild from trusted artifacts, and search variants across the fleet.
  5. 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

  1. Coordinate with legal, privacy, HR, and management before collection. Define authority, monitoring boundaries, data minimization, employment context, and communications.
  2. Preserve DLP, endpoint, identity, file access, cloud sharing, proxy/network, removable-media, email, physical access, and approved business workflow records.
  3. Test alternatives: authorized migration, backup/synchronization, compromised account, malicious insider, automated process, classification error, or duplicated alert.
  4. 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.
  5. 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

  1. Tabletop and charter: write declaration criteria, RACI, communication paths, evidence authority, and recovery criteria; run a ransomware decision inject.
  2. Evidence package: collect a benign file/log set, record clocks and tools, hash acquisition/working copies, transfer custody, verify, and append a correction.
  3. Windows triage: generate known logon, PowerShell, scheduled task, service, browser, and file events; collect and reconstruct them with artifact caveats.
  4. 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

  1. Memory: acquire an isolated test VM running known processes and sockets; verify the image and compare multiple process/network views in Volatility 3.
  2. Network: capture a scripted DNS/HTTP/TLS exchange; document sensor limits, correlate PCAP with endpoint process, and write narrow findings.
  3. Email: analyze a synthetic EML plus tenant-like audit export; trace delivery, URL, user action, consent, and containment without trusting display fields.
  4. 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

  1. Container/Kubernetes: deploy a disposable workload, generate an RBAC/API/image event, preserve audit/manifests/digest/runtime evidence, and restore from code.
  2. Malware-like behavior: use a harmless simulator in an isolated lab; extract behavior, qualify indicators, map ATT&CK, and write a tested detection.
  3. AdversaryGraph case: load sanitized logs/report/IOCs, create evidence-linked entities, review ATT&CK candidates, and produce an analyst-approved investigation report.
  4. 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 patternWhy it failsCorrective control
IR plan exists only as a documentContacts, 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 factDetection 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 shutdownVolatile 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 everythingDelays 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 copyAnalysis changes or corruption cannot be distinguished from source state.Preserve verified acquisition; analyze controlled copies and record derivatives.
One timestamp columnSource 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 compromiseInfrastructure 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 attributionTechniques 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 untouchedTokens, 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 restorePersistence, 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 retrievableRegion, 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 reportSource 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

1200km and AdversaryGraph practice

Maintenance note: provider services, operating-system artifacts, ATT&CK mappings, tool behavior, retention, and legal requirements change. Pin procedures to tested versions, review after material platform changes, and re-run collection and recovery exercises.

Connected original research

AI in Cyberattacks: statistical CTI study

Explore the incident-response and DFIR subset while keeping publication coverage separate from victim counts, dwell time, blast radius, or confirmed impact.