Digital forensics is the disciplined collection, preservation, and analysis of digital evidence — to understand an incident and, when needed, support legal action.
CPU registers / cache
RAM (memory)
Network state, running processes
Disk
Logs / archived data
Backups ← least volatile
| Artifact | Reveals |
|---|---|
| File system & timelines | What ran, when; deleted files |
| Memory | Injected code, keys, processes, network |
| Logs | Authentication, execution, lateral movement |
| Registry (Windows) | Persistence, USB history, recent activity |
| Network captures | C2, exfiltration |
| Browser/email | Phishing, downloads |
IR aims to contain and recover fast; forensics aims to understand deeply and preserve evidence. They can conflict (wiping a box quickly destroys evidence), so coordinate: decide early whether legal action is likely, and preserve accordingly.
Attackers actively try to defeat forensics: clearing logs, timestomping (altering file times), encryption, and fileless techniques. This is why off-host, tamper-resistant logging (Chapter 8) is so valuable — it survives even when the endpoint is scrubbed.
Forensic work culminates in a clear, factual report: a timeline of events, root cause, scope of impact, and recommendations — written so both technical teams and non-technical stakeholders can act on it.