Building a sample management workflow

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

Building a sample management workflow is an AI agent skill from the GitHub repository meltedinhex/analyst-ai-pack. Establishes a disciplined malware sample repository: content-addressed storage by hash, encrypted/password-protected archiving, consistent metadata records, and chain-of-custody tracking so samples are reproducible and safe to handle. Activates for requests to organize a malware repository, manage s

How to use this skill

Skill file

Building a Sample Management Workflow

When to Use

Do not use original filenames or loose folders as the organizing principle — names are

attacker-controlled and collide; address samples by hash.

Prerequisites

Safety & Handling

auto-execute or be scanned/quarantined by host AV.

Workflow

Step 1: Content-address on intake

On receipt, compute SHA-256 and store the sample under a path derived from its hash

(e.g., samples/ab/cd/<sha256>), preventing duplicates and name collisions.

python scripts/analyst.py intake sample.bin --source "phishing-case-42" --store ./samples

Step 2: Record metadata

Write a metadata record per sample: hashes, original name, source, intake date, case ID,

file type, and analyst — kept next to the sample or in an index.

Step 3: Archive safely

Wrap the sample in a password-protected archive; keep the inert copy out of host AV's reach and

the metadata in plaintext for searchability.

Step 4: Maintain chain of custody

Append-only log each access/action (who, when, what) so the sample's handling is auditable.

Step 5: Index and search

Build a searchable index over metadata so samples can be found by hash, family, source, or case

without touching the raw bytes.

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.