← Back to the blog

Without a hash at the source, the examination has nothing to compare against

A hash calculated at the source makes it possible to verify later whether the material has changed. Without a forensic image and without a hash at collection, any later examination has nothing to compare against.

Without a hash at the source, the examination has nothing to compare against

Digital evidence has a feature that sets it apart from almost every other kind: it can be copied without loss and altered without visible trace. That is why the moment of collection decides almost everything. A draft act of the CNJ (Brazil's National Council of Justice), reported on September 29, 2026 and still awaiting a final decision, seeks to guide judges on this subject, with emphasis on traceability, preservation of metadata, access logging and hashing. Whatever becomes of the draft, the problem it addresses is concrete and recurring.

A hash function transforms a data set into a short string of characters. If a single bit of the set changes, the string changes. Calculated at the moment of collection, the hash works as a reference: anyone, later on, can recalculate and compare. For the reference to be valid, acquisition must be done in a way that does not alter the original device: duplication into an image file, with hardware or software write-blocking, and examination of the copy. Turning on the original device and browsing through it changes access dates and may generate new records, even unintentionally.

In a dissenting technical opinion I prepared as party expert, seized devices had been examined and described in a report without any record of duplication, write-blocking or hashing. Here the layers must be separated. The technical fact is the absence of that record. The hypothesis is that the examination may have modified the material. The technically possible conclusion is that there is no way to verify whether the content examined is identical to what was seized. It is not possible to conclude that there was tampering, nor that content was planted by a third party: the technique supports neither statement. What the methodological failure produces is a loss of verifiability.

Art. 158-A of the Código de Processo Penal (CPP, Brazilian Code of Criminal Procedure) defines the chain of custody as the set of procedures that document the chronological history of a piece of evidence, in order to trace its possession and handling. Art. 158-B lists the stages, from recognition to disposal. The consequence of a failure varies: some decisions treat it as grounds for nullity and others as a matter of weight, and it is prudent not to generalize. What can be said with confidence is that verifiability narrows the room for dispute. For the defense, the first question is one of method. For the prosecution, documenting the collection is the best insurance against doubt. For the court, the task is to weigh the element when verification is not possible, without drawing from the expert report more than it supports.

The CNJ draft, if approved, is meant to guide judicial analysis, not investigative activity. Even so, the concepts it brings together already echo what the technique has required for years. A hash at the source does not prove the content; it proves that the content has not changed since then. Without it, any later examination looks at what is left, and cannot say what was lost.

6 min read Translated from the original in Portuguese. Read the original →
← Back to the blog Go to the home page