Model or dataset
weirdmachine64/GhidraGPT avatar
weirdmachine64/GhidraGPT

GhidraGPT: a decompiler-side LLM that sees one function at a time

Integrate LLM models directly into Ghidra for AI-enhanced reverse engineering.

848 stars153 forksJavaApache-2.0

At a glance

What is it?
GhidraGPT is a Ghidra extension that sends one decompiled function to a language model provider of your choice and streams the answer back into a console, with three actions that range from explaining code to renaming symbols and flagging security issues. The scope is the point: every action works on a single function with no cross-function context, so it writes good names quickly rather than analysing a program.
Who is it for?
GhidraGPT fits a reverse engineer who wants faster symbol names, a written summary of an unfamiliar function, or a second opinion on a suspicious one, and who is comfortable reviewing model output before it lands in the database. It does not fit anyone who needs program-wide reasoning, since no action sees more than one function's decompiled text, and the audit action in particular is a lead generator rather than a soundness argument.
Can I use it commercially?
Yes. Apache-2.0 is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
Is it still maintained?
Yes. The repository last received commits 126 days ago.
What is it written in?
Mainly Java, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 25, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • weirdmachine64/GhidraGPT848 ★ · +50
Star history
Repository2026-09-102026-11-25
weirdmachine64/GhidraGPT798848

50 Stars in the last 76 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

One function at a time, with the decompiler output as the only context

The interaction is deliberately narrow. You right-click a function, the plugin sends that function's decompiled C to the provider you configured, and the response streams back token by token into a dedicated GhidraGPT console panel. Depending on which action you picked, the answer is a description, a set of edits, or a review.

What the model never sees is the rest of the program. All actions operate on a single function at a time and use its current decompiler output as the only context, with no interprocedural or whole-program analysis. That constraint decides what the extension can be good at. Naming and summarising a function is a local task, and a language model is good at it. Deciding whether a copy is bounded is not local, because the answer lives in the caller's arguments.

It also means the decompiler view is the working view. Actions appear from the right-click `GhidraGPT` submenu in both the Decompiler and Listing views, so the input is whatever the function looks like at the moment you ask.

Rewrite is the action that edits your database

Three actions sit in that submenu. `Explain` generates a natural-language summary of what the selected function does, derived from its decompiled code, and changes nothing.

`Rewrite` is the one with consequences. It recovers a descriptive function name, renames local variables and parameters, infers their types, updates the function prototype and adds inline comments, then applies that markup back into the Ghidra database. In other words the model is not proposing a patch for you to paste: it is renaming symbols in your project.

That is the fastest way to make a decompiled listing readable, and it is also the step to look at before saving, since a wrong inferred type or a bad parameter name becomes part of the database. `Audit`, the third action, is the read-only one and gets its own treatment below.

Audit is a model reading one function, not static analysis

`Audit` reviews the selected function's decompiled code for security issues such as unbounded copies, integer overflows and unchecked returns. The project is explicit about what that is worth: a best-effort, single-function review by the model, not sound static analysis. It has no cross-function dataflow or call-graph context, so findings are leads to verify, not proof.

The distinction matters because decompiled C looks like C. A `memcpy` with a length that appears unbounded locally may be bounded by a caller three functions up, and no amount of care inside one function's text can settle that. The same goes the other way: a suspicious-looking size can be validated by a check a reader misses.

So the sensible use is triage. Run it over a function you are already unsure about, collect the leads, then confirm each one in the decompiler with real cross-references before you spend an afternoon on it.

The API key lands in ~/.ghidragpt/config.properties under XOR

Configuring a provider means opening the GhidraGPT panel, picking a provider and model, and entering an API key. Ollama is the exception and needs no key at all, which follows from it running models locally.

The key storage is the part worth reading twice. It is saved locally in `~/.ghidragpt/config.properties`, lightly obfuscated with XOR, which the project states is not encryption and should not be treated as secure at-rest storage. The advice that follows is to prefer a scoped, rotatable key and protect the file accordingly.

Two practical consequences follow from how weak that protection is. Anyone who can read the file can recover the key, so on a shared analysis machine the permissions on `config.properties` are the only thing standing between a colleague and your provider account. And since XOR obfuscation is reversible by anyone holding the file, the key is worth scoping narrowly and rotating on a schedule rather than treating as a stored convenience.

The build needs GHIDRA_INSTALL_DIR and hands you one zip

Installation is a clone, a Maven build pointed at your Ghidra directory, and a manual install through the Ghidra UI:

bash
git clone https://github.com/weirdmachine64/GhidraGPT.git
cd GhidraGPT
GHIDRA_INSTALL_DIR=/path/to/ghidra mvn clean package

The environment variable is the whole trick. The packaged extension is written to `target/GhidraGPT-<version>.zip`, with the version coming from the build, so the artifact name tracks the release tag rather than a fixed string.

From there it is `File` then `Install Extensions`, click `+`, select the zip and restart Ghidra. The plugin is enabled when prompted, or through `File` then `Configure` then `GhidraGPT` then `GhidraGPTPlugin`. The restart is the step people skip, and a plugin that never appears in the menu is usually a plugin Ghidra has not reloaded yet.

