Registry / devops / ghidrecomp

ghidrecomp

JSON →
library0.5.9pypypi✓ verified 81d ago

Python command-line Ghidra decompiler that automates decompilation of binary files and generates call graphs, BSim signatures, and SAST reports. Version 0.5.9 supports Ghidra 12 and requires Python 3.10+. Release cadence is irregular, with updates aligning with Ghidra version releases.

pip install ghidrecomp
INSTALL
IMPORT
SIG · GHIDRECOMP
G
ghidrecomp
devopspythonv0.5.9
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

CallGraph
from ghidrecomp import CallGraph
from ghidrecomp import Ghidrecomp
decompile
from ghidrecomp import decompile
from ghidrecomp import Ghidrecomp
gen_callgraph
from ghidrecomp import gen_callgraph
from ghidrecomp import Ghidrecomp

Initialize Ghidrecomp and decompile a binary file. Requires Ghidra and pyghidra to be installed separately.

from ghidrecomp import Ghidrecomp g = Ghidrecomp() g.decompile("/path/to/binary", output_dir="./output")
ghidrecomp --version
Debug
Known issues
breakingv0.5.6 replaced pyhidra with pyghidra. Existing scripts using pyhidra will break unless updated.
fix
Update imports from pyhidra to pyghidra, and ensure pyghidra is installed.
affects: <0.5.6 -> >=0.5.6
breakingv0.5.3 dropped Python 3.8 support. Python 3.10+ is required.
fix
Use Python 3.10 or later.
affects: <0.5.3 -> >=0.5.3
gotchaGhidrecomp requires Ghidra to be installed separately. The pip package only provides the Python bindings; Ghidra must be manually downloaded and configured.
fix
Download Ghidra from https://ghidra-sre.org/ and ensure 'ghidra' is in PATH or set GHIDRA_INSTALL_DIR environment variable.
affects: all
Upgrade
Version history
0.5.9latest on PyPI · released Jan 6, 2026
Audit
Dependencies
pyghidrarequiredRequired for Ghidra integration (replaced pyhidra in v0.5.6)
semgrepoptionalRequired for SAST functionality (v0.5.9+)
Agent activity
7 hits · last 30 days
node
6
Resources
ghidrecomp — pip install ghidrecomp · libregistry