DFIR Guidebook

A working reference for digital forensics and incident response, built to keep open during live investigations: what each artifact proves, where each log source has gaps, playbooks for common incident types, how threat actors operate, and the legal and engagement mechanics around the technical work. Covers Windows, Linux and macOS hosts, AWS, Microsoft 365 / Entra, Okta, the major SaaS platforms and EDR consoles.

Start here - by situation #

Find the row that matches what you're facing, do the first moves, then work from the linked sections.

SituationFirst movesGo to
Ransomware - encryption active or just discoveredIsolate affected segments through the EDR; take backups and hypervisor management offline from the attacker's reach; revoke tier-0 credentials; preserve one encrypted host and the encryptor binaryRansomware playbook · Operator behavior · EDR live response · OFAC & payment
Business email compromise or mailbox takeoverIf a wire went out, contact the bank and FBI IC3 now; place a Purview hold; revoke the user's sessions; pull UAL and Entra sign-ins for the windowBEC playbook · M365 / Entra · M365 first moves
Leaked cloud keys or AWS console anomalyDeactivate the key (don't delete it); confirm CloudTrail is still logging; snapshot IAM with get-account-authorization-detailsAWS keys playbook · AWS IR · AWS first moves
Identity provider / SSO compromise, MFA bypassRevoke sessions and tokens; review factor and device changes, admin role grants and API tokens; list every downstream app reachable through SSOOkta · Entra ID · Identity-only intrusion card
Edge device (VPN, firewall, gateway) advisory or exploitationCollect appliance logs, config and memory before patching or rebooting; run the vendor's integrity checker; rotate every credential the device storesEdge-device card · Intrusion lifecycle
SaaS data theft or an extortion claimValidate any sample the actor sent; preserve SaaS logs before retention rolls; identify the access path (credentials, OAuth app, file-transfer zero-day)Data-theft card · Salesforce · Snowflake · Google · GitHub
Compromised Linux serverCapture memory first (AVML), then run UAC; check persistence, ld.so.preload and loaded eBPF programsLinux · Memory · Linux first moves
Compromised macOS endpointsudo sysdiagnose, log collect, sfltool dumpbtmmacOS · macOS first moves
Windows host - suspicious execution or lateral movementContain through the EDR; collect a KAPE or Velociraptor triage package; pull Security, System and PowerShell logs before they rollWindows · EDR live response
Suspected insider or fake employeeEngage HR and counsel before acting; preserve quietly so the subject isn't tipped offInsider card · Legal & privilege
Evidence must hold up in litigation or regulatory reviewLegal hold; hashed exports; start the custody log nowM365 preservation · Chain of custody

Reading this guidebook

  • ts: notes explain what a timestamp actually records, its epoch and resolution, and how long the source keeps data.
  • Green tool callouts list the parsers and collectors for that artifact. Red callouts are pitfalls: conclusions that often end up in reports and are wrong.
  • Hover any dotted-underlined acronym for its expansion.
  • Working rule: for every artifact you cite, state what it proves, what it rules out, and what its coverage gap is.