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.
npx skills add dslsdzc/rev-skills --skill re-ghidragit clone --depth 1 https://github.com/dslsdzc/rev-skillsWrote 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.
[](https://agentmods.dev/skills/dslsdzc/rev-skills/re-ghidra)<a href="https://agentmods.dev/skills/dslsdzc/rev-skills/re-ghidra"><img src="https://agentmods.dev/badge/skills/dslsdzc/rev-skills/re-ghidra/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.
<a href="https://agentmods.dev/skills/dslsdzc/rev-skills/re-ghidra"><img src="https://agentmods.dev/badge/skills/dslsdzc/rev-skills/re-ghidra.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00041 | $0.03107 |
| Opus 5.5 | $0.00016 | $0.01243 |
| Sonnet 5.5 | $0.00008 | $0.00621 |
| Haiku 4.5 | $0.00004 | $0.00311 |
Grade A, and why
re-ghidra 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 1mo 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.
How it starts
The opening of the file, as written. The whole thing — 129 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Ghidra 逆向工作流
何时使用 / 何时不用
- 用:需要反编译与深度静态分析;headless 批量处理;脚本化自动标注/解密循环;PE/ELF/Mach-O 全支持
- 不用:内存 <4GB(启动即卡顿,换 [[re-radare2]]);只需快速初勘(走 [[re-triage]])
- 不用:已有 IDA 工作流且目标明确(按
RE_DECOMPILER会话变量选择)
工具准备
参考 [[re-analyze/platform-tips]]——Ghidra 为静态分析主力(免沙箱);低内存环境按平台经验换 [[re-radare2]],headless 批处理适合远程环境。
Ghidra(官方安装,Java 21 要求)
- 下载: GitHub
NationalSecurityAgency/ghidrareleases,解压即用(无需安装) - JDK 21(Ghidra 11.3+ 要求):
- Linux:
apt install openjdk-21-jdk/dnf install java-21-openjdk/pacman -S jdk21-openjdk - macOS:
brew install openjdk@21或brew install --cask temurin - Windows:
choco install temurin21(或 Oracle JDK 21)
- Linux:
- 启动:
./ghidraRun(GUI)/./support/analyzeHeadless(无头) - 验证:
java -version(须 21+);./support/analyzeHeadless -help正常输出 - 版本: 12.x 为当前主线(核验基线 12.1.4);安装时以官方 Releases 的 Latest 为准;运行官方 release 只需 JDK 21,从源码构建 Ghidra 自身需 JDK 25 + Gradle 9.1+;11.x → 12.x 有破坏性脚本 API 变更,写脚本先查目标版本 javadoc,细节见 [[gotchas]]
ghidra-bridge(Python 远程控制)
- 全平台:
pip install ghidra-bridge - 前置: Ghidra GUI 中 Script Manager 运行
ghidra_bridge_server.py - 验证:
python3 -c "import ghidra_bridge; print(ghidra_bridge.__version__)"
操作步骤
-
analyzeHeadless 无头导入+分析:
$GHIDRA/support/analyzeHeadless /tmp/proj sample_proj \ -import ./sample.bin -deleteProject -log /tmp/ghidra.log只建工程不交互时加
-overwrite;批处理多个样本循环调用。日志看-log,分析完成标志: 无异常且工程可重新导入。-process模式(对已导入工程内文件重跑脚本/分析,与-import二选一):$GHIDRA/support/analyzeHeadless /tmp/proj sample_proj \ -process -postScript MyScript.java -scriptPath /tmp/scripts- 只做符号/字符串/单函数反编译时加
-noanalysis(跳过自动分析,秒级完成);只读复查加-readOnly;全套参数族见 [[commands]]
-
GUI:导航/交叉引用/反编译:
File > Import File→ 选择样本 →Analyze(等左下角进度完成)- 跳转:
Go To(G)输入地址;入口点已在 Program Trees 标记entry - 交叉引用: 光标在函数/变量上按
R(References 窗口),或右键 > References > Show References To - 反编译: 在 Listing 中按
Ctrl+E(Decompiler 窗口,默认快捷键可能随版本/keymap 不同,以 Help > Key Bindings 为准)或右键 > Decompile Function,反编译视图可 copy - 函数图: 函数上按
F(Function Graph)看分支/循环结构,与 Decompiler 同步导航 - 下划线地址差异: Listing 显示 VA(含 ImageBase),脚本中常用
getAddressFactory().getDefaultAddressSpace().getAddress("0x401000")
What ships with it
2 files 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.
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.
- 1mo ago Changed e58cffce2fdf
- 2mo ago Changed b100edf0c1ab
- 3mo ago First seen · 129 lines · 41 tokens per session scan A 3880dee5e2a0
re-ghidra is a skill published in the GitHub repository dslsdzc/rev-skills (275 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 41 tokens to every session and 3,107 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
re-ghidra compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| re-ghidradslsdzc/rev-skills | Skill | 275 | 1mo ago | Apache-2.0 | A | 41 | Claude Code |
| deobfuscating-powershell-obfuscated-malwareYoungmaidainon/Agent-Level-Up | Skill | 4 | 3mo ago | MIT | A | 90 | Claude Code, Codex |
| conducting-malware-incident-responseYoungmaidainon/Agent-Level-Up | Skill | 4 | 3mo ago | MIT | A | 78 | Claude Code, Codex |
| analyzing-golang-malware-with-ghidraMikaru0Mystic/sectinel | Skill | 13 | 5mo ago | Apache-2.0 | A | 40 | Claude Code |
| analyzing-golang-malware-with-ghidraYoungmaidainon/Agent-Level-Up | Skill | 4 | 3mo ago | MIT | A | 95 | Claude Code, Codex |
| analyzing-network-covert-channels-in-malwareYoungmaidainon/Agent-Level-Up | Skill | 4 | 3mo ago | MIT | A | 90 | Claude Code, Codex |
| analyzing-heap-spray-exploitationYoungmaidainon/Agent-Level-Up | Skill | 4 | 3mo ago | MIT | A | 46 | Claude Code, Codex |