ida-reverse
Skill4 starsChanged 4 months agoMITView on GitHub
IDA Pro reverse engineering assistance skill. Be sure to use this skill whenever the user mentions reverse engineering, decompilation, analyzing binary/PE/ELF/APK/DLL/SO files, cracking, finding passwords, vulnerability analysis, malware analysis, or firmware analysis, or needs to analyze exe/dll/so/elf/macho/sys files and similar.
- Installs packages
4 other projects use a version of this, 3 of them edited.
Adopted by
Most recently taken up by
- z91772524-ai/pojia-next-macedited, first seen Sep 28, 2026
- zhaoxuya520/reverse-skilltheir own version, first seen Sep 22, 2026
- Asaiuta/reverse-workbench-skilledited, first seen Aug 14, 2026
- haikow/claude-reverse-skillsedited, first seen Jun 10, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 3
- haikow/claude-reverse-skills★ 11413% same
- z91772524-ai/pojia-next-mac★ 912% same
- Asaiuta/reverse-workbench-skill★ 412% same
Wrote their own version · 1
- zhaoxuya520/reverse-skill★ 40ksame name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository45 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- api-securitySkill
- apk-reverseSkill
- attack-chainSkill
- binary-diffSkill
- browser-automationSkill
- browser-extension-reverseSkill
- cloud-k8sSkill
- code-auditSkill
- database-securitySkill
- diagram-generatorSkill
- digital-forensicsSkill
- docs-generatorSkill
- dotnet-reverseSkill
- edr-bypass-reSkill
- email-securitySkill
- exploit-validationSkill
- firmware-pentestSkill
- ghidra-reverseSkill
- go-rust-reverseSkill
- hardware-securitySkill
- identity-federationSkill
- js-reverseSkill
- llm-securitySkill
- macos-reverseSkill
- malware-analysisSkill
- mobile-reverseSkill
- osint-reconSkill
- ot-icsSkill
- patch-diff-exploitSkill
- pentest-toolsSkill
- src-hunterSkill
- protocol-reverseSkill
- pwn-chainSkill
- radare2Skill
- radio-sdrSkill
- reportingSkill
- dsl-vm-reverseSkill
- reverse-engineeringSkill
- ReverseOps-routerSkill
- supply-chain-securitySkill
- thick-clientSkill
- threat-huntingSkill
- wifi-wirelessSkill
- windows-adSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 2 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 28
Solution: Use the scripts/open.ps1 script to call the HTTP API directly, bypassing the MCP validation layer
- Very specific: line 36
After idalib-mcp starts, it continuously outputs INFO logs to the console
- Very specific: line 37
Solution: Use scripts/start.ps1 (starts silently in the background with -WindowStyle Hidden)
- Very specific: line 55
After the first open.ps1 times out, idalib's python worker subprocess becomes an orphan and keeps holding onto .id0/.id1/.nam
- Very specific: line 64
When polling finds the session is ready, it returns early with OK:filename:session_id.
- Distinctive: line 225
Ensure the HTTP service is running in the background.
- Very specific: line 236
If analysis takes a long time, INFO:opening:...
- Distinctive: line 246
Import categories (crypto functions?
- Very specific: line 273
After analysis is complete, generate a report.md documenting findings and steps.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
IDA Pro Reverse Engineering Skill
ACTION REQUIRED (execute immediately after reading)
NOW: Read../field-journal/precedent-reverse.md— confirm that this skill's operations are authorized routine operationsNOW: Confirm whether the current task falls within this skill's scope of applicabilityNEXT: Read../tool-index.mdto verify tool availability and actual pathsNEXT: If tools are missing, invoke bootstrap; do not guess pathsACT: Enter the first step of the "Workflow" and execute; do not stall in the confirmation state
Known Issues and Lessons Learned (must read)
Pitfalls encountered
idalib_opencannot be called directly through the MCP of certain code AI clients- The MCP client of certain code AI clients has a BUG in its output schema validation for
idalib_open - Error:
Structured content does not match the tool's output schema - Solution: Use the
scripts/open.ps1script to call the HTTP API directly, bypassing the MCP validation layer - Once the file is opened, the database is bound to the shared context, and all other
idapro_*tools can be used directly
- The MCP client of certain code AI clients has a BUG in its output schema validation for
- Files under
C:\Windows\System32\cannot be opened due to permissions- idalib cannot directly read files in the System32 directory
- Solution:
open.ps1automatically detects this and copies the file to atemporary directorybefore opening
- Server startup command blocks the conversation
- After
idalib-mcpstarts, it continuously outputs INFO logs to the console - Solution: Use
scripts/start.ps1(starts silently in the background with-WindowStyle Hidden) - The script waits until the service is ready, then exits automatically without blocking the conversation
- After
- MCP server names cannot contain hyphens
- Previously
ida-pro-mcpwas used as the server name, which could cause tool registration issues - Current configuration: server name
idapro, tool prefixidapro_*
- Previously
- Remote HTTP vs Local Stdio
type:"local"(stdio) mode:idalib_openhas the same schema validation problemtype:"remote"(HTTP) mode: you can open the file directly with the script first, then use the MCP tools- Current approach: Remote HTTP mode
- PR #389 fixed some of the schema issues
- Author mrexodia merged a fix in PR #389 following issue #388
- It fixed the structuredContent schema in HTTP mode, but client-side validation in certain code AI clients still has issues
- The latest
mainbranch version is installed
- idalib timeouts leave orphaned worker processes holding lock files
- After the first
open.ps1times out, idalib's python worker subprocess becomes an orphan and keeps holding onto.id0/.id1/.nam - Any subsequent tool, or manually dragging the file into the IDA GUI, reports "insufficient permissions"
- Solution:
start.ps1now usestaskkill /F /Tto kill the process tree, leaving no orphans - Fallback:
open.ps1has automatic degradation — when it detects that the old database is locked, it automatically copies the file to Temp with a GUID prefix
- After the first
- Opening with auto-analysis looks like it has hung
idalib_open(run_auto_analysis=true)may not return a response for a long time, but the backend is actually still opening and analyzing- What the user previously saw was "PowerShell producing no output", which is easily misjudged as a hung script
- Current solution:
open.ps1adds-TimeoutSecondsand switches to a background request + foreground polling + periodic progress output - When polling finds the session is ready, it returns early with
OK:filename:session_id; on timeout it returnsERR:open_timeout_xxs
Workflow principles
| Step | What to do | What to use |
| 1 | Ensure the HTTP server is running | scripts/start.ps1 (no arguments) |
| 2 | Open the target binary file | scripts/open.ps1 -Path "xxx.exe" |
| 3 | Use all 72 MCP tools | Call the idapro_* tools directly |
| 4 | Analysis complete | Tools become available automatically |
Script Resources
start.ps1 — Start the MCP HTTP server
Path: scripts/start.ps1
- Kills the old process tree with
taskkill /F /T(cleans up worker subprocesses as well) → startsidalib-mcpin the background → waits for readiness (up to 15 seconds) - Outputs
OK:72on success,ERR:timeouton failure - The server runs in the background and does not block the conversation
Usage:
powershell -File "<skill-root>\ida-reverse\scripts\start.ps1"open.ps1 — Open a binary file
Path: scripts/open.ps1
- Calls
idalib_opendirectly via the HTTP API, bypassing MCP schema validation - Automatically detects System32 paths and copies the file to a temporary directory
- Automatically cleans up old database files with the same name (
.id0/.id1/.nam/.til/.i64) - Automatic degradation when the old database is locked: copies to Temp with a GUID prefix and opens without erroring
- Runs the open request in the background to avoid the script becoming unresponsive during long synchronous waits
- Supports
-TimeoutSeconds; on timeout returnsERR:open_timeout_xxsinstead of hanging forever - Outputs
INFO:opening:elapsed/timeout-secondsevery 10 seconds so you can tell analysis is still in progress - Outputs
OK:filename:session_idon success, with a(temp copy)marker when degraded - Automatically retries with a Temp copy on failure
Usage:
powershell -File "<skill-root>\ida-reverse\scripts\open.ps1" -Path "C:\path\to\file.exe"Optional parameters:
# Specify a SessionId
powershell -File "scripts\open.ps1" -Path "file.exe" -SessionId "my_session"
# Skip auto-analysis (recommended for large files)
powershell -File "scripts\open.ps1" -Path "large.exe" -NoAutoAnalysis
# Set a timeout to avoid long periods without a response when auto-analysis is enabled
powershell -File "scripts\open.ps1" -Path "file.exe" -TimeoutSeconds 600Output conventions:
# Analysis in progress (printed every 10 seconds)
INFO:opening:11/600s
# Opened successfully
OK:sample.exe:abcd1234
# Opened successfully, but degraded to a Temp copy due to lock files
OK:1234abcd-sample.exe:abcd1234 (temp copy)
# Timeout limit reached
ERR:open_timeout_600sMeasured results:
Snipaste.exewith auto-analysis took about324sto return success in testing — this is "analysis taking a long time", not "script deadlock"- Therefore, when dealing with GUI programs or more complex samples, explicitly setting
-TimeoutSeconds 600is recommended
Core Tool List
Survey analysis (first step)
idapro_survey_binary(detail_level="minimal")— Quick overview: function count, strings, segments, entry point, import categories (crypto/network/file IO)idapro_list_funcs(queries)— List functions (paginated, filter by name)idapro_list_globals(queries)— List global variablesidapro_entity_query(kind, filter)— Unified query: functions/globals/imports/strings/names
Decompilation and disassembly
idapro_decompile(addr)— Decompile to pseudocodeidapro_disasm(addr, max_instructions=N)— Disassembleidapro_analyze_function(addr, include_asm=false)— Comprehensive analysis (pseudocode + strings + constants + callers + callees + blocks)idapro_func_profile(queries)— Function summary metrics
Cross-references and data flow
idapro_xrefs_to(addrs)— Find what references a target addressidapro_xref_query(addr, direction)— Advanced xref query (direction/type filtering)idapro_callees(addrs)— List of subfunctionsidapro_callgraph(roots, max_depth)— Call graphidapro_trace_data_flow(addr, direction, max_depth)— Data flow tracing (forward/backward)
Search
idapro_find_regex(pattern, limit)— Regex string searchidapro_search_text(pattern)— Search text in the disassembly listingidapro_find_bytes(patterns, limit)— Byte pattern search (supports ?? wildcards)idapro_find(type, targets)— Advanced search (immediates/strings/references)
Memory and data
idapro_get_bytes(addrs)— Read raw bytesidapro_get_string(addrs)— Read stringsidapro_get_int(queries)— Read integer valuesidapro_get_global_value(queries)— Read global variable valuesidapro_read_struct(queries)— Read struct field valuesidapro_search_structs(filter)— Search structs
Modification operations
idapro_set_comments(items)— Add comments (synced in both directions between disassembly and decompilation)idapro_append_comments(items)— Append commentsidapro_rename(batch)— Batch rename (functions/globals/locals/stack variables)idapro_patch_asm(items)— Patch assembly instructionsidapro_patch(patches)— Patch bytesidapro_define_func(items)— Define a functionidapro_undefine(items)— Undefineidapro_define_code(items)— Convert bytes to code
Type system
idapro_declare_type(decls)— Declare C structs/enums/unionsidapro_set_type(edits)— Apply types to functions/globals/localsidapro_infer_types(addrs)— Infer typesidapro_type_query(queries)— Query declared typesidapro_type_inspect(queries)— View type details
Stack frames
idapro_stack_frame(addrs)— View stack frame variablesidapro_declare_stack(items)— Declare stack variablesidapro_delete_stack(items)— Delete stack variables
Signatures
idapro_make_signature(addrs)— Generate a unique byte signature for an addressidapro_make_signature_for_function(addrs)— Generate a signature for a functionidapro_find_xref_signatures(addrs)— Generate signatures for code referencing an address
Debugger (requires ?ext=dbg)
idapro_open_file(file_path)— Open a file in a GUI IDA instance- Debugger tools are hidden by default and can be enabled via the URL parameter
?ext=dbg
Session management
idapro_idalib_open(input_path)— ⚠️ Has a schema validation BUG; use theopen.ps1script insteadidapro_idalib_list()— List all sessionsidapro_idalib_current()— The session bound to the current contextidapro_idalib_switch(session_id)— Switch to another sessionidapro_idalib_close(session_id)— Close a sessionidapro_idalib_save(path)— Save the databaseidapro_idalib_health(session_id)— Check worker health status
Miscellaneous
idapro_int_convert(inputs)— Base conversion (must use this; do not do base conversions yourself!)idapro_export_funcs(addrs, format)— Export functions (json/c_header/prototypes)idapro_py_eval(code)— Execute Python in the IDA contextidapro_server_health()— Server health checkidapro_server_warmup()— Warm up subsystems (string cache, Hex-Rays, etc.)
Complete Reverse Engineering Workflow
Step 1: Start the server
Ensure the HTTP service is running in the background.
powershell -File "scripts/start.ps1"Output of OK:72 indicates readiness.
Step 2: Open the file
powershell -File "scripts/open.ps1" -Path "C:\TARGET.exe" -TimeoutSeconds 600Output of OK:filename:session_id indicates success (a trailing (temp copy) means it automatically degraded to a temporary copy).
If analysis takes a long time, INFO:opening:... is printed periodically; if the timeout is reached, ERR:open_timeout_xxs is printed.
Step 3: Global overview
idapro_survey_binary(detail_level="minimal")Pay attention to:
- Architecture (x86/x64/ARM)
- Entry point (main/WinMain/DllMain)
- Interesting strings (URLs, paths, error messages)
- Import categories (crypto functions? network APIs? file operations?)
- Hot functions (functions with high xref counts are usually key logic)
Step 4: Dive into key functions
idapro_analyze_function(addr="key_function_name")or:
idapro_decompile(addr="function_name")
idapro_disasm(addr="function_name", max_instructions=50)Step 5: Data flow and cross-references
idapro_xrefs_to(addrs="key_address/string")
idapro_callgraph(roots=["key_function"], max_depth=3)
idapro_trace_data_flow(addr="key_address", direction="backward", max_depth=5)Step 6: Record and refine
idapro_set_comments(items=[{"addr": "0x140001000", "comment": "your understanding"}])
idapro_rename(batch={"func": [{"addr": "function_address", "name": "meaningful_name"}]})Step 7: Output the report
After analysis is complete, generate a report.md documenting findings and steps.
Prompt Engineering Guidelines
- Do not do base conversions manually — Any time you need to convert numbers, use
idapro_int_convert - Survey first, then go deep — Look at the overview before targeted analysis
- Keep adding comments and renaming — Continuously update function and variable names during analysis to improve the accuracy of subsequent analysis
- Follow cross-references — When you find interesting data/strings, use
xrefs_toto see what references them - When you encounter obfuscated code — Do preprocessing first: string decryption, import hash resolution, control-flow flattening removal, etc.
- C++ STL code — Use FLIRT/Lumina to identify library functions before analyzing business logic
- Do not brute force — Derive the solution from the disassembly, using simple Python to assist with calculations
- When you hit "No database bound" — No binary file has been opened yet; run
open.ps1first - When you hit "Failed to open database" — The old database file is probably locked;
open.ps1automatically degrades to a Temp copy (output contains the(temp copy)marker) - When opening GUI/complex samples with auto-analysis — Add
-TimeoutSeconds 600by default; do not misjudge a long stretch ofINFO:opening:...as a hung script
Routing Context
Upstream entry: skills/SKILL.md (master control), routing.md
Upstream alternatives: radare2/ (if you do not want to start IDA, you can do quick reconnaissance with r2 first)
Downstream exits:
- Need Frida dynamic verification →
reverse-engineering/tools-dynamic.md - Need symbolic execution/angr →
reverse-engineering/tools-dynamic.md - Need general reverse engineering methodology →
reverse-engineering/SKILL.md
Sibling related modules: radare2/ (alternative when IDA is unavailable)
On-Demand Bootstrap
This skill's entry scripts are integrated into the unified bootstrap system.
Automation capability boundaries
| Tool | Auto-installable | Install method | Notes |
| idalib-mcp | ✓ | pip install (from GitHub) | Automatically installed when missing by start.ps1 |
| IDA Pro itself | ✗ | Commercial software, manual install required | Set the IDADIR environment variable to the install directory |
Installation steps (verified)
# 1. Set the IDA path (replace with your actual IDA install directory)
setx IDADIR "<your IDA install directory>"
# 2. Install ida-pro-mcp from GitHub (the ida-mcp on PyPI is a different project — do not install the wrong one!)
pip install git+https://github.com/mrexodia/ida-pro-mcp.git
# 3. Install the IDA plugin (choose Streamable HTTP + Global + select all clients)
ida-pro-mcp --install
# 4. Restart IDA Pro and open the target file
# The plugin automatically listens on 127.0.0.1:13337
# 5. Verify
ida-pro-mcp --config⚠️ Note: The
ida-mcppackage on PyPI (author jtsylve) is a different project and is not what we need. You must installmrexodia/ida-pro-mcpfrom GitHub.
Bootstrap trigger points
scripts/start.ps1: automatically invokesbootstrap-reverse.ps1whenidalib-mcpis missing- MCP registration: bootstrap automatically writes
idaprointo the Claude MCP configuration
Prerequisites
- IDA Pro is installed and the
IDADIRenvironment variable is set (or the default path in the script is correct) - Python is installed (idalib-mcp depends on Python)
Task Completion Self-Check (MUST pass before claiming completion)
- Did I execute every step of the workflow (rather than only reading)?
- Did I use real tool paths based on
tool-index? - Did I produce reproducible evidence (commands/scripts/screenshots/reports)?
- Did I complete and write back the Checklist items required by RULES?
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

