Evidence Handling and Chain of Custody

Preserve digital evidence in order of volatility, verify it with hashes and document every hand-off.

Intermediate · about 5 hours · difficulty 2/5

Learn first: The Incident Response Lifecycle, Hashing and Password Storage

Digital forensics is the careful collection and analysis of digital evidence so that conclusions are reliable and, if needed, defensible in legal or disciplinary proceedings. The fundamentals are about process, not fancy tools.

Order of volatility

Collect the most short-lived data first:

  1. CPU registers and cache (rarely collected in practice).
  2. Memory (RAM): running processes, network connections, decrypted data.
  3. Network state and temporary files.
  4. Disk contents.
  5. Remote logs and backups, which are the most durable.

Pulling the power loses everything in memory, so decide deliberately.

Preserving integrity

  • Create forensic images rather than working on originals, using write blockers for physical disks.
  • Hash evidence (SHA-256) at collection and before analysis to prove it has not changed.
  • Work on copies; store originals securely.

Chain of custody

A written record of who collected each item, when, where, how, and every person who handled it afterwards. Gaps in custody can make evidence unusable.

Legal and ethical boundaries

Only collect what you are authorised to collect, respect privacy laws and company policy, and involve legal counsel when an investigation could lead to action against a person.

Pitfalls

  • Browsing a suspect machine and changing timestamps before imaging.
  • Forgetting to record time zones and clock drift.

Good enough to move on: you can explain the order of volatility, create and hash a disk image of a lab VM, and fill in a chain-of-custody form.

Key concepts

  • Order of volatility
  • Memory vs disk acquisition
  • Forensic images and write blockers
  • Hash verification
  • Chain of custody forms
  • Legal and privacy boundaries

Mini project

Image a small lab VM disk with a free tool such as FTK Imager or dd, hash the image, and complete a chain-of-custody record as if handing it to a colleague.

Check yourself

Why should you usually capture memory before shutting down a compromised machine?

Free resources