ghidra-headless — Claude Code plugin: what it does, how to install
ghidra-headless runs Ghidra's headless analyzer to reverse engineer binaries without a GUI. Helps decompile executables, inspect call graphs, and pull symbols directly in Claude Code.
Apache-2.0 ★ 540 updated 2026-07-14
/plugin marketplace add trailofbits/skills-curated
/plugin install ghidra-headless@skills-curatedWhat ghidra-headless does
This plugin wraps Ghidra's analyzeHeadless utility to inspect binaries across architectures including x86, ARM, MIPS, and PowerPC. It decompiles machine code into C pseudocode, maps function call graphs, and pulls embedded strings alongside symbol tables. The tool can also handle batch analysis over multiple files in one pass.
Execution will fail if OpenJDK 17+ and Ghidra are missing from the system. On macOS, Ghidra can be installed using brew install --cask ghidra. Since everything runs through the headless interface, no graphical desktop session is needed.
What it helps with
- decompile executable binaries into C pseudocode
- extract function signatures and trace call graphs
- pull embedded strings and symbol tables from compiled files
- inspect binaries built for x86, ARM, MIPS, or PowerPC architectures
Example prompts for the agent
- Decompile
sample.binand show me the C pseudocode for themainfunction - Extract all strings and symbols from
libtarget.so - Analyze the call graph of the ARM binary
firmware.elf
How to install ghidra-headless
Plugin marketplace
/plugin marketplace add trailofbits/skills-curated/plugin install ghidra-headless@skills-curatedStep by step, with commands for each platform: Claude Code plugins: marketplaces, installing, and building your own
Questions about ghidra-headless
How do I install ghidra-headless in Claude Code?
Add the catalog source with /plugin marketplace add trailofbits/skills-curated. After that, install the package by running /plugin install ghidra-headless@skills-curated.
What does ghidra-headless do?
It automates binary reverse engineering using Ghidra's headless analyzer. The plugin decompiles code into C, extracts symbols and strings, and inspects call relationships without launching a GUI.
What dependencies are required for ghidra-headless?
You need OpenJDK 17 or higher and an installed copy of Ghidra. On macOS, install it with brew install --cask ghidra.
Source text
ghidra-headless · Apache-2.0
# Ghidra Headless Reverse engineer binaries using Ghidra's headless analyzer. Decompile executables, extract functions, strings, symbols, and analyze call graphs without GUI. ## Installation ``` /plugin install ghidra-headless ``` ## Prerequisites - [Ghidra](https://ghidra-sre.org/) installed (`brew install --cask ghidra` on macOS) - Java (OpenJDK 17+) ## What It Covers - Headless binary analysis via `analyzeHeadless` wrapper - Decompilation to C pseudocode - Function extraction with signatures and call relationships - String and symbol extraction - Call graph analysis - Architecture-specific analysis (x86, ARM, MIPS, PowerPC) - Batch analysis of multiple binaries ## Credits Imported from [mitsuhiko/agent-stuff](https://github.com/mitsuhiko/agent-stuff/tree/main/skills/ghidra) by Armin Ronacher. Licensed under Apache-2.0.
© Armin Ronacher · Apache-2.0 · trailofbits/skills-curated