Spoke · Guide

How to Preserve Chain of Custody in a DFIR Investigation That May Go to Court

Chain of custody is the first thing an opposing expert attacks and the last thing most teams document properly. This guide covers how to keep it intact from the first acquisition, including the cloud sources where it most often breaks.
Published 18 June 2026 · 7 min read

What chain of custody means in digital forensics

Chain of custody is the documented history of a piece of evidence: where it came from, who handled it, what was done to it, and proof that it has not changed along the way. In digital forensics that proof is usually a cryptographic hash captured at acquisition and re-verified at each step. If the hash still matches, the evidence is what you say it is. If the record of handling has gaps, the data may be accurate and still be excluded, because the question is no longer what the data says but whether you can vouch for it.

Where chain of custody breaks

It rarely breaks at acquisition. It breaks in the gaps afterwards. The common failure points are the handoff between a forensic tool and a review tool, a re-collection done because the first export was incomplete, a spreadsheet of file paths maintained by hand, and cloud sources collected through an interface that does not preserve original metadata. Every one of those is a moment where provenance can be lost and a clean finding can be turned into a contested one. The broader workflow that frames this problem is covered in the end-to-end cyber investigations to litigation playbook.

Preserve it from the point of acquisition

The only reliable chain of custody is one that starts at capture and is never reconstructed from memory.

  • Hash every source at the point of acquisition and record the hash before anything else happens.
  • Capture the source context: device, account, custodian, collection method, and time, in the same record.
  • Write the record to an immutable log, so it cannot be edited after the fact.
  • Re-verify the hash at each transformation, and log the result.

A workspace that records these automatically removes the most common failure, which is a human forgetting to write something down. This is the core of how Setara is built.

Cloud and SaaS sources, the hard part

Endpoints are well understood. The harder problem is collecting from M365, Google Workspace, Slack, and other cloud services where you do not hold the disk. Here, provenance depends on collecting through methods that preserve original metadata and on recording exactly which API, account, and time window produced the data. A screenshot or a manual download will not survive scrutiny. Treat cloud collection with the same rigour as a disk image, and document the collection method as carefully as the content. The intelligence layer keeps that context attached as the data moves through analysis.

Documenting for admissibility

The standards are consistent across jurisdictions. United States Federal Rule of Evidence 901 asks you to show the evidence is what you claim. The Australian Evidence Act sets a similar authentication bar. Neither cares how clever your analysis is if you cannot account for the handling. Your documentation should answer, for every item, who collected it, when, by what method, and what was done to it, with the hash record to back each claim. For legal investigations and cyber incident review the bar is the same.

A chain of custody checklist

  • Hash at acquisition and record it before analysis.
  • Capture source, custodian, method, and time in the same record.
  • Use an immutable, append-only log for the audit trail.
  • Re-verify hashes at every transformation.
  • Collect cloud sources through metadata-preserving methods, never screenshots.
  • Avoid re-collection, which restarts the chain.

Frequently asked questions

Is a hash enough to prove chain of custody?

A hash proves the data has not changed. It does not prove who handled it or how. You need both the hash and a documented handling record for a complete chain.

Does collecting from the cloud break chain of custody?

Not if you collect through methods that preserve original metadata and record the API, account, and time window used. It breaks when people fall back to screenshots or manual downloads.

Can you fix a broken chain of custody after the fact?

Usually not. Provenance cannot be reliably added later. The practical fix is to collect everything as though it may go to court, from the start.

Related reading