New to Claude Skills? Learn how to install them →

zhaoxuya520 on GitHub

Ghidra Reverse Engineering

Free

Open-source reverse engineering with Ghidra support.

Get this skill

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 source

1. Install with the skills CLI

npx skills add zhaoxuya520/reverse-skill/ghidra-reverse --agent claude-code

2. 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 zhaoxuya520

Ghidra Reverse Engineering

ACTION REQUIRED(读完后立刻执行)

  1. NOW: 读取 ../field-journal/precedent-reverse.md
  2. NOW: 确认需要 Ghidra(无 IDA / 偏好开源 / 批量 headless)
  3. NEXT: 读 ../tool-index.md 查 ghidra / ghidra-mcp 路径
  4. NEXT: 缺工具 → bootstrap ghidra-mcp(若 manifest 支持)或按手动步骤装 Ghidra
  5. ACT: 导入样本 → 自动分析 → 导出关键函数反编译

适用场景

  • 无 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-mcpAI 桥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