tools β€’ Forensix Intelligence

Verifying a Photograph in Five Minutes: Hash, EXIF and C2PA in the Right Order

A photograph used as documentation needs three answers: is the file unchanged since capture, what does the metadata say, and is there a signed provenance chain? The order decides the outcome. Hash first, metadata second, C2PA last, or you open the file in tools that write to it and destroy your own evidence.

Photographer at a field desk with a laptop, camera and a printed verification report with a hash.
Photographer at a field desk with a laptop, camera and a printed verification report with a hash.
Illustration: Forensix

A photograph submitted as documentation for an insurance claim, a building inspection or a tenancy dispute has to answer three questions: is the file unchanged since capture, what does its metadata say, and is there a signed provenance chain? Most people start at the wrong end. They open the image in a viewer, look at it and perhaps save it again, and with that the file hash has changed and the technical part of the evidence is weakened. This manual does the same work in five minutes, in the right order, without touching the original.

Why the order matters

Every step leaves a trace. A hash taken after the file was opened in software that writes to it no longer describes what came in. Metadata changed by accident cannot be restored. So: hash first, metadata second, provenance last, and all three reads happen on a copy or with tools that are guaranteed to work read-only.

Step 1: Hash the original

`sha256sum image.jpg` on Linux and macOS, `certutil -hashfile image.jpg SHA256` on Windows. Write down the value, the file size and the time. If the image arrived by email or a message, hash the attachment as it landed, not a version that has passed through an image viewer.

Step 2: Read metadata without writing

`exiftool -a -G1 -s image.jpg` shows everything present: camera model, lens, exposure time, ISO, timestamp, GPS and any editing software. Read, do not change. The flag that strips metadata writes to the file and must never be used on an original. Note in particular whether there are traces of editing, whether timestamps are plausible, and whether GPS matches the stated location.

Step 3: Verify a C2PA manifest

Content Credentials are a cryptographically signed manifest that travels with the file. The `c2patool` utility can read it locally, and the verification service run by the Coalition for Content Provenance and Authenticity does the same in a browser. A valid signature shows that the manifest has not changed since signing and that somebody holding a certificate for a given device or organisation asserted the content.

Equally important is what it does not show. It does not prove that the scene is true, that the camera was uncompromised, or that the image was taken at the stated time. An image without a manifest is not manipulated: manifests can be absent because the camera is older, because the file passed a service that strips them, or because someone removed them deliberately. The file alone cannot tell those cases apart.

Step 4: Compare what is hard to fake cheaply

The pixels and the metadata should tell the same story. Do the dimensions match the camera model? Do the lens details match the field of view? Is there an embedded thumbnail that appears to come from the same exposure? Differences are not proof of manipulation, but they are a reason to look further. A rescaled image presented as an original is a simple and common error.

Step 5: Write a report someone else can follow

The report should contain file name, size, SHA-256, the time of the review, which tools and versions were used, what the metadata showed, the result of the provenance check and which questions could not be answered. Also state whether you worked on a copy and where the original is stored. A conclusion without a traceable method is an opinion.

What you should not do

Re-save the image to make it easier to send. Crop it. Remove GPS to protect someone before the hash is secured. Upload the original to a service that may store or process it. Publish a conclusion about authenticity based only on the absence of metadata.

Five minutes and four commands are enough to know what you have, what you do not have, and what you can state with certainty. That is the difference between an assertion and documentation.

The tools used here, the metadata viewer, the hash verifier and the integrity lab, run locally in the browser. The image never has to leave your computer to be examined.

Sources & References

← All News Tools