Reverse engineering binaries with binary ninja

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

Reverse engineering binaries with binary ninja is an AI agent skill from the GitHub repository meltedinhex/analyst-ai-pack. Reverse engineers binaries with Binary Ninja using its analysis stack and Python API to enumerate functions, navigate IL levels (LLIL/MLIL/HLIL), and automate annotation and extraction. Activates for requests to reverse a binary with Binary Ninja, script the Binary Ninja API, or work with its interm

How to use this skill

Skill file

Reverse Engineering Binaries With Binary Ninja

When to Use

(function enumeration, IL traversal, annotation, extraction).

Do not use the headless API to execute the sample — Binary Ninja performs static analysis. Run

in an isolated environment and treat inputs as malicious.

Prerequisites

generates a script skeleton if the API is not importable).

Safety & Handling

Workflow

Step 1: Generate an analysis script skeleton

python scripts/analyst.py skeleton --emit functions,strings --out bn_extract.py

Emits a Binary Ninja Python script that opens a view, iterates functions, and exports

functions/strings to JSON using the real API (open_view, bv.functions, bv.get_strings).

Step 2: Choose the IL level

Use LLIL for close-to-assembly, MLIL for variable/SSA reasoning, and HLIL for readable

pseudo-code; traverse instructions and operands programmatically.

Step 3: Automate annotation

Rename symbols (func.name), add comments (bv.set_comment_at), and create tags for findings.

Step 4: Run and aggregate

Execute the script (headless or in the UI console) and aggregate the JSON output.

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.