Hashing and fingerprinting files

From meltedinhex/analyst-ai-pack · View interactive version

Hashing and fingerprinting files is an AI agent skill from the GitHub repository meltedinhex/analyst-ai-pack. Computes cryptographic and fuzzy fingerprints for malware samples: MD5/SHA-1/SHA-256 for exact identity, plus import hashing (imphash), section hashing, and fuzzy hashes (ssdeep, TLSH) to cluster related variants. Activates for requests to hash a sample, compute imphash, or fingerprint files for sim

How to use this skill

Skill file

Hashing and Fingerprinting Files

When to Use

Do not use cryptographic hashes alone to judge similarity — a single byte change yields a

completely different SHA-256; use fuzzy/import hashing for relatedness.

Prerequisites

pefile for imphash.

Safety & Handling

Workflow

Step 1: Compute cryptographic hashes

Generate MD5, SHA-1, and SHA-256. SHA-256 is the canonical identity for sharing; MD5/SHA-1 aid

lookups in legacy feeds.

python scripts/analyst.py hash sample.bin

Step 2: Compute structural hashes (PE)

For PE files, compute imphash (hash of the import table) and per-section hashes to pivot across

samples built from the same toolchain.

Step 3: Compute fuzzy/similarity hashes

Generate ssdeep and/or TLSH digests so near-duplicates can be matched even when bytes differ.

Step 4: Record and cross-reference

Store all digests with the sample metadata; query threat-intel feeds by SHA-256 and cluster by

imphash/fuzzy hash.

Validation

Pitfalls

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.