IDA Pro deep analysis
When it applies
You have an in-scope binary (confirmed in scope.txt, a client-owned thick client/service, or a sample
you own — see tradecraft-scope-roe) and cheap triage (reverse-eng-binary-triage) has surfaced
functions worth real decompilation: auth/license logic, custom crypto or protocol parsers, a suspected
vulnerable sink, or a malware sample whose capabilities you must map. Use reverse-eng-radare2 for
fast CLI recon first; use reverse-eng-ghidra when there's no IDA license.
Why it works
Hex-Rays recovers near-source pseudocode, and IDA's cross-reference database ties every string,
import, and data item to the code that touches it — so you navigate by who uses this instead of
reading linearly. Renaming and retyping as you go compounds: each good name makes the next function
cheaper to read.
Method
- Set up the MCP bridge (agent-driven analysis). Install from GitHub — the PyPI
ida-mcp
package is a different project, do not install it:
```
pip install git+https://github.com/mrexodia/ida-pro-mcp.git
ida-pro-mcp --install # installs the IDA plugin + client config
ida-pro-mcp --config # verify
```
The plugin listens on 127.0.0.1:13337; tools appear under your MCP server name (e.g. idapro_*,
~65 tools depending on version). Headless (idalib supervisor) needs an idalib-licensed install;
otherwise run the plugin inside the GUI — same tools either way.
- Open the target. GUI: open the file, confirm
[MCP] ... port=13337in the output window.
Headless: open the database with the bridge's idb_open (ida-pro-mcp 2.x naming — no longer
idalib_*); it returns a session_id that later calls pass as database=.
- Survey before diving.
survey_binary(detail_level="minimal")→ architecture, entry point,
function count, strings, segments, categorized imports. **Record the import table before any
conclusion** — crypto / network / file-IO / registry / injection categories steer everything
downstream (for DLL/SYS also record the export table; an empty import table means likely dynamic
loading — verify with runtime API breakpoints). Full tool inventory: