Verify evidence Search

Research publication Evidence

What a SHA-256 hash proves and what it does not

A SHA-256 hash proves a file is bit-for-bit identical to the file that was hashed, if the published hash is authentic. It does not prove who made the file, when, or that its contents are true. Signatures, timestamps and custody records each add one property; none proves correctness.

  • VPNL-R-2026-004
  • Version 1.0
  • Published
  • No revisions since publication
  • 8 min read
  • 14 references

Abstract

Evidence publications increasingly print SHA-256 digests next to downloadable files, and readers are entitled to know what such a digest establishes. This publication separates four properties that are often conflated — integrity, authenticity of origin, existence at a point in time, and correctness of content — and shows which mechanism supports each: hash functions specified in FIPS 180-4, digital signatures, RFC 3161 time-stamp tokens, append-only transparency logs and documented chain of custody. It explains hash manifests as a way to bind many files to a single digest that can be signed or time-stamped once, lists common misreadings such as truncated comparisons and hashes served from the same origin as the file, and describes how VPN Labs applies these mechanisms to its evidence records and where their limits lie.

Four questions a reader might ask

A reader who downloads an evidence file — a packet capture, a log, a configuration export — and sees a hash printed next to it may want to know four different things:

  1. Integrity: is this the same file that was published?
  2. Origin: did it really come from the organisation that claims to have published it?
  3. Time: did it exist at the time it is said to have been collected, or was it produced later?
  4. Correctness: does it show what the report says it shows?

A SHA-256 digest answers the first question, and only under a condition discussed below. Other mechanisms address the second and third. No cryptographic mechanism answers the fourth. Figure 1 summarises the relationship; Table 1, in the section on correctness, sets it out mechanism by mechanism.

What hashes, signatures and timestamps establishFour layers. A SHA-256 digest establishes integrity: the bytes are identical. A signature over the digest establishes origin: the holder of the signing key. An RFC 3161 time-stamp token or a transparency-log entry establishes time: the digest existed no later than a given moment. Above a dividing line, correctness of content is supported only by method, raw data and review, and can be evaluated but not proven by any cryptographic mechanism.MechanismWhat it establishesSHA-256 digest of the fileIntegrity: the bytes are identicalSignature over the digestOrigin: the holder of the signing keyRFC 3161 token / transparency logTime: existed no later than TMethod, raw data and reviewCorrectness: evaluable, not provableno cryptographic mechanism reaches above this line
Figure 1 Each mechanism adds one property to the layer below it. Correctness sits above the line: it can be evaluated through method, data and review, but no hash, signature or timestamp establishes it.

What SHA-256 is

SHA-256 is a cryptographic hash function of the SHA-2 family, specified in FIPS 180-4 [1] and also published as RFC 6234 [2]. It maps any input shorter than 264 bits to a 256-bit digest, conventionally written as 64 hexadecimal characters.

Its usefulness rests on three properties. Preimage resistance: given a digest, finding any input that produces it is computationally infeasible. Second-preimage resistance: given a file, finding a different file with the same digest is infeasible. Collision resistance: finding any two inputs with the same digest is infeasible, with a generic cost of about 2128 operations. NIST SP 800-107 Rev. 1 sets out the security strength that approved hash functions provide in each kind of application [3]. These properties are not guaranteed for ever — practical collisions for SHA-1 were demonstrated in 2017 [4] — which is why evidence should not rely on SHA-1 or MD5.

Integrity: the one thing a hash proves

If you compute the SHA-256 digest of a downloaded file and it equals the published digest, the file is identical, bit for bit, to the file from which the digest was computed. Change one bit and the digest changes completely. That is a strong statement and a narrow one: it is about bytes, not meaning. Converting line endings, re-saving an image, re-compressing an archive or editing metadata produces a different digest, even if a person would call the content “the same”. Evidence must therefore be hashed in exactly the form in which it is published, and handled as bytes from then on.

# Linux
sha256sum capture-01.pcap
# macOS
shasum -a 256 capture-01.pcap
# Windows PowerShell (prints upper-case hexadecimal; comparison is case-insensitive)
Get-FileHash -Algorithm SHA256 .\capture-01.pcap

Where the hash comes from matters

The comparison is only as trustworthy as the published digest. If the file and its digest are served by the same web server, anyone able to replace the file can replace the digest too. The check then detects transmission errors and storage corruption — useful in itself — but not deliberate replacement by whoever controls the server. There are three ways to strengthen it: obtain the digest through an independent channel, such as a printed report, a third-party archive or a separately operated mirror; sign the digest; or record it in a public log that the publisher cannot rewrite.

Authenticity: signatures

A digital signature — Ed25519 as specified in RFC 8032 [5], or one of the algorithms in FIPS 186-5 [6] — binds a digest to a private key. Successful verification shows that whoever holds that key signed exactly this digest. Two caveats apply. A signature proves possession of a key, not identity, so the public key or its fingerprint must itself reach the reader through trustworthy channels. And a signature shows endorsement by the key holder, not that what they signed is accurate.

