A powerful Ghidra plugin that integrates Large Language Models (LLMs) directly into Ghidra to enhance reverse engineering workflows with code analysis and enhancement capabilities.
- Function Rewrite: Improve code readability through function renaming, variable renaming, type inference, function prototype updating, and adding contextual comments to make decompiled code more human-readable
- Code Explanation: Detailed explanations of function logic and behavior
- Code Analysis: Vulnerability detection and security analysis
- Context Menu Integration: Right-click functions for instant model analysis
- Console Interface: Dedicated console for viewing model responses and results
- Flexible Configuration: Easy setup through configuration panel
- Stream Processing: Real-time model response streaming for better user experience
-
Clone the Repository:
git clone https://github.com/ZeroDaysBroker/GhidraGPT.git cd GhidraGPT -
Build the Plugin:
GHIDRA_INSTALL_DIR=/path/to/ghidra mvn clean package
The built extension will be at
target/GhidraGPT-x.y.z.zip -
Install in Ghidra:
- Open Ghidra
- Go to
File → Install Extensions - Click the
+button and selecttarget/GhidraGPT-x.y.z.zip - Restart Ghidra
- Enable the plugin via
File → Configure → Analysis → GhidraGPTPlugin
-
Configure API Keys:
- Open Ghidra and navigate to the GhidraGPT configuration panel
- Enter your preferred model service API key
- API keys are automatically encrypted and stored securely
- OpenAI: GPT models
- Anthropic: Claude models
- Google Gemini: Gemini models
- Cohere: Command models
- Mistral AI: Mistral models
- DeepSeek: DeepSeek models
- Grok (xAI): Grok models
- Ollama: Bring your own model
- OpenAI Compatible: Bring your own compatible OpenAI compatible API
Contributions are welcome! Please feel free to submit issues, feature requests, or pull requests.
This project is licensed under the terms specified in the LICENSE file.
- Ghidra: Compatible with Ghidra 10.0+
- Java: Java 11+
- Maven: Build system
GhidraGPT - Enhancing reverse engineering with the power of AI

