Automating analysis with r2pipe

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

Automating analysis with r2pipe is an AI agent skill from the GitHub repository meltedinhex/analyst-ai-pack. Automates radare2/rizin analysis through r2pipe to script function enumeration, string and import extraction, and cross-reference queries across samples programmatically. Activates for requests to automate radare2 with r2pipe, script rizin analysis, or batch-extract functions and xrefs from binaries

How to use this skill

Skill file

Automating Analysis With r2pipe

When to Use

programmatically, across one or many samples.

Do not use r2 to debug/run the sample here — this skill drives static analysis commands

(aaa, aflj, izj, iij). Run inside an isolated environment.

Prerequisites

reports unavailability if absent).

Safety & Handling

Workflow

Step 1: Confirm r2pipe availability

python scripts/analyst.py check

Reports whether r2pipe and an r2/rizin binary are available.

Step 2: Extract an analysis summary

python scripts/analyst.py summary sample.bin

Opens the binary, runs analysis (aaa), and collects functions (aflj), imports (iij), and

strings (izj) as structured JSON.

Step 3: Query cross-references

For a function of interest, gather xrefs to/from to map call relationships.

Step 4: Aggregate

Combine per-sample summaries for comparison and signature development.

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.