SSDEEP explained in plain terms means understanding the fuzzy hash that recognises a file even after it has been changed, a tool from 2006 that turns any file into a short signature where similar files get similar signatures. The central question is why a hash would want to survive edits when a normal hash breaks at the first changed byte, and the answer is that malware authors tweak a few bytes to dodge exact matches, so SSDEEP gives analysts a way to catch the tweaked copy, and that catch is the whole point of the design.
SSDEEP is a fuzzy hashing program created by Jesse Kornblum, built on Andrew Tridgell’s spamsum algorithm for finding similar emails. It turns a file into a digest by cutting it into pieces with a rolling hash and hashing each piece, and it is built on the idea that a hash should follow the content, which means the design is meant for forensics above all, and that focus is what makes it unlike the hashes of its era.
This article explains what SSDEEP is, how it works, and where it runs in the real world.
Key takeaways
- SSDEEP is a fuzzy hash from 2006, by Jesse Kornblum.
- It is built on Tridgell’s spamsum email filter.
- It cuts files into pieces with a rolling hash.
- It scores similarity from 0 to 100.
- It is a standard tool in malware analysis.
What SSDEEP is
SSDEEP is a hash that turns a file into a short digest with one unusual promise, and that promise is what makes it unusual among hashes. Each piece of the file contributes one character, which means the digest reflects the file’s structure, and because unchanged pieces keep their characters, two similar files share long runs of their digests.
Its signature feature is context-triggered cutting. Most hashes split input at fixed sizes, but SSDEEP cuts wherever a rolling hash over the last seven bytes hits a trigger, which means the cuts follow the content itself, and because an edit shifts only the pieces around it, the rest of the digest survives.
The design was a reaction to the limits of exact hashing. Forensic examiners could only match files byte for byte, so Kornblum asked how a hash could survive insertion and deletion, because malware changes a few bytes to look new, and that practicality is what made SSDEEP worth building.
It became one of the best-known fuzzy hashes in the world, and it is named in every discussion of the field. SSDEEP is bundled in forensic toolkits and malware sandboxes, it scores pairs from 0 to 100, and it is still the first example engineers meet when they learn that a hash can measure similarity, which means the design survives as a tool even though it is nearly twenty years old.
Our guide to SHA-3 explains the exact hash that catches identical files, and our guide to hashing explains the wider family SSDEEP belongs to.
How SSDEEP works
Everything starts with the rolling hash, which watches the last seven bytes. SSDEEP slides a window over the input and updates a small hash at every byte, which means the trigger depends on the content, and because the window is only seven bytes, the cutting stays cheap.
Each step begins with a cut, which ends one piece and starts the next. SSDEEP cuts the input whenever the rolling hash equals minus one modulo the block size, which means fresh pieces arrive at irregular intervals, and because the intervals follow the data, an edit moves only nearby cuts.
The piece hash is what makes the design work as a whole. SSDEEP hashes each piece with FNV-1 and keeps only the low six bits, which means every piece becomes one base64 character, and because six bits fit one character, the digest stays short.
The block size spreads the effect further. SSDEEP chooses a block size so the first digest string lands between 32 and 64 characters, which means the digest scales with the file, and because a second digest runs at twice the block size, small files still get a usable signature.
The comparison is what turns digests into answers. SSDEEP compares two digests with an edit-distance score, which means shared runs of characters count for more, and because the score runs from 0 to 100, an analyst gets a number, not just a yes or no.
The result comes from the score, read out as a similarity from 0 to 100. SSDEEP treats a high score as a strong match, which means the answer is graded whatever the files, and that grade is exactly what a forensic examiner needs to triage a sample.

