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.03094 |
| Opus 5 | $0.00020 | $0.01547 |
| Sonnet 5 | $0.00008 | $0.00619 |
| Haiku 4.5 | $0.00004 | $0.00309 |
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 11d 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会话变量选择)
工具准备
参考 [[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.0 起 2025 年底,2026-08 最新 12.1.3);运行官方 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.
- 11d 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 (52 stars, last pushed 13d ago), licensed Apache-2.0. It adds 41 tokens to every session and 3,094 once invoked, about $0.0002 per session on Opus 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.
Other skills, from other repositories
Reverse Engineering & Binary Analysis
Binary analysis, assembly interpretation, disassembly, decompilation, firmware RE, and protocol reverse engineering.
deobfuscating-powershell-obfuscated-malware
Systematically deobfuscates multi-layer PowerShell malware using AST analysis, dynamic tracing, and tools like PSDecode and PowerDecode to reveal hidden payloads and C2 infrastructure. Use during incident response or malware analysis when a PowerShell script is obfuscated with encoding, string manipulation, or…
conducting-malware-incident-response
Respond to malware infections across enterprise endpoints by identifying the malware family, determining infection vectors, assessing spread, and executing containment, analysis, eradication, and recovery procedures aligned to MITRE ATT&CK. Use when responding to a confirmed or suspected malware infection, including…
analyzing-golang-malware-with-ghidra
Reverse engineer Go-compiled malware in Ghidra by parsing Go buildinfo and pclntab structures, recovering stripped/obfuscated function names (e.g. via GoResolver), and extracting embedded module/dependency strings and types from Go binaries. Use when analyzing a Go-language malware sample, deobfuscating a…
analyzing-network-covert-channels-in-malware
Detect and analyze covert communication channels used by malware, including DNS tunneling, ICMP exfiltration, steganographic HTTP, and other protocol abuse used for C2 and data exfiltration. Use when investigating suspicious DNS/ICMP/HTTP traffic patterns, hunting for hidden C2 channels in network captures, or…
analyzing-golang-malware-with-ghidra
Reverse engineer Go-compiled malware using Ghidra with specialized scripts for function recovery, string extraction, and type reconstruction in stripped Go binaries.