somesota.

Toolset

Malware similarity cheat sheets

Three tiers. Exact PE fingerprints, then fuzzy byte similarity, then function-level code similarity.

Which tier answers which question

Question Tier Methods Cost
Were these files built with the same toolchain, importing the same APIs, or are they the same file re-signed? 1 · Fast fingerprints Rich hash, imphash, Authentihash Seconds, exact match
Do these files share large parts of their bytes? 2 · Fuzzy similarity ssdeep, TLSH Seconds, similarity score
Do these samples share functions, across a whole collection? 3 · Code similarity MCRIT Disassembly and an index
What exactly changed between these two builds? 3 · Code similarity BinDiff Disassembly of both, then graph matching

Tier 1 — Fast fingerprints

Each fingerprint hashes one structure of the PE file.

Tier 1 cheat sheet: the Rich header hash fingerprints the toolchain, the imphash fingerprints the ordered import list, and the Authentihash fingerprints the file content without its signature

Tier 2 — Fuzzy similarity

Fuzzy hashes give a score. Two files that differ by a few bytes still score close.

Tier 2 cheat sheet: ssdeep cuts the file into content-dependent regions and compares the ordered sequence, TLSH builds a fixed-length statistical profile of byte patterns and compares distances

Tier 3 — Advanced code similarity

Code similarity works on disassembled functions. It survives recompilation and small code changes that break every byte-level hash.

Tier 3 cheat sheet: MCRIT disassembles many samples, hashes each function with PicHash and MinHash and indexes them for fast search; BinDiff disassembles two binaries, matches their function graphs and reports matched and unmatched functions

References