Comparing SSDEEP with other fuzzy hashes
SSDEEP is one of several fuzzy hashes built for matching changed files, and each was built with a different emphasis. TLSH is the trend-based hash built for clustering, sdhash is the entropy-based hash built for large corpora, and SSDEEP is the one built on context-triggered pieces for forensics, while each approach trades something for something else.
The table below sets out the main contrasts between the leading approaches.
| Aspect | SSDEEP | TLSH | sdhash |
|---|---|---|---|
| Output | Short digest | 70-char digest | Bloom filters |
| Core step | Rolling hash cuts | Quartile trends | Entropy features |
| Comparison | Edit distance | Distance score | Similarity score |
| Designed for | Forensics | Clustering | Large corpora |
| Best for | Changed malware | File triage | Disk images |
The practical result is that SSDEEP is the right choice for changed malware, TLSH suits file triage, and sdhash fits disk images instead.
Where SSDEEP is used
Malware analysis uses it to link variants. An analyst who fingerprints a new sample can compare it with known families, because a variant shares most of its bytes with its parent, and that sharing is the reason SSDEEP earns its keep in sandboxes.
Forensics uses it to find changed evidence. An examiner who hashes a seized drive can spot files that match known contraband even after edits, because the digest survives small changes, and that survival is the reason SSDEEP appears in forensic toolkits.
Incident response uses it to triage droppers. A responder who sees a suspicious binary can check it against a library of fuzzy hashes, because a fast score beats a full reverse-engineering session, and that speed is the reason SSDEEP appears in triage playbooks.
Spam filtering uses its ancestor to catch near-copies. Tridgell’s spamsum, the algorithm SSDEEP descends from, matches emails to known spam, because spam is tweaked to dodge exact filters, and that tweaking is the reason fuzzy hashing runs in mail pipelines.
Teaching uses it as the fuzzy example. Courses introduce SSDEEP when they explain that a hash can be similarity-preserving, because it is the clearest case of the idea in a real tool, and a student who understands SSDEEP understands why exact hashes are not enough.
Strengths and limits
The greatest strength of SSDEEP is its tolerance for edits. A digest that survives insertions, deletions and small changes gives analysts a match where an exact hash gives nothing, and that strength is real, measured in the malware families it links and confirmed by the toolkits that ship it.
It is also a strength that the design is tiny to run. A rolling hash and a few FNV steps is a design any machine can afford, and that cheapness is worth more than cleverness in a field where a hash that needs a server is a hash nobody runs on a seized laptop.
The limits are real, though, and the biggest is the size floor. SSDEEP needs enough content to cut into pieces, which means tiny files and heavily rewritten files score poorly, and a system that must match small inputs must use a different method instead.
SSDEEP checklist
- Use SSDEEP for fuzzy matching, never for security or passwords.
- Remember it outputs a short digest from hashed pieces.
- Note the rolling hash watches the last seven bytes.
- Compare it with TLSH to see two kinds of fuzzy hash.
- Study the cutting, which is what makes digests survive edits.
- Check the file size, since tiny files score poorly.
- Keep real secrets behind cryptographic hashes.
- Read Kornblum’s paper to see how the pieces were built.
- Choose exact hashing when a file must match byte for byte.
Frequently asked questions
What is SSDEEP in simple terms?
It is a 2006 fuzzy hash that turns a file into a short digest, so files that are mostly the same get digests that are mostly the same.
Who created SSDEEP?
Jesse Kornblum, who built it on Andrew Tridgell’s spamsum algorithm and presented it at the DFRWS conference in 2006.
How is SSDEEP different from a normal hash?
A normal hash changes completely when one byte changes, but SSDEEP cuts the file into pieces, so an edit affects only the pieces around it.
Is SSDEEP still secure?
It is fast and well studied, but it is a similarity hash, not a cryptographic one, so it must never guard secrets or signatures.
Where is SSDEEP used?
In malware analysis, in digital forensics, in incident response, in spam filtering’s ancestor spamsum, and in teaching about fuzzy hashing.
When should I use SSDEEP?
When you need to match files that may have been tweaked, when you triage malware samples, or when you study similarity-preserving hashes.
The bottom line
SSDEEP explained in one line is this: the hash that survives edits, a 2006 design of rolling cuts and piece hashes that let analysts catch changed malware and taught the field that a hash can measure likeness.
It is proof that a hash need not be exact to be useful, and the reason it still matters is that every fuzzy hash designed since has been judged partly by the lesson SSDEEP taught.
This article is general information about how SSDEEP works, not advice about choosing encryption for a particular device or system.







