Recipes

Vibe-reversing a binary in IDA Pro with Codex driving the IDA Pro MCP server

From README links · today

Security, Science & HardwareSoftware & DevOps

Codex queries IDA Pro's disassembly and decompiler to reverse a binary

What they did

They set up the ida-pro-mcp server so Codex could drive IDA Pro directly, then used it for 'vibe reversing': asking Codex to walk a target binary, decompile functions, follow cross-references, rename and retype variables, and leave comments in the database. Instead of clicking through IDA's UI, the agent issued MCP tool calls to read disassembly and Hex-Rays pseudocode, then wrote annotations back into the IDB. The workflow mirrors the project's demo video and the mcp-reversing-dataset repo, where the same binaries and prompts are published so the session can be reproduced. Codex acted as the reasoning layer over IDA's analysis, iterating function by function until the interesting logic was labeled and understood.

How it went

The session produced a progressively annotated IDA database with renamed functions and comments, and the reversing loop ran conversationally rather than through manual UI work. It is a demo-grade workflow: effective for triage and understanding, but the quality depends heavily on the model's reasoning and on IDA's own analysis being sound.

Worth knowing

Requires licensed IDA Pro 8.3+ (IDA Free unsupported), Python 3.11+, uv, and idalib activated globally via py-activate-idalib.py. The README now recommends the official Hex-Rays IDA MCP Server instead, and the GUI plugin path is slated for deprecation in favor of idalib-mcp. Expect slower first runs while uv resolves dependencies.

Wiring

Install IDA Pro 8.3+ with idalib, Python 3.11+, and uv. Activate idalib globally by running py-activate-idalib.py from the IDA install (paths differ per OS). Install the plugin for Codex via the mrexodia codex-marketplace, or run `ida-pro-mcp --config` to emit JSON for other MCP clients. Start IDA Pro with the target binary loaded so the MCP server can attach to the live database; Codex then calls MCP tools to read disassembly/decompilation and write names, types, and comments back into the IDB.

Try it yourself

Set up ida-pro-mcp for Codex in this repo: confirm Python 3.11+, install uv, activate idalib globally with py-activate-idalib.py, then run `codex plugin marketplace add mrexodia/codex-marketplace` and `codex plugin add ida-pro-mcp@mrexodia`. Open the target binary in IDA Pro, then ask Codex to list functions, decompile the main entry point, follow cross-references from suspicious imports, and rename/retype variables and functions as it goes, adding comments explaining each finding. Summarize the binary's purpose and any notable crypto or network logic at the end.

Source

Tools in this stack

Run this stack

Install the stack into this project. It writes AGENTS.md and the manifest, merges the MCP servers into .mcp.json, and — with --yes — runs the tool installs.

npx runchr install runchr/stack-codex-and-ida-pro-mcp
No CLI?curl -s https://api.runchr.com/api/recipes/runchr/stack-codex-and-ida-pro-mcp/manifest
System prompt
You are Codex driving IDA Pro through the ida-pro-mcp server to reverse a binary. Work function by function: read disassembly and Hex-Rays pseudocode, follow cross-references, and write names, types, and comments back into the IDB as you go, summarizing the binary's purpose and any notable crypto or network logic at the end.

This system prompt was generated from this stack's copy and tools. A person has not reviewed it.

The manifest is also at api.runchr.com/api/recipes/runchr/stack-codex-and-ida-pro-mcp/manifest.