ida-reverse
Helps your agent analyze computer programs at a low level. It investigates the code to find security flaws or understand how it works.
What it does
This tool helps analyze computer programs (executable files) to understand how they work internally. It decompiles code, shows instructions, tracks data flow, and finds connections between different parts of the program.
When to use it
- ✓When you need to understand a program without having the source code.
- ✓To investigate how a program handles data.
- ✓When looking for vulnerabilities or suspicious behavior in an executable.
Example of what to ask your AI
“Analyze the file 'my_program.exe' and tell me which functions it calls.”
Want more? Open the sections below.
How to use
The easiest way: copy the message below and paste it into Claude, ChatGPT, Cursor or any AI. It reads the skill and follows the instructions.
Skill link
Ready-to-paste message
How it works
The tool uses IDA Pro, a specialized reverse engineering program. It loads the executable file and applies techniques like decompilation and data flow analysis to reveal the program's structure and behavior.
Installation
Easiest way: copy the skill link and paste it into Claude, ChatGPT or Cursor asking it to follow the instructions.
In the terminal (Claude Code, Codex, Cursor), in your project folder:
npx skills add sickn33/agentic-awesome-skills --skill ida-reverseOr download just the file:
curl -L https://raw.githubusercontent.com/sickn33/agentic-awesome-skills/main/plugins/agentic-awesome-skills-claude/skills/ida-reverse/SKILL.md -o SKILL.mdTechnical content (original SKILL.md)
Original text by the author, straight from GitHub.
Bundled upstream support
Supporting files are included at skill-relative paths. See UPSTREAM-NOTICE.md for their pinned sources, licenses, hashes, and import changes.
Supporting material availability
These paths remain unavailable in this catalog copy:
<support-root>/scripts/start.ps1<support-root>/scripts/install-autostart.ps1
Do not invoke a step that requires one of these files. Obtain the original material and review its dependencies, license, and effects before use. Independent inline steps and the bundled helpers can proceed within the user’s authorized scope.
IDA Pro 逆向分析技能
When to Use
- Deep static analysis of a compiled target where IDA is available.
- Tracking data flow or cross-references through large binaries.
已知问题与反思(必读)
踩过的坑
idb_open(旧名idalib_open)不要直接靠部分 AI 客户端 MCP 调用- 部分代码 AI 客户端 的 MCP 客户端对 open 类工具的 output schema 校验有 BUG
- 报错:
Structured content does not match the tool's output schema - 解决办法:使用
scripts/open.ps1脚本通过 HTTP API 直调,绕过 MCP 校验层 - 当前 ida-pro-mcp 2.x 工具名为
idb_open/idb_list/idb_save(不再是idalib_*) - 文件打开后返回
session_id(database),后续工具调用需带该 session
C:\Windows\System32\文件无权限打开- idalib 无法直接读取 System32 目录下的文件
- 解决办法:
open.ps1自动检测并复制到临时目录目录后再打开
启动服务器命令阻塞对话
idalib-mcp启动后会持续输出 INFO 日志到控制台- 解决办法:使用
scripts/start.ps1(-WindowStyle Hidden后台静默启动) - 脚本会等待服务就绪后自动退出,不阻塞对话
MCP 服务器名不能用横线
- 之前用
ida-pro-mcp作为服务器名,可能引起工具注册问题 - 当前配置:服务器名
idapro,工具前缀idapro_*
- 之前用
Remote HTTP vs Local Stdio
type:"local"(stdio)模式:idalib_open同样有 schema 校验问题type:"remote"(HTTP)模式:可以先用脚本直开文件,再用 MCP 工具- 当前方案:Remote HTTP 模式
PR #389 修复了部分 schema 问题
- 作者 mrexodia 在 issue #388 后通过 PR #389 合并了修复
- 修复了 HTTP 模式下的 structuredContent schema,但 部分代码 AI 客户端 侧校验仍有问题
- 已安装最新
main分支版本
idalib 超时留下孤儿 worker 进程锁文件
- 第一次
open.ps1超时后,idalib 的 python worker 子进程可能变成孤儿,咬着.id0/.id1/.nam不放 - 后续任何工具或手动拖入 IDA GUI 都会报"权限不足"
- 禁止
taskkill /F /T杀进程树——/T会把 GUIida.exe子进程一起干掉 - 解决办法:
start.ps1只在端口无人监听、或tools/list快速返回但缺py_eval(旧 supervisor)时替换 managed supervisor;RPC 超时且 13337 仍在听视为忙,不杀 - 兜底:
open.ps1检测到旧库被锁自动复制到 Temp 并加 GUID 前缀
- 第一次
带自动分析打开看起来像卡死
idalib_open(run_auto_analysis=true)可能长时间不回包,但后端实际上仍在继续打开和分析- 之前用户侧看到的是“PowerShell 一直无输出”,容易误判成脚本卡死
- 当前解决办法:
open.ps1新增-TimeoutSeconds,并改为后台请求 + 前台轮询 + 定时进度输出 - 轮询到会话已就绪时会提前返回
OK:文件名:session_id,超时则返回ERR:open_timeout_xxs
HTTP MCP 会在登录后静默退出
- Cursor/Claude 的
type: http不会代为拉起进程;旧计划任务只在登录时跑一次 pythonw无控制台,崩溃时 Application 日志也是空的- 解决办法:
start.ps1默认健康则复用;watchdog.ps1每分钟巡检;日志在%LOCALAPPDATA%\reverse-skill\ida-mcp\ - 安装:
scripts/install-autostart.ps1。Cursor 若启动时端口还没起来,仍需在 MCP 面板手动刷新一次
- Cursor/Claude 的
工作流程原则
| 步骤 | 做什么 | 用什么 |
|---|---|---|
| 1 | 确保 HTTP 服务器在运行 | scripts/start.ps1(无参数) |
| 2 | 打开目标二进制文件 | scripts/open.ps1 -Path "xxx.exe" |
| 3 | 使用 MCP 分析工具 | 直接调用 idapro_* / HTTP tools(约 65 个,视版本而定) |
| 4 | 分析完毕 | 工具自动可用 |
脚本资源
start.ps1 — 启动 MCP HTTP 服务器
路径:scripts/start.ps1
- 自动解析
IDADIR(环境变量 / 便携版桌面路径 / 常见安装路径) - 优先用 IDA 自带
Python314\python.exe -m ida_pro_mcp.idalib_supervisor - 默认先探测
http://127.0.0.1:13337/mcp,健康则输出OK:<n>:reuse并退出 - 13337 在听但
tools/list超时 →WARN:busy/OK:busy:reuse,不杀(supervisor 单线程,开库时无法回包) - 仅在端口无人监听、或快速返回且缺
py_eval时替换 managed supervisor;永不杀ida.exe,不用taskkill /T - GUI 占用 13337 时输出
WARN:gui_busy并退出,不另起 supervisor - 成功输出
OK:<工具数>(当前约 66),失败输出ERR:timeout - supervisor 日志:
%LOCALAPPDATA%\reverse-skill\ida-mcp\supervisor.log - 服务器在后台运行,不阻塞对话
调用方式:
powershell -File "<skill-root>\ida-reverse\scripts\start.ps1"
watchdog.ps1 / install-autostart.ps1 — 保活
watchdog.ps1:探测 13337,健康则OK:<n>:reuse,挂了才调用start.ps1install-autostart.ps1:注册计划任务reverse-skill-ida-mcp(登录 + 每分钟)- 日志:
%LOCALAPPDATA%\reverse-skill\ida-mcp\watchdog.log
open.ps1 — 打开二进制文件
路径:scripts/open.ps1
- 通过 HTTP API 直调
idb_open,绕过 MCP schema 校验 - 自动检测 System32 路径并复制到临时目录
- 自动清理同名旧数据库文件(
.id0/.id1/.nam/.til/.i64) - 旧库被锁时自动降级:复制到 Temp 加 GUID 前缀后打开,不报错
- 将打开请求放到后台执行,避免长时间同步等待导致脚本无响应
- 支持
-TimeoutSeconds,超时后返回ERR:open_timeout_xxs,不会无限卡住 - 每隔 10 秒输出一次
INFO:opening:已用时/超时秒数,便于判断仍在分析中 - 成功输出
OK:文件名:session_id,降级时加(temp copy)标记 - 失败时自动重试走 Temp 副本
调用方式:
…
FAQ
What is reverse engineering?
It's the process of taking apart a product (in this case, a computer program) to understand how it was made and how it works, without having access to the original plans (the source code).
Do I need to have IDA Pro installed?
The tool utilizes IDA Pro's capabilities, but you don't need to install it separately. The tool handles that.
What types of files can it analyze?
It can analyze common executable files on systems like Windows (PE), Linux (ELF), and macOS (Mach-O).
Details
Original description by the author
Reverse engineer binaries with IDA Pro: decompilation, disassembly, data-flow tracking, cross-references, and IDA MCP automation for deep static analysis of PE/ELF/Mach-O targets.
Popularity
- GitHub stars
- 48k
- Ranking position
- #3305
- License
- MIT
- Updated
- 10/15/2026
Comments
- …
More skills from this repository
00-andruia-consultant
Helps your agent start or improve AI projects. It analyzes code, suggests tools, and creates action plans in Spanish.
sickn33/agentic-awesome-skills
007
Lets your agent perform security audits and threat modeling. It's useful for protecting projects against attacks and vulnerabilities.
sickn33/agentic-awesome-skills
10-andruia-skill-smith
Helps your agent create or improve AI tools. It defines how tools work, writes documentation, and validates the structure.
sickn33/agentic-awesome-skills
20-andruia-niche-intelligence
Lets your agent create a summary about a specific industry. It's useful for understanding the context, rules, usage patterns, and risks of a project, using reliable sources.
sickn33/agentic-awesome-skills
Similar skills
django-security
Helps your agent implement security practices in Django applications. It focuses on authentication, authorization, and prevention against common attacks, ensuring more secure code.
affaan-m/ECC
laravel-security
Helps your agent secure Laravel applications against threats. Implements security practices for authentication, authorization, and common attack prevention.
affaan-m/ECC
module-regression
Helps your agent manage changes in large projects. Ensures code changes in one part don't break other parts.
affaan-m/ECC