Keyed hashes such as HMAC cannot provide public authenticity, because anyone able to verify an HMAC holds the same key and could have produced it. Signed containers such as the Cryptographic Message Syntax [7] package the signature, the signer’s certificate chain and metadata about the signed content together.

Time: RFC 3161 timestamps and transparency logs

An RFC 3161 time-stamp token [8] is a statement, signed by a time-stamping authority (TSA), that it saw a given digest at a given time. RFC 5816 updated the protocol so that the TSA’s certificate can be identified with hash algorithms other than SHA-1 [9]. The token proves that the digest — and therefore the file — existed no later than the stated time. It does not prove when the file was created, that the requester created it, or that the TSA’s clock was right; it relies on trust in the TSA and on the validity of its certificate. Tokens from more than one independent TSA reduce reliance on any single one.

Append-only transparency logs offer a complementary property. Certificate Transparency [10] uses a Merkle tree so that anyone can check that an entry is included in the log and that the log has only ever been appended to. Recording evidence digests in such a structure makes silent replacement detectable by anyone who kept an earlier tree head.

Correctness: what no hash can show

None of these mechanisms says anything about whether a file’s contents are true, or whether conclusions drawn from them are right. A packet capture can be authentic, intact and time-stamped and still be misinterpreted. A log can be the faithfully preserved output of a misconfigured tool. A fabricated file hashes as cleanly as a genuine one.

Correctness is supported by other means: a published methodology, raw data that others can re-analyse, a description of the environment and tool versions, review by someone who did not run the test, and a public corrections process. Hashes serve these by guaranteeing that everyone re-analysing the data is looking at the same bytes — nothing more.

Table 1 — What each mechanism establishes
MechanismIntegrityOriginExisted by time TContent is correct
Digest served alongside the fileAgainst accidental change onlyNoNoNo
Digest from an independent channelYesNoNoNo
Signature over the digestYesYes — holder of the keyNoNo
RFC 3161 time-stamp tokenYesOf the token (the TSA)Yes, as asserted by the TSANo
Entry in an append-only public logYesIf the entry is signedYes, by inclusion timeNo
Published method, raw data, review———Allows evaluation; guarantees nothing

Manifests

A hash manifest is a file that lists the digest of each file in a set.

In the format used by the GNU coreutils sha256sum utility [11], each line holds the 64-character digest, a space, a mode character (a space for text mode or an asterisk for binary mode) and the file name; sha256sum -c verifies every listed file in one step. Hashing the manifest yields a single digest that commits to every file in the set: change, add or remove one file and the manifest’s digest changes. That single digest is the natural object to sign, time-stamp or log. A Merkle tree generalises the idea, allowing proof that one file belongs to the set without disclosing the others.

$ sha256sum -c manifest.sha256
capture-01.pcap: OK
client-log.txt: OK

Chain of custody

Integrity checking begins when the first digest is taken; anything that happened to a file before then is invisible to the hash. Chain of custody is the documentation that covers the rest: who collected an item, when and how; where it was stored; who accessed or transferred it; and the digest recorded at each step. RFC 3227 [12], NIST SP 800-86 [13] and ISO/IEC 27037 [14] describe practices for collecting and preserving digital evidence.

For test evidence, the practical rules are short. Hash at the point of capture, not at publication. Keep originals on write-once storage and work on copies. Record every transfer together with the digest. Record exclusions as well: a file withheld because it contains personal data should still have its digest published, so that a later disclosure can be checked against it.

Common misreadings

  • “The hash shows the file is safe.” It shows identity, not safety. Malware has a perfectly good SHA-256 digest.
  • “The hash encrypts or protects the file.” Hashing is one-way and uses no key; the file remains fully readable.
  • “Two websites showing the same digest confirm each other.” Only if they obtained it independently. Copies of one value are one source.
  • “The first and last characters match, so the file matches.” Shortened digests are for recognition. Eight hexadecimal characters are 32 bits; a file with any chosen 32-bit prefix can be found with about four billion attempts, which is modest computing work. Verification must compare all 64 characters.
  • “The hash proves when the file was made.” Only a time-stamp token or a log entry bounds time, and only from above.
  • “A verified hash means the conclusions are verified.” See above: correctness is a matter of method and review.

How VPN Labs uses hashes

In the VPN Labs Report Registry, every evidence item lists its SHA-256 digest, computed at collection time where we captured the item ourselves. Per-record manifests are published in the sha256sum format; the evidence integrity page recomputes digests of stored files and flags any mismatch with the published values; and the verification page lets anyone compare a file with the registry. Evidence withheld for privacy reasons is listed with its digest.

These measures establish integrity against our own published values. Where a record additionally carries a signature or a time-stamp token, the record says so explicitly; where it does not, readers should treat the digest as exactly what this publication describes, and no more. The full procedure is described in our evidence-handling methodology.

