Diffing malware samples to find changes

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

Diffing malware samples to find changes is an AI agent skill from the GitHub repository meltedinhex/analyst-ai-pack. Compares two related malware samples to surface what changed between variants using section-level hashing, import-set differences, and fuzzy similarity scoring. Activates for requests to diff two samples, compare malware variants, or measure similarity between two binaries for variant tracking.

How to use this skill

Skill file

Diffing Malware Samples to Find Changes

When to Use

before a full BinDiff.

Do not use this as authoritative function-level diffing — that requires BinDiff/Diaphora on

disassembly. This skill does structural/statistical diffing and executes nothing.

Prerequisites

Workflow

Step 1: Structural diff

python scripts/analyst.py diff a.bin b.bin

Compares file size, per-section SHA-256 and entropy, and the import name sets, reporting added/

removed/changed sections and imports.

Step 2: Similarity score

Reports a byte-level similarity ratio and, if available, ssdeep/tlsh fuzzy-hash comparison scores.

Step 3: Prioritize changed regions

Changed sections (same name, different hash) and new imports are the high-value targets for deeper

disassembly diffing.

Step 4: Document

Record what changed and the similarity score to support variant/lineage tracking.

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.