ghidra-headless
Skill4 starsChanged 6 months agoMITView on GitHub
Ghidra and PyGhidra headless reverse engineering workflow for static binary analysis. Use when the user asks to import binaries into Ghidra, run analyzeHeadless, export function/import/string summaries, use PyGhidra scripts, or plan repeatable Ghidra analysis without GUI interaction.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- HiyokoSauna37/claudecode-re-toolkittheir own version, first seen Oct 11, 2026
- aphrody-code/nietheir own version, first seen Sep 23, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- HiyokoSauna37/claudecode-re-toolkit★ 18same name
- aphrody-code/nie★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository7 other files it gives its agents.
- android-reverse-engineeringSkill
- binary-triageSkill
- ioc-extractionSkill
- re-parity-reviewSkill
- repo-reverse-engineeringSkill
- reverse-engineeringSkill
- unpacking-analysisSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 4 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 13
Prefer python3 scripts/re_tool_check.py --json and inspect the adapters.ghidra and adapters.reva records.
- Very specific: line 15
Use python3 scripts/ghidra_smoke.py --json-out ghidra-smoke.json for a discovery-only smoke report.
- Distinctive: line 16
Create or reuse a headless project outside the analyzed sample directory.
- Very specific: line 17
Use analyzeHeadless with -import, -scriptPath, and -postScript when appropriate.
- Very specific: line 18
Use scripts/ghidra_export_summary.py as a PyGhidra/Ghidra script to export program metadata, functions, imports, exports, strings, xrefs, …
- Distinctive: line 28
Run a real smoke only after operator approval and with a benign local file:
- Distinctive: line 36
Do not execute the analyzed binary.
- Distinctive: line 37
Do not assume decompiler output is source-equivalent.
- Very specific: line 39
If a requested Ghidra step would execute code, debug a live process, run malware, or contact external infrastructure, respond with PAUSE …
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Ghidra Headless
Guide repeatable static analysis with a local Ghidra installation. The plugin does not install Ghidra and does not execute analyzed samples.
Workflow
- Confirm Ghidra or PyGhidra is installed locally.
- Prefer
python3 scripts/re_tool_check.py --jsonand inspect theadapters.ghidraandadapters.revarecords. - Adapter discovery is PATH lookup only; it does not authorize running Ghidra.
- Use
python3 scripts/ghidra_smoke.py --json-out ghidra-smoke.jsonfor a discovery-only smoke report.
- Prefer
- Create or reuse a headless project outside the analyzed sample directory.
- Use
analyzeHeadlesswith-import,-scriptPath, and-postScriptwhen appropriate. - Use
scripts/ghidra_export_summary.pyas a PyGhidra/Ghidra script to export program metadata, functions, imports, exports, strings, xrefs, call graph, CFGs, compact graph summaries, and warnings.
Example shape:
python3 scripts/ghidra_export_summary.py --json-out ghidra_summary.jsonThis script exits cleanly with a diagnostic outside a Ghidra/PyGhidra runtime.
Run a real smoke only after operator approval and with a benign local file:
python3 scripts/ghidra_smoke.py --run --sample sample.bin --json-out ghidra-smoke.json --export-json ghidra_summary.jsonSafety
- Do not execute the analyzed binary.
- Do not assume decompiler output is source-equivalent.
- State tool versions and project paths when available.
- If a requested Ghidra step would execute code, debug a live process, run malware, or contact external infrastructure, respond with
PAUSEand require explicit sandbox approval.
Output
Return a Markdown summary and attach the JSON path. Include limitations when Ghidra is unavailable or when only syntax validation was possible.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

