Hashes and integrity · 03 Tools

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 SHA256 command and, in PowerShell, Get-FileHash.
macOS and Linux
The shasum -a 256 and sha256sum commands.
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.
terminale
PS> Get-FileHash .\exhibit-01.E01 -Algorithm SHA256
$ sha256sum exhibit-01.dd

Known-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.

Continue with
04 Pitfalls to avoid

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.

↑