Extracting config from a running sample

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

Extracting config from a running sample is an AI agent skill from the GitHub repository meltedinhex/analyst-ai-pack. Extracts an embedded malware configuration (C2 hosts, ports, campaign IDs, keys) from a process memory dump by locating decrypted config structures and decoding common obfuscation layers. Activates for requests to extract malware config from a memory dump, recover C2 settings from a running sample,

How to use this skill

Skill file

Extracting Config From a Running Sample

When to Use

Do not use this to detonate the sample — it consumes a dump already captured in an isolated

sandbox. For static-only config decryption, use the dedicated config-decryptor workflow.

Prerequisites

Safety & Handling

Workflow

Step 1: Hunt config indicators

python scripts/analyst.py hunt process.dmp

Scans for URLs, IPv4:port pairs, mutex-like tokens, base64 blobs, and printable key/value

candidates in decrypted regions.

Step 2: Decode obfuscation layers

For candidate blobs, try common transforms (single-byte XOR brute force, base64) and re-scan the

decoded output for endpoints.

Step 3: Structure and validate the config

Assemble recovered fields into a structured config and sanity-check (valid hosts, plausible

ports, consistent campaign IDs).

Step 4: Defang and report

Defang hosts/URLs and document the offsets where the config was recovered.

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.