+
Skip to content

Enhances Ghidra with ChatGPT-powered features for analyzing, summarizing, documenting, and identifying vulnerabilities in binary functions. Includes support for decompilation analysis, xref tracing, function signature suggestions, and batch processing.

License

Notifications You must be signed in to change notification settings

cldrn/chatgpt-whisperer

Repository files navigation

License GitHub tag (latest by date) Follow @calderpwn

ChatGPTWhisperer for Ghidra

ChatGPTWhisperer is a Ghidra plugin that integrates OpenAI's ChatGPT to assist with reverse engineering tasks. It enables AI-powered function analysis, vulnerability detection, documentation, and batch processing within the Ghidra UI.

Latest Ghidra version tested on: 11.4.2

Watch how it works!


Features

Function Analysis

  • Describe Function – Summarize what the current function does.
  • Detect Vulnerabilities – Perform a vulnerability audit of the selected function.
  • Ask a Custom Question – Send your own prompt along with the function code.
  • Explain with Xrefs – Analyze cross-references to understand function context.

Signature Assistance

  • Suggest Function Signature – Let ChatGPT suggest return type, name, and parameters.
  • Update Function Signature – Apply GPT-suggested function names, return types, and parameters.
  • Batch Update Signatures – Automatically apply improved signatures across filtered functions.

Batch Operations

  • Batch Function Analysis – Identify or analyze vulnerabilities across all (or filtered) functions.
  • Batch Signature Updates – Rename and retype functions in bulk with GPT.
  • Filter Support – Optionally limit batch actions to function names containing a substring.

Settings and Customization

  • Set OpenAI Token – Enter your API key.
  • Set Temperature – Control randomness of responses (default: 0.3).
  • Select Model – Choose from supported OpenAI models (e.g., gpt-4o, gpt-3.5-turbo).
  • Assistant Persona – Customize the assistant's behavior/personality.
  • Toggle Append to Comment – Automatically append responses as comments to functions.
  • Export/Import Settings – Save or load configuration to a file.

Installation

Compatibility Note: If you're using Ghidra 11.3.1, install a plugin version labeled 11.3.1.x. If you're using Ghidra 11.3.2, install a plugin version labeled 11.3.2.x. Match the plugin version to your exact Ghidra version for best compatibility.

  1. Install the .zip file into Ghidra via File > Install Extensions.
  2. Open the plugin through the Tools menu.

Building the Extension

  1. Use Gradle to compile by setting your local Ghidra installation path:

    gradle -PGHIDRA_INSTALL_DIR=<Ghidra Path>
  2. The extension will be generated as a .zip inside the /dist folder.


Requirements

  • A valid OpenAI API Token (can be set via environment variable OPENAI_TOKEN or through the UI)
  • Internet access to connect to OpenAI’s API

Default Assistant Persona

You are an expert reverse engineering assistant trained in analyzing low-level code, including firmware, embedded systems, and decompiled binaries. Your role is to explain complex logic, uncover vulnerabilities, and suggest improvements based on secure coding principles. You understand ARM, C, memory layout, and common patterns found in real-world devices.


License

Apache License, Version 2.0. Contributions welcome!


Credits

Inspired by GhidraChatGPT and developed by PwnLabMX with ❤️ and reverse engineering in mind.


Legal Notice

This plugin is provided "as is" without any warranty or guarantee of any kind, express or implied. The use of this plugin is at the sole risk and responsibility of the user. By using this plugin, you acknowledge and agree that:

  • You are solely responsible for how you use the plugin and for the results obtained from its usage.
  • The authors and contributors are not liable for any damages, data loss, system compromise, or other issues that may arise directly or indirectly from the use of this software.
  • You must comply with all applicable laws, regulations, and terms of service for any platform or software you analyze or interact with using this tool.
  • This project is not affiliated with or endorsed by the NSA, the Ghidra project, or OpenAI.

Always use this plugin responsibly and ethically.

About

Enhances Ghidra with ChatGPT-powered features for analyzing, summarizing, documenting, and identifying vulnerabilities in binary functions. Includes support for decompilation analysis, xref tracing, function signature suggestions, and batch processing.

Resources

License

Stars

Watchers

Forks

Packages

No packages published
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载