Hashes and integrity: the tools
From commands built into operating systems to forensic software: what is used to compute and verify hash values.
No expensive software is needed to compute a hash value: the tools are already in operating systems. What matters is always stating which tool was used, with its version, so that anyone can repeat the operation.
- Windows
- The
certutil -hashfile file SHA256command and, in PowerShell,Get-FileHash. - macOS and Linux
- The
shasum -a 256andsha256sumcommands. - Acquisition software
- Forensic imaging tools compute values during the copy and save them in the acquisition log.
- Analysis suites
- Analysis software verifies images when opening them and computes the values of individual files.
- Known-hash sets
- Collections of values of system files and common software, used to exclude irrelevant files.
PS> Get-FileHash .\exhibit-01.E01 -Algorithm SHA256
$ sha256sum exhibit-01.ddKnown-hash sets
A computer holds hundreds of thousands of operating-system and program files. By comparing their values with known-hash collections — such as those published by standards institutes — the examiner can exclude them automatically and focus on user-created files. In the same way, collections of values of known illegal files make it possible to identify them without viewing them one by one.
Hashes and integrity: pitfalls to avoid
Values computed too late, weak algorithms, the wrong files: the mistakes that take away the value of the hash seal.
The pages of this topic
Back to the overviewHashes and integrity: how it works
The properties that make a hash function suitable for forensic use and why MD5 and SHA-1 are no longer enough on their own.
Hashes and integrity: the step-by-step procedure
How hash values are computed, documented and verified during a forensic acquisition and in the later stages.
Hashes and integrity: value in court
How the hash value meets the requirement to preserve original data and prevent their alteration, and its limits before a judge.
Hashes and integrity: a case study
A dispute over a video filed in a lawsuit: how hash values settle the question of whether the copies match.
Hashes and integrity: the checklist
The essential checks for using hash values correctly during an acquisition and in the later stages.
Hashes and integrity: frequently asked questions
Short answers to the most common doubts about hash values, algorithms and the integrity of digital evidence.