Scan your whole stack
From OX Research Newsroom
Are you using ghidra-decomp?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v1.5.5
ghidra-decomp was last scanned on 27 Nov 2026 at version 1.5.5. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 1.5.5 LATEST | 27 Nov 2026 | No rules fired |
| 1.5.4 | 26 Nov 2026 | No rules fired |
| 1.5.3 | 26 Nov 2026 | No rules fired |
| 1.4.2 | 25 Nov 2026 | Not shown |
| 1.4.1 | 25 Nov 2026 | Not shown |
Findings for v1.5.5. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 1.5.5; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Bulk-decompile binaries into browsable source trees using Ghidra.
Takes a binary, runs Ghidra's decompiler on every function, and produces a directory of .c files and JSON indexes — ready for grep, code review, or AI-assisted analysis.
Reverse engineering through Ghidra's GUI (or MCP) means looking at one function at a time. This tool dumps everything upfront so you can treat the binary like a normal codebase: grep for patterns, read call graphs, search strings — all without waiting for decompilation round-trips.
Requires Ghidra 12.0+ and PyGhidra 3.0+.
make install
Or manually: pip install -e .
Set GHIDRA_INSTALL_DIR to your Ghidra installation, or pass --ghidra-path.
ghidra-decomp ./firmware.bin -o ./firmware_decomp
| Flag | Description | Default |
|---|---|---|
-o, --output |
Output directory | <binary>_decomp/ |
--timeout |
Per-function decompilation timeout (seconds) | 60 |
--combined |
Also emit all_functions.c |
off |
--pcode |
Also emit <function>.pcode.json per function: SSA high-pcode ops, def-use, block CFG, varnode storage, and resolved call arguments |
off |
--alloc-map |
Emit alloc_map.json recording every allocation call site, where the result pointer is stored, and how it flows forward. Detects allocator wrappers and resolves sizes through wrapper chains. Implies --pcode. |
off |
--alloc-map-config |
JSON file extending the built-in allocator list for --alloc-map |
none |
--struct-map |
Emit struct_map.json recording every resolved struct/union type referenced by decompiled code, with field layouts sorted by offset. When combined with --gdt, includes all GDT types unfiltered. Implies --alloc-map. |
off |
--version |
Print version and exit | |
--ghidra-path |
Path to Ghidra install | $GHIDRA_INSTALL_DIR |
--base-addr |
Rebase binary to this address before analysis | none |
--entry |
Mark address as entry point before analysis | none |
--language |
Force Ghidra language ID (e.g. ARM:LE:32:v7) |
auto |
--compiler |
Force compiler spec ID. Requires --language. |
auto |
--list-languages |
List all available language/compiler IDs, then exit | |
--workers |
Decompiler threads | min(4, CPU count) |
--resume |
Reuse hash-valid per-function artifacts from existing output | off |
--include / --exclude |
Function name regexes. Repeatable. | all |
--function |
Export function at this address. Repeatable. | |
--gdt |
Apply a Ghidra data type archive. Repeatable. | none |
--pdb |
PDB source: auto (fetch from symbol server), none, or local path |
detect+prompt |
--gzf |
Also export program.gzf |
off |
--semgrep-config |
Scan pseudocode with semgrep, write semgrep.sarif |
off |
--verbose-analysis |
Attach console monitor to Ghidra auto-analysis | off |
--mermaid |
Render call graphs as Mermaid flowcharts in callgraphs/ |
off |
--cpp-export |
Export single .c + .h via Ghidra's CppExporter |
off |
--max-ram-percent |
JVM MaxRAMPercentage for heap sizing (1.0–100.0) | 50.0 |
--print-jvm-flags |
Print JVM flag values at startup | off |
--callgraph-depth |
Neighborhood hops for per-function Mermaid (1–10) | 1 |
--condense-threshold |
Collapse whole-graph Mermaid when edges exceed N | none |
--reachable FROM TO |
Check if FROM can reach TO in the call graph | none |
--no-polish |
Skip the readability post-processing pipeline; emit raw Ghidra output | polish on |
--aggressive |
Enable Ghidra's off-by-default Decompiler Parameter ID analyzer for better parameter/return types (slower) | off |
--max-payload-mb |
Raise Ghidra's per-function decompiler payload cap (MB) to rescue very large functions | Ghidra default (~50MB) |
--json |
Print a machine-readable JSON summary instead of human text | off |
--build-kernel-gdt |
Build a .gdt type archive from a Linux kernel source tree. Requires --arch and -o. |
|
--arch |
Target architecture for --build-kernel-gdt (x86_64, x86, arm, arm64, mips, riscv64, ppc) |
|
--kernel-config |
Kernel .config or autoconf.h for --build-kernel-gdt |
auto-detect |
--no-tree-headers |
Only use curated priority headers for --build-kernel-gdt (skip full tree scan) |
scan on |
Build a Ghidra .gdt type archive from a Linux kernel source tree so --struct-map works on stripped .ko files (no DWARF needed):
# Build once per kernel version:
ghidra-decomp --build-kernel-gdt /usr/src/linux-source-6.1 \
--arch x86_64 -o linux-6.1-x86_64.gdt
# Use on any .ko from that kernel:
ghidra-decomp --struct-map --gdt linux-6.1-x86_64.gdt some_driver.ko
The pipeline discovers ~66 curated kernel headers, then walks the full source tree for additional .h files under drivers/, net/, sound/, fs/, and other subsystems. This captures driver-internal structs (e.g. mwifiex_private) that only live outside include/.
Tree headers are grouped by top-level directory and preprocessed independently with gcc -E. If one directory group fails (e.g. a header with an unresolvable include), only that group is skipped — the rest survive. Priority headers always succeed or the entire build fails.
Pass --no-tree-headers to skip the tree scan and use only the curated priority headers.
Typical output: 20,000+ types (structs, unions, enums) in under 20 seconds.
The kernel source tree must have make defconfig && make prepare run first (or pass --kernel-config pointing to a .config or autoconf.h).
By default, decompiled pseudocode is run through a post-processing pipeline that
rewrites Ghidra's output into more readable C without changing semantics —
while→for loops, x = x + 1→x += 1, if (c) { return 1; } return 0;→
return c;, struct-field and vtable synthesis on stripped binaries, and more.
Pass --no-polish to get Ghidra's raw output instead. Each function's sidecar
records whether it was polished.
See docs/polish.md for the full transform list and guarantees.
firmware_decomp/
├── manifest.json
├── functions/
│ ├── 00010000_<digest>_main.c
│ ├── 00010000_<digest>_main.json
│ ├── 00010000_<digest>_main.pcode.json # --pcode
│ └── ...
├── assembly/
│ ├── 00010000_<digest>_main.s
│ └── ...
├── xrefs.jsonl
├── all_functions.c # --combined
├── program.gzf # --gzf
├── semgrep.sarif # --semgrep-config
├── alloc_map.json # --alloc-map
├── struct_map.json # --struct-map
├── types.json
├── functions.json
├── callgraph.json
├── callgraphs/ # --mermaid
│ ├── callgraph.md
│ ├── endpoints.json
│ ├── reachability.json # --reachable
│ ├── paths.md # --reachable --mermaid
│ └── <function>.md
├── export.c # --cpp-export
├── export.h # --cpp-export
├── strings.json
├── imports.json
├── exports.json
├── symbols.json
├── sections.json
└── metadata.json
See docs/output-format.md for the full artifact contract, sidecar structure, type records, and manifest semantics.
Query a previous export's callgraph.json without starting Ghidra:
# Find root and leaf functions
ghidra-decomp-query endpoints ./firmware_decomp
# Check if main can reach encrypt_data
ghidra-decomp-query reachable ./firmware_decomp main encrypt_data
# Find all paths between two functions
ghidra-decomp-query paths ./firmware_decomp main encrypt_data --max-depth 50
docker compose run --rm ghidra-decomp ./firmware.bin -o /output/firmware_decomp
ghidra-decomp--resume, or narrow with --include/--functionTab-complete flags and arguments in your shell:
# bash (add to ~/.bashrc)
eval "$(_GHIDRA_DECOMP_COMPLETE=bash_source ghidra-decomp)"
# zsh (add to ~/.zshrc)
eval "$(_GHIDRA_DECOMP_COMPLETE=zsh_source ghidra-decomp)"
# fish (add to ~/.config/fish/completions/ghidra-decomp.fish)
_GHIDRA_DECOMP_COMPLETE=fish_source ghidra-decomp | source
Also works for ghidra-decomp-query.
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.