Pcornel
Browse topics
Options
Recent
Favorites
Security · Technical reference

Hash Verification

Direct answer

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.

When to use this

Use this when proving evidence has not changed.

First 30 seconds

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.

Operational verification

acquisition hash → later verification → match

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common mistakes
  • 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.
Platform / version applicability
Incident response and forensics
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformIncident response and forensics · Linux / coreutils
Key commandsha256sum -c checksums.txt
Scope / prerequisiteUse this when proving evidence has not changed.
Reference · 1
What next?2 suggested next steps
Catalog command links1
Evidence0
On this pageJump to a specific section
Security command reference

Primary Commands

Configuration and operational commands for this Topic.

Key points
  • Hash evidence at collection and again before use.
  • Use SHA-256.
  • A mismatch means the evidence changed or is corrupt.
Key checks
  • sha256sum <image> — hash
  • sha256sum -c evidence.sha256 — verify later
  • Get-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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
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
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docIncident response and forensics current

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%
Confirmation

Confirm action

Continue?