{"id":27814,"library":"ghidrecomp","title":"ghidrecomp","description":"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.","status":"active","version":"0.5.9","language":"python","source_language":"en","source_url":"https://github.com/clearbluejar/ghidrecomp","tags":["ghidra","decompiler","reversing","static-analysis","binary-analysis"],"install":[{"cmd":"pip install ghidrecomp","lang":"bash","label":"Standard install"}],"dependencies":[{"reason":"Required for Ghidra integration (replaced pyhidra in v0.5.6)","package":"pyghidra","optional":false},{"reason":"Required for SAST functionality (v0.5.9+)","package":"semgrep","optional":true}],"imports":[{"wrong":"from ghidrecomp import Ghidrecomp","symbol":"CallGraph","correct":"from ghidrecomp import CallGraph"},{"wrong":"from ghidrecomp import Ghidrecomp","symbol":"decompile","correct":"from ghidrecomp import decompile"},{"wrong":"from ghidrecomp import Ghidrecomp","symbol":"gen_callgraph","correct":"from ghidrecomp import gen_callgraph"}],"quickstart":{"code":"from ghidrecomp import Ghidrecomp\n\ng = Ghidrecomp()\ng.decompile(\"/path/to/binary\", output_dir=\"./output\")","lang":"python","description":"Initialize Ghidrecomp and decompile a binary file. Requires Ghidra and pyghidra to be installed separately."},"warnings":[{"fix":"Update imports from pyhidra to pyghidra, and ensure pyghidra is installed.","message":"v0.5.6 replaced pyhidra with pyghidra. Existing scripts using pyhidra will break unless updated.","severity":"breaking","affected_versions":"<0.5.6 -> >=0.5.6"},{"fix":"Use Python 3.10 or later.","message":"v0.5.3 dropped Python 3.8 support. Python 3.10+ is required.","severity":"breaking","affected_versions":"<0.5.3 -> >=0.5.3"},{"fix":"Download Ghidra from https://ghidra-sre.org/ and ensure 'ghidra' is in PATH or set GHIDRA_INSTALL_DIR environment variable.","message":"Ghidrecomp requires Ghidra to be installed separately. The pip package only provides the Python bindings; Ghidra must be manually downloaded and configured.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'0.5.9':24 '12':27 '3.10':31 'align':38 'analysi':48,51 'autom':9 'binari':12,50 'binary-analysi':49 'bsim':18 'cadenc':33 'call':16 'command':4 'command-lin':3 'decompil':7,10,44 'file':13 'generat':15 'ghidra':6,26,40,43 'ghidrecomp':1 'graph':17 'irregular':35 'line':5 'python':2,30 'releas':32,42 'report':22 'requir':29 'revers':45 'sast':21 'signatur':19 'static':47 'static-analysi':46 'support':25 'updat':37 'version':23,41","created_at":"2026-05-09T05:52:13.367998+00:00","updated_at":"2026-05-09T05:52:13.367998+00:00","problems":null,"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"ghidrecomp","cli_version":"0.5.9","type":"library","homepage":null,"github":"https://github.com/clearbluejar/ghidrecomp","docs":null,"changelog":null,"pypi":"https://pypi.org/project/ghidrecomp/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["devops","data"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-08-02","install_tag":null}}