Skip to content
FossShelf
Home / Categories / For Security Teams

ghidra

NSA's open source reverse engineering framework, Apache 2.0

Replaces Ida Pro, Binary Ninja, Hopper Disassembler, Jeb Decompiler

100.36K starsApache-2.0last commit 10 Nov 2026
Screenshot of ghidra

Who it's for

Malware analysts dissecting unknown binaries

Ghidra's decompiler and scripting engine are well-suited to malware analysis workflows. Analysts can load an unknown binary, let Ghidra auto-analyze it, and then navigate decompiled code to identify malicious behavior, C2 patterns, or encryption routines without needing the source.

Skip if your malware analysis workflow centers on dynamic execution tracing or sandbox detonation. Ghidra is a static analysis tool; dynamic behavior requires a separate environment like a sandbox or debugger.

Security researchers doing vulnerability research

Vulnerability researchers use Ghidra to audit compiled code for bugs, trace input handling paths, and identify dangerous patterns like unchecked memory operations. The cross-reference browser and call-graph views help trace how user-controlled input reaches sensitive functions.

Skip if the target binary is large enough that analysis time is a bottleneck and you need faster auto-analysis. Commercial tools like IDA Pro have had more optimization time in their analysis engines for some large binary classes.

CTF competitors analyzing challenge binaries

Ghidra is widely used in capture-the-flag competitions for reversing challenge binaries. Its decompiler handles many common challenge formats and architectures, and the Apache 2.0 license means it is accessible to all competitors regardless of budget.

Skip if your CTF challenges require very fast iteration on small crackme binaries where a lighter tool like Radare2 or a hex editor is faster to spin up.

Teams building automated binary scanning pipelines

Ghidra's headless analyzer mode runs without a GUI, making it suitable for batch processing of binary files in CI/CD pipelines or security review workflows. Teams can script extractions of function signatures, strings, imports, or custom analysis results.

Skip if the binaries you need to scan are covered by a dedicated SAST tool that already understands your source language. Ghidra is most valuable when working from compiled artifacts without source access.

The problem

Binary reverse engineering without source code is hard by default. Compiled programs shed their variable names, function signatures, and logic structure. What remains is machine instructions, and mapping those back to human-readable logic across an unfamiliar CPU architecture takes specialized tooling. The tools that have historically done this job well are expensive. IDA Pro licenses run into the thousands of dollars per seat, and comparable commercial tools carry similar costs. For independent researchers, small security teams, and academic programs, those price points make serious reverse engineering work contingent on budget approval. Even well-funded teams that can afford a seat license find themselves constrained when they need to share workflows, run analyses at scale, or integrate binary analysis into automated pipelines.

How it works

Multi-architecture disassembler and decompiler

Ghidra's disassembler covers a wide range of processor instruction sets, from x86-64 and ARM to MIPS, PowerPC, and others. The built-in decompiler converts machine code to readable C-like pseudocode, which is especially useful when analyzing code from embedded or proprietary platforms.

Interactive GUI and headless batch mode

The CodeBrowser GUI provides a full interactive analysis environment for navigating disassembly, viewing decompiled code, and following cross-references. The headless analyzer mode runs the same analysis without a GUI, making it possible to integrate Ghidra into automated security scanning pipelines or CI workflows.

Java and Python scripting engine

Analysts can write custom scripts in Java or Python (via Jython or PyGhidra) to automate analysis tasks, extract data, or add new capabilities. The GhidraDev Eclipse plugin and Visual Studio Code integration support developing full Ghidra extension components against official releases.

Call-graph and cross-reference visualization

Ghidra's graphing tools display control flow graphs, call trees, and data cross-references visually. This makes it easier to understand how functions relate to each other and trace execution paths through complex or obfuscated binaries.

Extensible plugin architecture

Ghidra supports custom plugins, analyzers, loaders, and exporters written in Java. Extensions can add support for new file formats, new CPU architectures, new analysis algorithms, or new output formats. Users distribute extensions as standard zip packages.

Features

  • Multi-architecture disassembler and decompiler
  • Interactive GUI and headless batch mode
  • Java and Python scripting engine
  • Call-graph and cross-reference visualization
  • Extensible plugin architecture

How to install

