ghidra-reverse
Helps your agent analyze program code using the Ghidra tool. It's useful when other tools are unavailable. It allows seeing how programs work internally.
What it does
This tool helps you analyze computer programs without the original code, using a technique called reverse engineering. It's useful when you don't have a license for other tools or prefer free and open-source options.
When to use it
- ✓When you don't have a license for tools like IDA Pro.
- ✓To analyze many files at once or in automated processes.
- ✓To learn how programs work, as it's a free tool.
Example of what to ask your AI
“Analyze this program using Ghidra and show me the C code.”
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 imports the program into Ghidra, which tries to understand it and transforms it into C-like code. It can also help find connections between different parts of the program.
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 zhaoxuya520/reverse-skill --skill ghidra-reverseOr download just the file:
curl -L https://raw.githubusercontent.com/zhaoxuya520/reverse-skill/main/skills/ghidra-reverse/SKILL.md -o SKILL.mdTechnical content (original SKILL.md)
Original text by the author, straight from GitHub.
Ghidra Reverse Engineering
ACTION REQUIRED(读完后立刻执行)
NOW: 读取../field-journal/precedent-reverse.mdNOW: 确认需要 Ghidra(无 IDA / 偏好开源 / 批量 headless)NEXT: 读../tool-index.md查 ghidra / ghidra-mcp 路径NEXT: 缺工具 → bootstrapghidra-mcp(若 manifest 支持)或按手动步骤装 GhidraACT: 导入样本 → 自动分析 → 导出关键函数反编译
适用场景
- 无 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(默认分析器)
□ 记录语言/编译器识别结果与基址
□ 标记入口、导出表、字符串 xref
2. 关键函数
□ 从字符串 / 导入 API 反查
□ Decompile 窗口还原算法
□ 重命名函数/变量;写 Plate comment
□ 需要动态时交接 Frida/GDB(reverse-engineering 动态章)
3. Headless(批量)
# 示例:analyzeHeadless 路径因安装而异,MUST 从 tool-index 取
analyzeHeadless /path/to/project Proj -import sample.bin -postScript ExportDecomp.py
4. 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?
FAQ
What is reverse engineering?
It's like taking apart an electronic device to understand how it was built, but with computer programs.
What does 'headless' mean?
It means the tool can run without needing a screen or graphical interface, making it useful for automation.
What is Ghidra MCP?
It's a way to make Ghidra communicate with other tools, facilitating information exchange during analysis.
Details
Original description by the author
Use for free/open reverse engineering with Ghidra (headless or GUI), including decompile, cross-refs, and optional Ghidra MCP workflows when IDA is unavailable.
Popularity
- GitHub stars
- 42k
- Ranking position
- #4766
- License
- MIT
- Updated
- 9/22/2026
Comments
- …
More skills from this repository
competition-ad-certificate-abuse
Helps your agent analyze attacks on digital certificate systems. It investigates how certificates can be misused to gain access.
zhaoxuya520/reverse-skill
competition-agent-cloud
Helps your agent analyze security challenges in AI and cloud systems. It investigates how prompts, tools, and the cloud can be exploited.
zhaoxuya520/reverse-skill
competition-android-hooking
Helps your agent investigate Android applications. It analyzes how apps work internally and how they might be modified or exploited.
zhaoxuya520/reverse-skill
competition-browser-persistence
Helps your agent analyze how websites store information in your browser. It investigates cookies and other data to understand how sessions work.
zhaoxuya520/reverse-skill
Similar skills
benchmark-optimization-loop
Has your agent improve something's speed in a measured way. It tests multiple versions and chooses the fastest one that still works correctly.
affaan-m/ECC
change-impact
Helps your agent analyze the impact of code changes before making them. It compares the planned vs. actual results afterward, covering paths, data, tests, and documentation. Useful for risky or system-wide changes.
affaan-m/ECC
click-path-audit
Lets your agent trace all user buttons and interactions to find bugs. It finds issues where functions seem to work alone but fail together. Useful when bugs persist even after debugging.
affaan-m/ECC