ghidra-reverse – Agents & Automation skill for AI agents
Free/open reverse engineering with Ghidra (headless or GUI): decompilation, cross-references, scripting, and optional Ghidra MCP workflows when IDA is unavailable.
Install the ghidra-reverse skill with one command
Pick the tool you use, copy the command and paste it in your terminal. The skill lands in that tool's skills folder and is ready in your next session.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/ghidra-reverse-da642.tgz | tar xz -C ~/.claude/skills
Call it in Claude Code: /ghidra-reverse – then describe the task you want done.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/ghidra-reverse-da642.tgz | tar xz -C ~/.codex/skills
Call it in Codex: $ghidra-reverse – then describe the task you want done.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/ghidra-reverse-da642.tgz | tar xz -C ~/.hermes/skills
Call it in Hermes Agent: /ghidra-reverse – then describe the task you want done.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/ghidra-reverse-da642.tgz | tar xz -C ~/.deepcode/skills
Call it in DeepSeek: /ghidra-reverse – then describe the task you want done.
SKILL.md content
Ghidra Reverse Engineering
When to Use
- Static analysis of binaries without an IDA license.
- Bulk headless decompilation or scripted analysis across many binaries.
适用场景
- 无 IDA 许可证时的主逆向入口
- 批量 headless 分析 / CI 中反编译
- Ghidra 脚本(Java/Python Jython/PyGhidra)自动化
- 与
binary-diff/patch-diff-exploit的 ghidriff 联动
与 IDA 分工
| 需求 | 优先 |
|------|------|
| 已有 IDA MCP 深挖 | ida-reverse/ |
| 开源 / 批量 / 教学 | 本 skill |
| 仅 CLI 快速侦察 | radare2/ |
工作流
1. 项目与自动分析
□ 新建 Project → Import 文件 → Analyze(默认分析器)
□ 记录语言/编译器识别结果与基址
□ 标记入口、导出表、字符串 xref2. 关键函数
□ 从字符串 / 导入 API 反查
□ Decompile 窗口还原算法
□ 重命名函数/变量;写 Plate comment
□ 需要动态时交接 Frida/GDB(reverse-engineering 动态章)3. Headless(批量)
# 示例:analyzeHeadless 路径因安装而异,MUST 从 tool-index 取
analyzeHeadless /path/to/project Proj -import sample.bin -postScript ExportDecomp.py4. MCP(若已配置)
□ 确认 ghidra MCP 端口(常见 8765,以 tool-index 为准)
□ 用 MCP 工具拉反编译 / xrefs,禁止猜端口工具链
| 工具 | 用途 | 自举 |
|------|------|------|
| Ghidra | 反编译主工具 | 手动 release / 包管理器 |
| ghidra-mcp | AI 桥 | bootstrap 能力名 ghidra-mcp |
| ghidriff | 补丁差分 | 见 patch-diff-exploit |
参考
references/ghidra-cheatsheet.md../ida-reverse/../radare2/../binary-diff/
路由上下文
上游: MASTER R22
下游: 动态验证 → Frida/GDB;利用 → pwn-chain
同级: ida-reverse(商业深挖)
任务完成自检
- [ ] 是否基于真实 Ghidra/tool-index 路径?
- [ ] 是否标注函数地址与重命名?
- [ ] 是否有可复现步骤?
- [ ] Checklist / journal?
Limitations
- Decompiler output is less polished than IDA's for some architectures.
- Large firmware images may need significant RAM and patience.
> Adapted from [zhaoxuya520/reverse-skill](https://github.com/zhaoxuya520/reverse-skill) (MIT).
Related skills
- senior-prompt-engineer – Use when the user asks to optimize prompts, design prompt templates, evaluate LLM…
- github-workflow-automation – Patterns for automating GitHub workflows with AI assistance, inspired by [Gemini…
- gitlab-automation – Automate GitLab project management, issues, merge requests, pipelines, branches, and…
- gitops-workflow – Complete guide to implementing GitOps workflows with ArgoCD and Flux for automated…
- global-chat-agent-discovery – Discover and compare MCP servers and AI agents using Global Chat's cross-protocol…
- gmail-automation – Lightweight Gmail integration with standalone OAuth authentication. No MCP server…
- go-playwright – Expert capability for robust, stealthy, and efficient browser automation using…
- go-rod-master – Comprehensive guide for browser automation and web scraping with go-rod (Chrome DevTools…