Install Ghidra from a pre-built release zip (requires JDK 21), or clone the repository to build from source.

git clone https://github.com/NationalSecurityAgency/ghidra.git

Recommended for this setup

Strengths

  • No licensing cost at any scale: Apache 2.0 means Ghidra is free to use commercially and at any team size. Where IDA Pro charges per-seat fees that can exceed $1,000 per analyst, Ghidra requires only a JDK 21 installation. Teams doing vulnerability research at scale can run as many instances as they need without a license budget.
  • 73,000+ star GitHub community with active NSA development: With over 73,000 GitHub stars and a repository actively maintained through 2026, Ghidra has a large contributor community. NSA Research Directorate continues to develop and extend the framework, and community contributions add new processor modules, scripts, and plugins.
  • Cross-platform: runs on Windows, macOS, and Linux: Ghidra is a cross-platform Java application with pre-built releases for all three major operating systems. Analysts on any platform run the same tooling without a platform-specific license, unlike some commercial alternatives that restrict certain features to one OS tier.
  • Scriptable for automated security pipelines: The headless mode and scripting API let teams build binary analysis into automated pipelines. Security teams can script Ghidra to extract function signatures, identify patterns, or generate reports from batches of binaries without any GUI interaction.

Trade-offs

  • Steeper learning curve than commercial tools: Ghidra's GUI is functional but requires more setup and familiarity than IDA Pro or Binary Ninja for new analysts. Keyboard shortcuts, workflow conventions, and the project model differ from what experienced binary analysts may expect. There is no built-in tutorial or guided onboarding.
  • Java runtime dependency adds setup friction: Ghidra requires JDK 21, which is not always present in analyst environments and must be installed separately. Unlike tools distributed as self-contained binaries or via a package manager, Ghidra involves a multi-step setup: install the JDK, download the release zip, extract, and configure. This is manageable but not trivial.
  • Known security vulnerabilities in some versions: The README carries an explicit security warning: known vulnerabilities exist in certain Ghidra versions. Analysts should review the Security Advisories page on GitHub before deploying a specific release. Version management and advisory checks are not optional for production use.
  • 1,900+ open GitHub issues: As of the last data pull, Ghidra has over 1,900 open issues. While this reflects broad usage, it signals that some reported bugs and feature requests take significant time to reach the release cycle. Teams relying on specific processor modules or edge-case formats may encounter unresolved issues.

Tech stack

Languages
Java, C++, HTML, C, Python, Shell, Yacc, Xtend, GAP, PowerShell, Assembly, TeX, Batchfile, Hack, Objective-C, Rust, Lex, XSLT, CSS, Makefile, GDB, Dockerfile, Haskell, Lua, Linker Script, Pawn
Frameworks
—
Databases
—
Tooling
—

FAQ

Is Ghidra as good as IDA Pro?

For most reverse engineering tasks, yes. Ghidra's decompiler quality has improved significantly since its initial release and covers the architectures most analysts work with. IDA Pro still leads on some specific processor modules, speed of auto-analysis for very large binaries, and ecosystem maturity for certain workflows. For teams that previously paid for IDA Pro, Ghidra handles the majority of day-to-day work at no cost.

Does Ghidra require an internet connection or phone home?

No. Ghidra runs entirely offline. It does not require an account, a license server, or internet access after the initial download. This makes it suitable for air-gapped environments where analysts work with sensitive binaries.

Can I collaborate with teammates using Ghidra?

Yes. Ghidra includes a multi-user shared project feature that allows multiple analysts to work on the same binary simultaneously. The shared project runs as a Ghidra Server that team members connect to. Setup requires running the server component and configuring user accounts.

What programming languages does Ghidra support for scripting?

Ghidra supports scripting in Java and Python. Python support comes through the bundled Jython runtime for the standard scripting interface, and through PyGhidra for integration with native CPython 3.x. The GhidraDev Eclipse plugin supports full Java extension development.

Is Ghidra safe to install from a security standpoint?

The Ghidra team maintains a Security Advisories page on GitHub listing known vulnerabilities in past releases. Before installing, check that page and use the latest release. Ghidra is open source, so the full codebase is auditable. Avoid running Ghidra as root or in privileged containers on production systems.

Similar tools

More in Security Teams