Digital Forensics & Incident Response
DFIR combines digital forensics, the science of collecting and analyzing digital evidence, with incident response, the process of detecting, containing and recovering from security breaches. The discipline exists to answer two questions that are asked at different times: what happened, and what did the organisation decide while it was happening.
Practising it needs incidents you are allowed to create. The Purple Team Lab setup wraps the AD lab in a Wazuh or Elastic stack with Sysmon coverage, then replays ATT&CK techniques so you have real telemetry to investigate instead of sample dumps.
Evidence Preservation is Critical
Incident Response Lifecycle
The phases below are the SANS PICERL sequence in PICERL's own words, in the order it puts them: preparation, identification, containment, eradication, recovery, lessons learned. NIST SP 800-61 revision 3 (April 2025) recasts response as outcomes across the CSF 2.0 functions rather than a linear sequence, and ISO/IEC 27035-1:2023 sets out five phases of its own; it is the same work numbered differently. Preparation is first because it decides how much of the rest is possible: whether the logs still exist, whether anyone has authority to collect, and whether the evidence survives the containment decision.
Preparation
Contacts, playbooks, logging, backups, tabletop practice
Identification
Validate the alert and decide whether the event is an incident
Containment
Prevent further damage while preserving the evidence the action touches
Eradication
Remove threat from environment
Recovery
Restore systems to normal operations
Lessons Learned
Post-mortem analysis and improvements
DFIR vs Red Team
While red teams simulate attacks, DFIR professionals investigate and respond to them. These are complementary skillsets:
Red Team (Offensive)
- Break into systems
- Evade detection
- Establish persistence
- Simulate real attackers
- Goal: Test defenses
DFIR (Defensive)
- Investigate breaches
- Find attacker artifacts
- Reconstruct timelines
- Contain and remediate
- Goal: Understand and stop attacks
Essential DFIR Tools
Disk Forensics
- Autopsy / Sleuth Kit
- FTK Imager
- X-Ways Forensics
- Magnet AXIOM
Memory Forensics
- Volatility
- AVML / Magnet RAM Capture
- DumpIt
- MemProcFS
Network Forensics
- Wireshark / tshark
- NetworkMiner
- Zeek
- tcpdump
Windows Forensics
- Eric Zimmerman Tools
- RegRipper
- Event Log Explorer
- Velociraptor
Linux Forensics
- SIFT Workstation
- journalctl / ausearch
- osquery
- Sysdig
Timeline & Analysis
- Plaso / log2timeline
- Timesketch
- CyberChef
- Elasticsearch / Kibana
The Forensic Process
The steps below are the evidence-handling sequence, and they are not a second version of the lifecycle above. Identification and preservation come from chain-of-custody practice; collection, examination, analysis and reporting are the four phases NIST SP 800-86 defines for forensic work. In a real response they nest inside the lifecycle rather than succeeding it — preservation happens during identification, and reporting overlaps recovery.
- Identification: Recognize potential evidence (compromised server, suspicious network traffic)
- Preservation: Create forensic images with write-blockers, calculate MD5/SHA256 hashes
- Collection: Gather volatile data (memory, running processes) before non-volatile (disk)
- Analysis: Examine artifacts for IOCs, attacker tools, and lateral movement traces
- Documentation: Maintain detailed chain of custody and findings report
- Presentation: Communicate findings to technical and non-technical stakeholders
Capture First What Disappears Soonest
Guide Contents
1
Fundamentals
Methodology, chain of custody, roles, legal authority, and the order of volatility.
Foundation
2
Evidence Acquisition
Imaging procedure, hash verification, and the evidence manifest schema.
Acquisition
3
Memory Forensics
RAM acquisition and Volatility triage for injected code and stolen secrets.
Memory
4
Disk Forensics
Partition offsets, NTFS metadata, and deleted-file recovery from a verified image.
Disk
5
Windows Forensics
Event logs, registry hives, prefetch, $MFT, and SRUM, parsed per artifact family.
Windows
6
Linux Forensics
Journald and rsyslog paths per distribution, the limits of shell history, scheduler and audit records.
Linux
7
Network Forensics
PCAP triage, Zeek logs joined on the uid, and what a flow record can and cannot prove.
Network
8
Incident Response
Event or incident, containment criteria, the evidence package, and the reporting clocks.
Response
9
Timeline Analysis
Super timelines that separate observed, corroborated, and inferred events.
Timeline
Related Topics
Reverse Engineering
What to do with the sample once the triage package identifies it: static and dynamic analysis.
Threat Intelligence
Turning the indicators you extract into context that scopes an incident faster.
AI Incident Response
The same preservation and containment discipline applied to an incident involving an AI system.
Network Security
The detection and segmentation controls whose logs and gaps you end up investigating.