Use this when proving evidence has not changed.
Hash Verification
Hash verification computes a cryptographic hash, such as SHA-256, of evidence at acquisition and again later. Matching hashes prove the image or file has not changed.
1. Hash evidence at acquisition and verify before analysis/court.
2. SHA-256 (MD5 alongside only for legacy tools).
3. Document hashes.
4. Mismatch = integrity issue.
5. Verify copies.
acquisition hash → later verification → match
Context & applicabilityCommon mistakes · platform/version boundaries
- Hashing the copy only, not the original at acquisition.
- Using MD5 alone — record SHA-256 too.
- Mounting the source read-write, changing it (use a write blocker).
- Not re-verifying the hash before analysis and before handing over.
Operational reference
Fast context before you go deeper.
sha256sum -c checksums.txtPrimary Commands
Configuration and operational commands for this Topic.
- Hash evidence at collection and again before use.
- Use SHA-256.
- A mismatch means the evidence changed or is corrupt.
sha256sum <image>— hashsha256sum -c evidence.sha256— verify laterGet-FileHash <file> -Algorithm SHA256— Windows
ReferenceHow it works1 section · depth on demand
In depth
Hash verification shows that evidence has not changed since acquisition. The examiner computes a cryptographic hash (SHA-256) of the original or the forensic image at collection and verifies it before and after analysis; matching hashes show the data is identical.
sha256sum /evidence/ws-1442.dd > ws-1442.dd.sha256
sha256sum -c ws-1442.dd.sha256
Get-FileHash E:\evidence\ws-1442.E01 -Algorithm SHA256
Forensic image formats (E01, AFF4) store hashes internally and verify them automatically. Record hashes in the chain-of-custody documentation; MD5 alone is no longer considered sufficient — use SHA-256, optionally alongside MD5 for legacy tool compatibility.
ReferenceImportant terms & boundaries1 section · depth on demand
Acquisition example
dc3dd if=/dev/sdb of=/evidence/disk.dd hash=sha256 log=/evidence/disk.log
ewfacquire /dev/sdb # E01 format with built-in hashes
ewfverify disk.E01
Documented example, not captured output. Use a hardware write blocker on the source; FTK Imager is a common Windows alternative.
ReferenceConfiguration & state1 section · depth on demand
Commands
sha256sum disk.E01 > disk.E01.sha256
sha256sum -c disk.E01.sha256
Get-FileHash .\memory.raw -Algorithm SHA256
Documented example, not captured output. Hash at acquisition, record the value in the chain-of-custody form, and verify before each analysis and when handing over. Work on copies; the original image stays write-protected.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Digital Forensics → Hash Verification. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://csrc.nist.gov/pubs/sp/800/86/final · confidence 94%