Identifying cryptographic routines in binaries

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

Identifying cryptographic routines in binaries is an AI agent skill from the GitHub repository meltedinhex/analyst-ai-pack. Identifies cryptographic algorithms embedded in a binary by scanning for well-known constants and tables (AES S-box, SHA-256/MD5 init constants, ChaCha sigma, CRC32 table, base64 alphabet). Activates for requests to identify crypto in a binary, find AES/SHA constants, or detect which encryption algo

How to use this skill

Skill file

Identifying Cryptographic Routines in Binaries

When to Use

encryption, config protection) by locating constant tables.

Do not use constant detection as proof of a specific mode/usage — it identifies the primitive,

not how it is applied. This skill reads the binary statically and executes nothing.

Prerequisites

Safety & Handling

Workflow

Step 1: Scan for crypto constants

python scripts/analyst.py scan sample.bin

Searches for AES S-box/Te tables, SHA-256 H/K init constants, MD5 init, ChaCha/Salsa `expand

32-byte k` sigma, the CRC32 polynomial table, and the base64 alphabet, reporting offsets.

Step 2: Corroborate with imports/strings

Pair constant hits with crypto API imports (CryptDecrypt, BCryptEncrypt, EVP_*) or library

strings to confirm.

Step 3: Locate the routine

Use the constant offset to find the referencing function for deeper reversing/key extraction.

Step 4: Document

Record which primitives are present and where, mapping to behavior (e.g., AES → file encryption).

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.