
Ghidra Reverse Engineering
FreeOpen-source reverse engineering with Ghidra support.
Free · Opens the source repo
What Ghidra Reverse Engineering does
Ghidra Reverse Engineering is a skill designed for developers and security researchers who need to perform reverse engineering tasks using Ghidra, an open-source software reverse engineering tool. This skill facilitates both headless and GUI operations, allowing users to decompile binaries, analyze cross-references, and automate workflows with Ghidra's Model-Driven Architecture (MCP) when IDA is not available. It serves as a robust alternative for those who prefer open-source solutions or require batch analysis capabilities.
The skill provides a structured workflow for creating projects, importing files, and conducting automatic analyses. Users can easily document their findings by recording compiler identification results and marking important entry points, export tables, and string cross-references. Additionally, it allows for the decompilation of key functions, renaming of variables, and writing comments to enhance understanding of the code being analyzed. For dynamic analysis, integration with tools like Frida and GDB is also supported.
This skill is particularly useful in scenarios where an IDA license is not available, such as in educational environments or for batch processing in continuous integration (CI) systems. It also supports Ghidra scripting in Java and Python, enabling users to automate their reverse engineering tasks effectively. The integration with other tools like ghidriff for patch differentiation further extends its capabilities, making it a versatile choice for reverse engineering workflows.
Overall, Ghidra Reverse Engineering is an essential skill for anyone looking to leverage Ghidra for reverse engineering tasks, whether in a single-instance analysis or a batch processing scenario. Its open-source nature makes it accessible and adaptable for various use cases in software security and analysis.
When to use it
Use this skill when you need to reverse engineer software without an IDA license, or when performing batch analyses in a CI environment.
When not to use it
This skill may not be suitable if you require advanced features specific to commercial tools like IDA or if you prefer a purely CLI-based tool without GUI capabilities.
What you can build with it
Educational Use
This skill is ideal for students learning reverse engineering techniques without the need for commercial software licenses.
Automated Analysis in CI
Integrate this skill into your CI pipeline to automate the analysis of binaries and streamline your development process.
Dynamic Analysis Integration
Utilize Ghidra alongside tools like Frida and GDB for comprehensive dynamic analysis during reverse engineering.
How to install Ghidra Reverse Engineering
View source1. Install with the skills CLI
npx skills add zhaoxuya520/reverse-skill/ghidra-reverse --agent claude-code2. Or install it manually
Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.
Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs
Inside SKILL.md
Written by zhaoxuya520Ghidra 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?
Frequently asked questions about Ghidra Reverse Engineering
Similar skills
Agent Host Debug Logs
Analyze Agent Host debug logs for deeper insights.
Code OSS Dev - Launch + Debug
Launch and debug Code OSS with isolated profiles.
Phoenix CLI
Debug LLM applications with structured analysis tools.
Power Automate Debugging
Diagnose and fix Power Automate flow errors effectively.
Arize Trace
Inspect and export traces for LLM applications.
Runtime Behavior Probe
Investigate real runtime behavior with precision.
