ssdeep
ssdeep is a recursive piecewise hashing tool for computing and matching Context Triggered Piecewise Hashes (fuzzy hashes). It compares similar but not identical files, identifying modified versions even with insertions, modifications, or deletions.
Description
ssdeep is useful in forensics investigations for comparing files that are similar but not identical, unlike traditional hashes like md5sum or sha1sum. It employs fuzzy hashing to detect modified versions of known files where data has been inserted, modified, or deleted.
The tool provides multiple packages: ssdeep for the main binary, libfuzzy2 for the library, and libfuzzy-dev for development headers. It supports various modes for matching files or directories against known hashes or signatures.
Key applications include forensic analysis to cluster similar files and perform recursive comparisons, aiding in identifying variants of malware or altered documents.
How It Works
ssdeep computes Context Triggered Piecewise Hashes (fuzzy hashes), a method for comparing similar but not identical files by breaking them into piecewise chunks and generating rolling hashes that capture structural similarities despite changes like insertions, deletions, or modifications.
Installation
sudo apt install ssdeepFlags
Examples
ssdeep -hssdeep -m known_hashes.txt file1 file2ssdeep -k signatures.txt *.sigssdeep -d /path/to/directoryssdeep -p /path/to/directoryssdeep -g *.txtssdeep -r /path/to/dir