Ten provider rows, and two of them need no key

Providers and models are switched from the configuration panel, and for most of them the available models can be fetched live rather than typed in. The supported list:

| Provider | Notes | | --- | --- | | OpenAI | GPT models | | Anthropic | Claude models | | Google Gemini | Gemini models (OpenAI-compatible endpoint) | | Cohere | Command models | | Mistral AI | Mistral models | | DeepSeek | DeepSeek models | | Grok (xAI) | Grok models | | OpenRouter | Single key, routed access to many providers' models | | Ollama | Local models; no API key required | | OpenAI-compatible | Any endpoint implementing the OpenAI chat-completions API (custom base URL) |

Two rows are worth pulling out. Ollama runs locally, so it is the only option with no key and no outbound network. The OpenAI-compatible row is the escape hatch for anything else, since a custom base URL against the chat-completions API covers endpoints that are not on the list. Gemini reaches its models through an OpenAI-compatible endpoint rather than a native client, and OpenRouter collapses many providers behind a single key.

Requests are configurable too: model, temperature, max tokens and request timeout are all adjustable, so a slow provider can be bounded without changing the action.

Ghidra 12.1.x and JDK 21, and two releases a day apart

Requirements are pinned tightly. Ghidra 12.1.x is the target, and the project is candid that the extension declares compatibility with the Ghidra version it is built against rather than with a range. JDK 21 or newer is needed to run Ghidra 12.x, Maven is the build system, and the configured provider's API has to be reachable, except when Ollama runs locally. The declaration lives in the repository too, in `Module.manifest` and `extension.properties` beside `pom.xml`, which is where Ghidra looks rather than in prose.

The release cadence tells its own story. v1.2.1 came out on 2025-12-16, then nothing for seven months until v1.3.0 on 2026-07-21 and v1.4.0 the next day, 2026-07-22, which is also the date of the last push to `main`. Two major versions in one day after a quiet stretch reads as a rewrite or a re-release rather than an incremental line.

The licence is Apache-2.0 in the repository metadata, and the README points at the `LICENSE` file for the terms. The author is Mohamed Benchikh, and the repository carries no separate homepage.

Editorial conclusion

GhidraGPT fits a reverse engineer who wants faster symbol names, a written summary of an unfamiliar function, or a second opinion on a suspicious one, and who is comfortable reviewing model output before it lands in the database. It does not fit anyone who needs program-wide reasoning, since no action sees more than one function's decompiled text, and the audit action in particular is a lead generator rather than a soundness argument. Before you install, check the two things that will bite first: that your Ghidra is 12.1.x with JDK 21 or newer, because the extension declares compatibility against the version it was built against, and what you are willing to put in `~/.ghidragpt/config.properties`, given that the key is XOR-obfuscated rather than encrypted. Then run `Explain` before `Rewrite` on a function you care about, so you can see the model's reading of the code before it renames anything.

Frequently asked questions

Does Ghidra use AI through GhidraGPT?

GhidraGPT is a separate Ghidra extension rather than a Ghidra feature, and you install it yourself. You right-click a function, the plugin sends that function's decompiled C to the LLM provider you configured, and the response streams back into a dedicated console panel. Every action works on a single function with its current decompiler output as the only context.

What does the Rewrite action in GhidraGPT change?

It recovers a descriptive function name, renames local variables and parameters, infers their types, updates the function prototype and adds inline comments, then applies that markup back into the Ghidra database. Unlike Explain and Audit, Rewrite modifies the program rather than only reporting on it.

How much weight should GhidraGPT audit findings carry?

Treat them as leads to verify, not proof. The Audit action is a best-effort single-function review by the model looking for issues such as unbounded copies, integer overflows and unchecked returns, with no cross-function dataflow or call-graph context, so it is not sound static analysis.

Where does GhidraGPT keep the provider API key?

In ~/.ghidragpt/config.properties, lightly obfuscated with XOR. The project states plainly that this is not encryption and should not be treated as secure at-rest storage, and recommends a scoped, rotatable key with the file protected accordingly. Ollama needs no key at all since it runs locally.

Which model providers can GhidraGPT talk to?

OpenAI, Anthropic, Google Gemini through an OpenAI-compatible endpoint, Cohere, Mistral AI, DeepSeek, Grok (xAI), OpenRouter for routed access under a single key, Ollama for local models with no API key, and any OpenAI-compatible endpoint through a custom base URL. For most of them the available models can be fetched live from the configuration panel.

Official sources

  1. Issues
  2. License: Apache-2.0
  3. README
  4. Releases
  5. weirdmachine64/GhidraGPT on GitHub
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/weirdmachine64-ghidragpt.svg)](https://hysenlabs.com/projects/weirdmachine64-ghidragpt)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/weirdmachine64-ghidragpt.svg)](https://hysenlabs.com/projects/weirdmachine64-ghidragpt)

Was this useful?