Extracting encryption keys from binaries

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

Extracting encryption keys from binaries is an AI agent skill from the GitHub repository meltedinhex/analyst-ai-pack. Locates candidate encryption keys in a binary by finding high-entropy fixed-size regions (16/24/32 bytes) near cryptographic constants or crypto API references, and surfacing printable key/passphrase strings. Activates for requests to extract encryption keys, find an AES key in a sample, or recover

How to use this skill

Skill file

Extracting Encryption Keys From Binaries

When to Use

high-entropy blocks) and passphrase strings.

Do not use entropy alone as proof a region is a key — corroborate with proximity to crypto

constants/APIs and by attempting decryption. This skill reads the binary statically and executes

nothing.

Prerequisites

Safety & Handling

Workflow

Step 1: Find high-entropy key-sized regions

python scripts/analyst.py keys sample.bin

Slides a window of 16/24/32 bytes and reports regions whose entropy exceeds a threshold (likely

random key material), with offsets.

Step 2: Surface printable secrets

Extract printable strings that look like passphrases/hex keys (e.g., 32/64-hex, base64 of 16/32

bytes).

Step 3: Corroborate

Rank candidates by proximity to crypto constants/API references and confirm by decrypting a known

ciphertext.

Step 4: Document

Record candidate keys, sizes, offsets, and the corroborating evidence.

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.