ghidra-reverse

ghidra-reverse is a skill for Claude Code, Codex from SeaOf0/dsh-redteam-model. It costs 43 tokens per session (823 once invoked), scanned A, a copy of ghidra-reverse, MIT.

A guide for free, open reverse engineering with Ghidra, a tool that analyzes compiled programs and can turn machine code into approximate source-like code.

In plain words
What is it for?
Use it to import binaries, inspect strings and references, decompile functions, rename and document code, run headless analysis in automated jobs, and connect optional AI tools.
Why use it?
It provides a practical alternative when IDA Pro is unavailable and supports command-line or batch analysis for many files.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to import binaries, inspect strings and references, decompile functions, rename and document code, run headless analysis in automated jobs, and connect optional AI tools.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/seaof0/dsh-redteam-model/ghidra-reverse
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.

Any agent
npx skills add SeaOf0/dsh-redteam-model --skill ghidra-reverse
Clone the repo
git clone --depth 1 https://github.com/SeaOf0/dsh-redteam-model

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ghidra-reverse

README.md
[![agentmods](https://agentmods.dev/badge/skills/seaof0/dsh-redteam-model/ghidra-reverse/github.svg)](https://agentmods.dev/skills/seaof0/dsh-redteam-model/ghidra-reverse)
Your own site
<a href="https://agentmods.dev/skills/seaof0/dsh-redteam-model/ghidra-reverse"><img src="https://agentmods.dev/badge/skills/seaof0/dsh-redteam-model/ghidra-reverse/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ghidra-reverse

Your own site · 80×15
<a href="https://agentmods.dev/skills/seaof0/dsh-redteam-model/ghidra-reverse"><img src="https://agentmods.dev/badge/skills/seaof0/dsh-redteam-model/ghidra-reverse.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 823 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod 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.1 $0.00043 $0.00823
Opus 5 $0.00022 $0.00411
Sonnet 5 $0.00009 $0.00165
Haiku 4.5 $0.00004 $0.00082

Measured 9d ago against content hash f71acac4668b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

ghidra-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 9d 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.

Origin

This is a copy

100% identical to ghidra-reverse — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

modes/binary-analysis/refs/tools/ghidra-reverse/SKILL.md · 88 lines

What it actually says

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-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?
Files

What ships with it

1 file 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. 9d ago First seen · 88 lines · 43 tokens per session scan A f71acac4668b

Subscribe to this mod's changes

ghidra-reverse is a skill published in the GitHub repository SeaOf0/dsh-redteam-model (325 stars, last pushed 5d ago), licensed MIT. It adds 43 tokens to every session and 823 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to ghidra-reverse, differing in 0 lines, and is treated as a copy.