# Evidence Handling and Chain of Custody

> Preserve digital evidence in order of volatility, verify it with hashes and document every hand-off. Free notes, key concepts, resources and a mini project.

Canonical: https://www.internhack.in/roadmaps/tracks/cybersecurity/evidence-handling
Last updated: 2026-11-28

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](https://www.internhack.in/roadmaps/tracks/cybersecurity/ir-lifecycle), [Hashing and Password Storage](https://www.internhack.in/roadmaps/tracks/cybersecurity/hashing-passwords)

**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

- [NIST SP 800-86: Guide to Integrating Forensic Techniques into Incident Response](https://csrc.nist.gov/pubs/sp/800/86/final) (NIST)
- [Computer Forensics Tool Testing Program](https://www.nist.gov/itl/ssd/software-quality-group/computer-forensics-tool-testing-program-cftt) (NIST)
- [CyberDefenders blue team labs](https://cyberdefenders.org/) (CyberDefenders)

Previous: [Incident Communication and Lessons Learned](https://www.internhack.in/roadmaps/tracks/cybersecurity/ir-communication-lessons) · Next: [Timeline Analysis and Host Artifacts](https://www.internhack.in/roadmaps/tracks/cybersecurity/timeline-analysis)

## More in Digital Forensics Fundamentals

- [Evidence Handling and Chain of Custody](https://www.internhack.in/roadmaps/tracks/cybersecurity/evidence-handling)
- [Timeline Analysis and Host Artifacts](https://www.internhack.in/roadmaps/tracks/cybersecurity/timeline-analysis)

## Related

- [Roadmaps](https://www.internhack.in/roadmaps)
- [Cybersecurity Roadmap](https://www.internhack.in/roadmaps/tracks/cybersecurity)
