ida-reverse

An IDA Pro assistant for examining compiled programs such as Windows executables, Linux binaries, Android libraries, and firmware files. IDA Pro is a tool that turns machine code into a form people can inspect.

In plain words
What is it for?
Use it to inspect, decompile, debug, compare, or investigate EXE, DLL, ELF, APK, SO, Mach-O, SYS, and firmware binaries.
Why use it?
It guides common reverse-engineering tasks and documents how to connect IDA to the assistant, handle restricted files, and work with the supported protocol.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/2233admin/reverse-skill-evolver/ida-reverse
Any agent
npx skills add 2233admin/reverse-skill-evolver --skill ida-reverse
Clone the repo
git clone --depth 1 https://github.com/2233admin/reverse-skill-evolver

Made for: Claude Code, Codex.

Per session 178 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,014 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00178 $0.03014
Opus 5 $0.00089 $0.01507
Sonnet 5 $0.00036 $0.00603
Haiku 4.5 $0.00018 $0.00301

Measured 2d ago against content hash 7d481173d64c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

ida-reverse scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/ida-reverse/SKILL.md · 220 lines

How it starts

The opening of the file, as written. The whole thing — 220 lines — stays where its author put it; the contents beside it link to each section on GitHub.

IDA Pro 逆向分析技能

当前调用边界(必读)

踩过的坑

  1. 原生 MCP 与 CLI 使用同一条真实链路

    • Codex 注册名为 idapro,地址默认是 http://127.0.0.1:13337/mcp
    • 原生 MCP 适合代理直接调工具;Python 命令 reverse-skill 适合登录安装、诊断和人工操作
    • CLI 先按 2026-07-28 调用 server/discover;现代服务使用逐请求元数据,旧服务才降级到 initialize / notifications/initializedMcp-Session-Id
  2. C:\Windows\System32\ 文件无权限打开

    • idalib 无法直接读取 System32 目录下的文件
    • 解决办法reverse-skill open 自动检测并复制到临时目录后再打开
  3. 启动服务器命令阻塞对话

    • idalib-mcp 启动后会持续输出 INFO 日志到控制台
    • 解决办法:使用 reverse-skill start;Python 用无窗口后台进程启动服务
    • 命令会等待服务就绪后自动退出,不阻塞对话
  4. MCP 注册名固定为 idapro

    • 服务器自身名称可以是 ida-pro-mcp;Codex 侧统一使用短注册名 idapro
    • 运行 reverse-skill register,不要手工漂移配置文件
  5. 传输固定为 Streamable HTTP

    • 当前方案不使用 stdio,IDA CLI 也不经过 PowerShell
    • 真正链路是 reverse-skill → HTTP MCP → idalib-mcp.exe → IDA
  6. 协议版本必须协商,不能写死服务端版本

    • 客户端优先使用已发布版 2026-07-28 的逐请求 _meta,并镜像 MCP-Protocol-Version / Mcp-Method / Mcp-Name / Mcp-Param-*
    • 遇到非现代响应才进入 legacy 初始化,接受 2025-11-252025-06-182025-03-26status 必须明确显示 era
    • 现代协议没有协议会话;IDA database ID 是应用层显式句柄,不等同于 Mcp-Session-Id
    • MRTR 的 requestState 必须原样回传且重试使用新的 JSON-RPC id;CLI 用 --input-responses-json / --request-state 显式完成该步骤
    • 规范映射、双时代流程和本机验证见 references/mcp-2026-07-28-dual-era.md
  7. 健康服务不能为了“重启”被误杀

    • reverse-skill start 先完成 MCP 初始化和 tools/list 健康检查
    • 服务健康时原样复用;只有显式传入 --replace-stale 时,才清理陈旧 idalib-mcp 进程树后启动新服务
  8. 打开和分析可能是长请求

    • idb_open(run_auto_analysis=true) 会等待 IDA 分析,应按样本规模设置根选项 --timeout
    • 超时是明确失败,不用吞错、盲重试或伪造成功会话

工作流程原则

步骤 做什么 用什么
1 注册并检查 Codex MCP reverse-skill registerstatus
2 确保 HTTP 服务在运行 reverse-skill start
3 打开目标二进制文件 reverse-skill open "xxx.exe"
4 调用动态发现的工具 原生 idapro MCP,或 reverse-skill call
5 分析完毕 reverse-skill close <session-id>

Python CLI

安装入口:<repo-root>\pyproject.toml;源码入口:python -m reverse_skill

Read the full file on GitHub · 220 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 220 lines · 178 tokens per session scan A 7d481173d64c

Subscribe to this mod's changes

ida-reverse is a skill published in the GitHub repository 2233admin/reverse-skill-evolver (13 stars, last pushed 22d ago), licensed MIT. It adds 178 tokens to every session and 3,014 once invoked, about $0.0009 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.

obra/superpowers · 37 tokens

auto-perf-optimize

Run agent-driven VS Code performance or memory investigations. Use when asked to launch Code OSS, automate a VS Code scenario, run the Chat memory smoke runner, capture renderer heap snapshots, take workflow screenshots, compare run summaries, or drive a repeatable scenario before heap-snapshot analysis.

microsoft/vscode · 62 tokens

chat-perf

Run chat perf benchmarks and memory leak checks against the local dev build or any published VS Code version. Use when investigating chat rendering regressions, validating perf-sensitive changes to chat UI, or checking for memory leaks in the chat response pipeline.

microsoft/vscode · 51 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens