No matter how impenetrable an organization's firewalls or defensive barriers appear, breaches will occur. Digital Forensics and Incident Response (DFIR) is the systematic discipline of containing active security breaches, preserving tamper-proof evidence admissible in a court of law, eradicating adversary footholds, and restoring operational business services safely.
The US National Institute of Standards and Technology (NIST) defines the global benchmark 4-phase Incident Handling framework:
Figure 45.1: The 4 Phases of the NIST SP 800-61 Incident Response and Forensic Investigation Lifecycle
When forensic examiners seize a compromised computer, they must collect evidence in order of how quickly data vanishes when power is lost:
| Volatility Rank | Evidence Storage Medium | Critical Forensic Artifacts Contained |
|---|---|---|
| 1. Most Volatile | CPU Registers and Cache | Immediate processor state, instructions in pipeline. |
| 2. Highly Volatile | Routing Tables, ARP Cache, Process Table, Kernel Memory | Active network sockets, established TCP sessions, loaded kernel modules. |
| 3. Volatile | System RAM (Physical Memory) | Unencrypted BitLocker keys, cleartext passwords, injected fileless malware in memory. |
| 4. Less Volatile | Temporary File Systems (Swap / Pagefile) | Paged memory chunks, crash dumps. |
| 5. Non-Volatile | Disk Drives (SSD / HDD) | File systems, event logs, registry hives, deleted files in unallocated space. |
| 6. Least Volatile | Archival Media & Cloud Backups | LTO tapes, optical discs, offline cold storage snapshots. |
Unplugging the power cable immediately erases all volatile RAM. You lose memory-injected malware, unencrypted private keys, active C2 network connections, and process memory maps forever! Always dump physical RAM first using tools like LiME (Linux) or FTK Imager / WinPmem (Windows) before shutting down the machine.
For digital evidence to be admissible in a court of law, investigators must strictly maintain a Chain of Custody log: a chronological paper trail detailing exactly who collected the evidence, when it was transferred, how it was stored, and who had physical access to it.
Before analyzing any disk drive, the investigator connects the drive to a physical Hardware Write Blocker (which prevents the OS from writing a single byte to the disk) and creates a bit-for-bit raw clone using dd. Both the original disk and the cloned image are hashed with SHA-256. If the hash values match, mathematical proof is established that the evidence has not been altered!
Broaden your defensive and offensive security knowledge across our curriculum:
The triage handoff from continuous monitoring to high-severity incident declaration.
Tracing adversary footprints across disks, logs, and network connection artifacts.
Incident response runbooks for ransomware outbreak containment and clean recovery.
University exam questions on Order of Volatility, Chain of Custody, and disk imaging.