Limitations

This publication concerns the properties of the mechanisms, not the security of any particular implementation of them. Key management, TSA operation and log governance determine how much the corresponding guarantees are worth in practice. Cryptographic assumptions are judgements about the current state of knowledge; should SHA-256 weaken, as SHA-1 did, digests published today would need to be re-anchored with a stronger function.

References

All sources are publicly available primary documents. Numbers correspond to the bracketed citations in the text.

  1. 1National Institute of Standards and Technology. (2015). Secure Hash Standard (SHS) (FIPS PUB 180-4). https://doi.org/10.6028/NIST.FIPS.180-4
  2. 2Eastlake 3rd, D., & Hansen, T. (2011). US Secure Hash Algorithms (SHA and SHA-based HMAC and HKDF) (RFC 6234). RFC Editor. https://www.rfc-editor.org/rfc/rfc6234
  3. 3Dang, Q. (2012). Recommendation for Applications Using Approved Hash Algorithms (NIST Special Publication 800-107 Rev. 1). National Institute of Standards and Technology. https://doi.org/10.6028/NIST.SP.800-107r1
  4. 4Stevens, M., Bursztein, E., Karpman, P., Albertini, A., & Markov, Y. (2017). The first collision for full SHA-1. In Advances in Cryptology — CRYPTO 2017. Springer. https://shattered.io/
  5. 5Josefsson, S., & Liusvaara, I. (2017). Edwards-Curve Digital Signature Algorithm (EdDSA) (RFC 8032). RFC Editor. https://www.rfc-editor.org/rfc/rfc8032
  6. 6National Institute of Standards and Technology. (2023). Digital Signature Standard (DSS) (FIPS PUB 186-5). https://doi.org/10.6028/NIST.FIPS.186-5
  7. 7Housley, R. (2009). Cryptographic Message Syntax (CMS) (RFC 5652). RFC Editor. https://www.rfc-editor.org/rfc/rfc5652
  8. 8Adams, C., Cain, P., Pinkas, D., & Zuccherato, R. (2001). Internet X.509 Public Key Infrastructure Time-Stamp Protocol (TSP) (RFC 3161). RFC Editor. https://www.rfc-editor.org/rfc/rfc3161
  9. 9Santesson, S., & Pope, N. (2010). ESSCertIDv2 Update for RFC 3161 (RFC 5816). RFC Editor. https://www.rfc-editor.org/rfc/rfc5816
  10. 10Laurie, B., Messeri, E., & Stradling, R. (2021). Certificate Transparency Version 2.0 (RFC 9162). RFC Editor. https://www.rfc-editor.org/rfc/rfc9162
  11. 11Free Software Foundation. (n.d.). sha2 utilities: Print or check SHA-2 digests. GNU Coreutils manual. https://www.gnu.org/software/coreutils/manual/html_node/sha2-utilities.html
  12. 12Brezinski, D., & Killalea, T. (2002). Guidelines for Evidence Collection and Archiving (RFC 3227). RFC Editor. https://www.rfc-editor.org/rfc/rfc3227
  13. 13Kent, K., Chevalier, S., Grance, T., & Dang, H. (2006). Guide to Integrating Forensic Techniques into Incident Response (NIST Special Publication 800-86). National Institute of Standards and Technology. https://doi.org/10.6028/NIST.SP.800-86
  14. 14ISO/IEC. (2012). Information technology — Security techniques — Guidelines for identification, collection, acquisition and preservation of digital evidence (ISO/IEC 27037:2012). International Organization for Standardization.

Cite this publication

APA style

VPN Network Research Labs. (2026, August 25). What a SHA-256 hash proves and what it does not (Research Publication No. VPNL-R-2026-004, Version 1.0). https://vpn.com.de/research/what-a-sha-256-hash-proves

BibTeX

@techreport{vpnl-r-2026-004,
  author      = {{VPN Network Research Labs}},
  title       = {{What a SHA-256 hash proves and what it does not}},
  institution = {VPN Network Research Labs},
  type        = {Research Publication},
  number      = {VPNL-R-2026-004},
  year        = {2026},
  month       = aug,
  date        = {2026-08-25},
  version     = {1.0},
  url         = {https://vpn.com.de/research/what-a-sha-256-hash-proves},
  langid      = {en},
  note        = {Version 1.0}
}

Cite the document ID and the version you read. Document IDs are permanent; substantive changes receive a new version number and an entry in the revision history below.

Revision history

Revision history of VPNL-R-2026-004
VersionDateChange
1.0 Initial publication.

Found an error? Write to support@vpn.com.de. Corrections are handled under our corrections and retractions policy and are never applied silently.

Methodology and definitions

Test records

This publication contains no results about specific products. Product tests, audits and their evidence are published in the Report Registry and the Evidence Database.