
Ghidra
This wraps Ghidra's headless analyzer so you can decompile binaries and extract functions, strings, and call graphs without opening the GUI. You get a set of export scripts that dump everything to JSON and text files: ExportAll.java for comprehensive analysis, or individual scripts for specific tasks like decompiling to C or mapping function relationships. Especially useful when you need to batch process firmware samples or integrate reverse engineering into your workflow. The wrapper handles project creation and cleanup automatically, which saves you from dealing with Ghidra's project management quirks. Works well for initial triage on unknown binaries or when you need machine-readable output for further analysis.
- skills.sh installs
- 686
- GitHub stars
- 3.2K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add mitsuhiko/agent-stuff --skill ghidra --agent claude-codeInstalls into .claude/skills of the current project.
Files
Ghidra Headless Analysis Skill
Perform automated reverse engineering using Ghidra's analyzeHeadless tool. Import binaries, run analysis, decompile to C code, and extract useful information.
Quick Reference
| Task | Command |
|---|---|
| Full analysis with all exports | ghidra-analyze.sh -s ExportAll.java -o ./output binary |
| Decompile to C code | ghidra-analyze.sh -s ExportDecompiled.java -o ./output binary |
| List functions | ghidra-analyze.sh -s ExportFunctions.java -o ./output binary |
| Extract strings | ghidra-analyze.sh -s ExportStrings.java -o ./output binary |
| Get call graph | ghidra-analyze.sh -s ExportCalls.java -o ./output binary |
| Export symbols | ghidra-analyze.sh -s ExportSymbols.java -o ./output binary |
| Find Ghidra path | find-ghidra.sh |
Prerequisites
- Ghidra must be installed. On macOS:
brew install --cask ghidra - Java (OpenJDK 17+) must be available
The skill automatically locates Ghidra in common installation paths. Set GHIDRA_HOME environment variable if Ghidra is installed in a non-standard location.
Main Wrapper Script
./scripts/ghidra-analyze.sh [options] <binary>
Sponsors
Details
- Repository
- github.com/mitsuhiko/agent-stuff
- Category
- AI & Agent Building
- First seen
- Jun 3, 2026