A cryptographic file hash is a digest computed from the bytes supplied to a hash algorithm. In malware forensics, a comparable digest can help identify a reference sample, confirm that a working copy agrees with a preserved file or associate a recorded process image with acquired bytes. The comparison is meaningful when both values use the same algorithm and cover the same kind of object. NIST Secure Hash Standard
A digest answers a narrow question about the bytes measured. A copy with a different filename can retain the same digest. A file saved under the same name can acquire a different digest when its contents change. An evidence record therefore needs both the digest and the context that identifies where each set of bytes came from.
Key terms
- Cryptographic digest
- The fixed-length result of applying a cryptographic hash function to an input.
- SHA-256
- A Secure Hash Algorithm 2 function producing a 256-bit digest, usually written as 64 hexadecimal characters.
- Hash scope
- The exact byte sequence or defined representation measured by a hash operation.
- Reference digest
- A digest from a known or documented object used as a comparison value.
- Collision
- A situation in which distinct inputs yield the same digest under a given algorithm.
Identify the Bytes Covered by Each Digest
Record the item identifier, object name, byte count, algorithm and full digest. For a nested object, identify the parent and member path. A compressed archive and a member inside it are different inputs. The same member can be held in archives with different compression settings or packaging metadata, so the archive digests can differ while the member digests agree.
Scroll horizontally if needed to see the full table.
Reports may include a digest of a disk image container, a digest of the acquired storage data represented by that image or hashes of individual files recovered from it. Record which comparison the acquisition tool performed. Even where the evidence consists of a single file, check whether the tool measured the complete file or a format-defined subset. Microsoft's Windows signing documentation distinguishes the Portable Executable signature hash from a full-file hash. Microsoft guidance on executable file signing
Compare the Same Algorithm and Full Value
A hash displayed with uppercase hexadecimal characters represents the same bits as one printed in lowercase. Keep the original form in the evidence record and compare the full parsed value. Check that the display includes the expected number of characters and that the algorithm labels agree. A shortened prefix can make a report easier to scan, but the full value should remain linked to the entry so a reviewer can verify the comparison.
The algorithm matters because different functions produce different values and offer different strength against collisions. Published historical records may provide a legacy digest. Maintain its original label for research and use a modern digest such as SHA-256 for current integrity and identity comparisons where you can compute it.
If the only available public reference uses a legacy algorithm, report the basis and limits of the comparison rather than upgrading the comparison by relabelling the old value. NIST policy on hash functions
Preserve the History Behind a Match
A matching copy digest and baseline can support preserving the same bytes since the baseline was measured. It does not supply the missing history between the object being created and that earliest measurement. Use the acquisition record, source inventory and custody history to establish what each measurement represents. Document the times of the checks and which copy each digest describes.
A full-file digest matching a public report supports associating the examined bytes with the sample identified in that report. Treat the report's observations as reference evidence from the reported setting. A claim about execution on a particular host needs an activity record or other suitable host evidence with an appropriate link to the object. This distinction also applies to files described as trusted. Identity describes the measured object, while provenance depends on the source relationship.
Investigate a Mismatch Without Altering the Evidence
When two values differ, identify the expected relationship before drawing a conclusion. If the same bytes should have been preserved across a transfer, check whether the full values, algorithms and byte counts were copied accurately. Then check whether one tool measured the archive and the other measured a member or decompressed stream. Keep the verified values and the original discrepant records.
A repeat measurement should preserve its own tool details and date. If the mismatch persists, state which item or stage could not be verified. In some cases the result is expected because the transformation produced a different object. If a copy was expected to be identical and its digest differs, explain the effect on the intended use of that copy and keep the preserved version available for review.
Use Identity Findings at the Right Level
In a hypothetical review, two devices record the same full-file SHA-256 for a utility in different directories. The match supports grouping the records by file contents. Preserve both original directories and the source for each digest. If one device reported a process start and the other reported only the presence of a file, write the activity findings separately for those devices.
A digest can also help reviewers track a reference as it changes. Keep the vendor release identifier and retrieval date beside the lead. If a publisher replaces a download under the same name, a new digest can identify a different reference object. Make it clear which reference value was available when each comparison was made.
Review the distinction between exact comparison and similarity. A service may group files under a family or produce a similarity score, while a whole-file SHA-256 comparison evaluates an exact digest. Preserve the comparison type so an identical score or similar label does not enter the case history as a whole-file match.
Relate the Digest to the Evidence Layer
A delivered archive, an extracted member and a forensic container each hold a different sequence of bytes. The evidence identity question determines which object to hash. An email transfer might need acknowledgement of the delivered archive, while a comparison of suspicious attachments generally needs the corresponding extracted members and their context.
The same principle applies to analysis products. Record whether a digest covers the original acquired bytes, an exported view, or a file reconstructed by a parser. Different tools may interpret missing data or combine recovered fragments differently. A digest of a tool output identifies that output and remains useful when reported with the transformation and source ranges.
If the report needs two evidence layers, keep both values and label them. A transfer manifest can record the container digest. A file comparison table can record separate digests tied to members and internal paths. The receiver can then verify the transfer and use the member values without guessing what the sender intended.
Distinguish Collisions, Copy Verification, and Provenance
A collision occurs when separate inputs share a digest. The security properties and suitability of hash algorithms differ, so consult the requirements governing the examination and record which approved algorithm was used. When comparing to a legacy value from a source report, retain it for correspondence and document the approved digest independently computed over the preserved item. NIST hash functions
Digest comparison can support integrity checking during transfers or between preserved and working copies. It gains evidential meaning from the named input scope, recording method, and trustworthy source of the reference value. A value copied from an unverified message can be a useful lead and may need independent corroboration before it supports provenance.
Publisher identity is a separate question from copied-byte equality. Matching a download digest to a reference shows a relationship under the documented hash algorithm, while deciding who supplied or authorized the object requires provenance evidence. Preserve a trusted manifest or verification record if publisher identity matters to the case.
Keep Digest Results Reproducible
A comparison table should name the item, byte length, digest algorithm, digest value, and context. For a whole file, the context can include the source object, path or record identifier, and verification time. For a region or segment, supply enough indexing information to independently identify the same bytes.
Retain full digest values in the case material. A short displayed prefix can help readers distinguish rows on a dashboard, while the full value is needed for identity comparisons. If a product truncates values, record the limitation and seek a preserved item or an export carrying the complete digest when the comparison is consequential.
Track acquisition and verification outcomes independently. A transfer can pass integrity verification for an image with acquisition errors already documented in the original. Record both the successful transfer and the available scope of source acquisition. This distinction matters when someone relies on verification as shorthand for all evidence being present.
When content comes from a segmented image, say whether the comparison covered one segment, the delivered segment set, or the logical byte stream presented by a reader. The manifest and the acquisition report can preserve separate values for these scopes. Report them with unique labels to avoid comparing a delivery check with an image verification result.
Practice Comparing a Container With Its Members
In this instructional exercise an analyst receives two evidence archives with different SHA-256 digests. Each holds a file named case-note.txt, and the extracted note has the same SHA-256 digest and length in both. One archive carries a newer manifest. Write separate statements for archive identity, the extracted member, and provenance.
The archive digests establish a mismatch at the archive level. A matching digest of the extracted notes strongly supports equality of those bytes within the documented comparison. The newer manifest and different packaging may explain the archive mismatch, but that explanation requires reviewing the manifest and identifying any other changed member or container record.
Now add a verified digest for the first archive from a case repository. This helps verify that archive against the recorded reference. It supplies no independent evidence about who created the second archive. Split the conclusion accordingly, and if custody matters, request transfer history for the second archive before making a source attribution.