What Is Ghidra? A Windows Beginner’s Guide to Reverse Engineering

Guy McDowell
·
6 min read

Help Desk Geek is reader-supported. We may earn a commission when you buy through links on our site. Learn more.

Ghidra is worth a look when you’re trying to understand a Windows program but don’t have its source code. Its free decompiler caught my eye because it puts processor instructions beside a more readable view of what the program does.

Get started with Ghidra on Windows

Install Ghidra and open a practice program

Use a small program you wrote or another program you’re authorized to examine. Leave suspicious files alone until you have an isolated environment and know how to handle them.

  1. Open the Ghidra documentation and find the Installation Guide for the release you’re downloading. Check its required Java Development Kit (JDK) version before installing Java.
  1. Install a compatible 64-bit JDK. Open Command Prompt, run java -version, and check that the reported version meets the release’s requirement. If Windows can’t find Java, check the JDK’s installation instructions before continuing.
  1. Download the Ghidra release archive from the official project link in the documentation. If the release provides a checksum, compare it with the downloaded file before extracting it.
  1. Extract the archive into a new folder on your Windows PC. Keep each Ghidra release in its own folder instead of extracting one over another.
  1. Open that folder and run ghidraRun.bat. You should see the Ghidra project window. If Windows or workplace security software blocks the launcher, check the file’s origin and your organization’s policy before allowing it.
  1. Select File > New Project, then choose a local, non-shared project. Give it a name and save it somewhere you’ll remember. The wording of the project choice may vary by release.
  1. Select File > Import and choose your practice program. Review the format and processor information Ghidra detects; an unexpected result can mean you picked the wrong file or need to adjust the import settings.
  1. Open the imported program in CodeBrowser. When Ghidra offers initial analysis, accept the defaults for your first practice file. You should see a listing of instructions and, when you select a function, pseudocode in the Decompiler pane.
Ghidra CodeBrowser with an imported practice program open, a function selected in Listing, and its pseudocode visible in Decompiler

Start with a harmless, small program. A Windows system executable contains far more code than you need for a first exercise, and an unknown download may need special handling. Keep the original file separate from your project; an external SSD or backup drive can help if you need to preserve samples and notes.

Documentation reviewed: October 23, 2026. The published documentation lists Ghidra 12.1.4, dated September 21, 2026. Use the installation requirements for the release you download; Java requirements can differ between releases.

What does Ghidra actually show you?

What is Ghidra and Why is it Important? image 1

Ghidra is a reverse-engineering framework. Disassembly turns a program’s machine-code bytes into processor instructions. Decompilation turns those instructions into approximate higher-level code, often called pseudocode. Both help you work out what a program does without running it.

The distinction matters. Compilation can discard original names, comments, formatting, and some type information. Ghidra helps you infer behavior; its decompiler doesn’t recover the developer’s original project. Some programs also retain more useful structure than others.

In CodeBrowser, select a function in the Listing and compare its instructions with the Decompiler pane. Follow references to see where a function is called. Search for strings, rename functions as you understand them, and add comments to record your reasoning. The side-by-side view is clever: each useful name you add makes the next part easier to read.

Ghidra can also help with firmware, vulnerability research, software compatibility, and malware analysis. Examining a file without executing it is static analysis. Observing it while it runs is dynamic analysis, which calls for a controlled environment when the file is suspicious. Ghidra itself isn’t a malware sandbox; virtual machine software can provide part of a separate analysis setup.

Why was Ghidra’s release a big deal?

The National Security Agency (NSA) developed Ghidra and announced its public release at RSA Conference 2019.

What is Ghidra and Why is it Important? image 2

The useful part for a learner is access: Ghidra is free and open source under the Apache License 2.0, so there’s no license fee and its source code is public. It combines a decompiler, support for many binary formats and processor types, scripting, and shared-project tools. Its documentation also covers headless analysis for automation, PyGhidra, and Ghidra Server.

Current Ghidra documentation index with the Getting Started, headless analysis, PyGhidra, and Ghidra Server documentation links visible

Open source lets people inspect and extend Ghidra. It isn’t a guarantee that every defect has been found, so obtain releases through the official project and check published release information. The software you analyze has its own ownership and license terms; access to Ghidra doesn’t grant permission to copy or distribute someone else’s program.

Ghidra isn’t the only serious option. IDA Pro and Binary Ninja have different interfaces, licensing, and extension ecosystems; radare2 and Cutter offer other open-source workflows. I’d choose Ghidra first when the license fee matters and you want a capable graphical starting point. The learning curve is real, especially once assembly language and unfamiliar executable formats enter the picture.

Use shared projects when you’re working with a team

Ghidra supports shared projects through Ghidra Server. That can keep analysts’ changes in one place, but it requires a server, user access, compatible client versions, and backups. For one person learning with a practice file, the local project in the steps above is simpler. A cloud storage service may be useful for copies of notes, but it doesn’t replace the server’s shared-project workflow.

What should you try next?

  1. Write or obtain a small program you’re allowed to inspect, then import it into a new Ghidra project. Pick one function and compare its Listing with its Decompiler output.
  1. Rename a function after you’ve worked out its purpose. Add a comment explaining the evidence you used. When you reopen the project, you should see your changes in context.
  1. Use the Ghidra documentation to find the Getting Started material and learn how to follow references, inspect strings, and identify data types.
Ghidra Getting Started documentation page listing the create-a-project, import-a-program, and run-analysis topics
  1. Before handling malware or confidential software, confirm you’re authorized to analyze it and set up an isolated environment. Preserve the original file and your notes so you can repeat your analysis.

Ghidra’s local project and decompiler make it a gem for learning how a program works beneath its source code, and I’d recommend starting with a small practice file. If the output stays confusing, the missing piece is usually knowledge of the program’s processor, file format, or compiler behavior, not a button that restores the original source.