burpgpt leverages the power of AI to detect security vulnerabilities that traditional scanners might miss. It sends web traffic to an OpenAI model specified by the user, enabling sophisticated analysis within the passive scanner. This extension offers customisable prompts that enable tailored web traffic analysis to meet the specific needs of each user. Check out the Example Use Cases section for inspiration.
The extension generates an automated security report that summarises potential security issues based on the user's prompt and real-time data from Burp-issued requests. By leveraging AI and natural language processing, the extension streamlines the security assessment process and provides security professionals with a higher-level overview of the scanned application or endpoint. This enables them to more easily identify potential security issues and prioritise their analysis, while also covering a larger potential attack surface.
Warning
Data traffic is sent to OpenAI for analysis. If you have concerns about this or are using the extension for security-critical applications, it is important to carefully consider this and review OpenAI's Privacy Policy for further information.
Warning
While the report is automated, it still requires triaging and post-processing by security professionals, as it may contain false positives.
Warning
The effectiveness of this extension is heavily reliant on the quality and precision of the prompts created by the user for the GPT model. For specific tasks, such as evaluating the robustness of a cryptographic protocol within JavaScript files, it's essential to craft a well-defined prompt that incorporates relevant request/response data. This targeted approach will help ensure the GPT model generates accurate and valuable results for your security analysis.
- Provides an additional passive scan check, enabling users to submit
HTTPrequest and response data to anOpenAI-controlledGPTmodel for security analysis, through the use of a placeholder system. - Empowers users to customise prompts and unleash limitless possibilities for interacting with
OpenAImodels. Browse through the Example Use Cases for inspiration. - Leverages the power of
OpenAI's GPTmodels to detect potential security vulnerabilities in the scanned application. - Allows the user to select the most suitable
OpenAImodel from the available options. - Offers easy
API keyrotation to provide greater control over billing and usage. - Integrates seamlessly with
Burp Suite, allowing for easy and transparent use once configured. It also displays the analysis results directly within theBurp UI, enabling efficient post-processing of the scan results.
-
Ensure you have Gradle installed and configured.
-
Download the
burpgptrepository:git clone https://github.com/aress31/burpgpt cd .\burpgpt\
-
Build the standalone
jar:gradle shadowJar
To install burpgpt in Burp Suite, first go to the Extendensions tab and click on the Add button. Then, select the burpgpt-all jar file located in the .\lib\build\libs folder to load the extension.
Before using burpgpt, the user needs to fill in their OpenAI API key and select/change a model within the settings panel available on the Burp Suite menu bar. The user can also tweak or use custom prompts within the settings panel.
Once the OpenAI model is configured, all passively scanned items would be sent to the selected OpenAI model for analysis based on the user's prompt. The prompt accepts placeholders that are post-processed prior to sending to the OpenAI model to replace with the relevant request/response values.
Here is a list of the supported placeholders in the burpgpt extension:
{IS_TRUNCATED_PROMPT}- Abooleanvalue that indicates whether the prompt has been truncated to fit within the2048 characterlimit imposed by mostGPT-3.5models'maxTokensvalue. This value is programmatically set by the extenstion.{URL}- The URL of the scanned request.{METHOD}- The HTTP request method used in the scanned request.{REQUEST_HEADERS}- The headers of the scanned request.{REQUEST_BODY}- The body of the scanned request.{RESPONSE_HEADERS}- The headers of the scanned response.{RESPONSE_BODY}- The body of the scanned response.
These placeholders can be used in the custom prompt to dynamically generate a request/response analysis prompt that is specific to the scanned request.
The following list of example use cases showcases the bespoke and highly customisable nature of burpgpt, which enables users to tailor their web traffic analysis to meet their specific needs.
-
Identifying potential vulnerabilities in web applications that use a crypto library affected by a specific CVE:
Analyse the request and response data for potential security vulnerabilities related to the {CRYPTO_LIBRARY_NAME} crypto library affected by CVE-{CVE_NUMBER}: Web Application URL: {URL} Crypto Library Name: {CRYPTO_LIBRARY_NAME} CVE Number: CVE-{CVE_NUMBER} Request Headers: {REQUEST_HEADERS} Response Headers: {RESPONSE_HEADERS} Request Body: {REQUEST_BODY} Response Body: {RESPONSE_BODY} Identify any potential vulnerabilities related to the {CRYPTO_LIBRARY_NAME} crypto library affected by CVE-{CVE_NUMBER} in the request and response data and report them. -
Scanning for vulnerabilities in web applications that use biometric authentication by analysing request and response data related to the authentication process:
Analyse the request and response data for potential security vulnerabilities related to the biometric authentication process: Web Application URL: {URL} Biometric Authentication Request Headers: {REQUEST_HEADERS} Biometric Authentication Response Headers: {RESPONSE_HEADERS} Biometric Authentication Request Body: {REQUEST_BODY} Biometric Authentication Response Body: {RESPONSE_BODY} Identify any potential vulnerabilities related to the biometric authentication process in the request and response data and report them. -
Analysing the request and response data exchanged between serverless functions for potential security vulnerabilities:
Analyse the request and response data exchanged between serverless functions for potential security vulnerabilities: Serverless Function A URL: {URL} Serverless Function B URL: {URL} Serverless Function A Request Headers: {REQUEST_HEADERS} Serverless Function B Response Headers: {RESPONSE_HEADERS} Serverless Function A Request Body: {REQUEST_BODY} Serverless Function B Response Body: {RESPONSE_BODY} Identify any potential vulnerabilities in the data exchanged between the two serverless functions and report them. -
Analysing the request and response data for potential security vulnerabilities specific to a single-page application (SPA) framework:
Analyse the request and response data for potential security vulnerabilities specific to the {SPA_FRAMEWORK_NAME} SPA framework: Web Application URL: {URL} SPA Framework Name: {SPA_FRAMEWORK_NAME} Request Headers: {REQUEST_HEADERS} Response Headers: {RESPONSE_HEADERS} Request Body: {REQUEST_BODY} Response Body: {RESPONSE_BODY} Identify any potential vulnerabilities related to the {SPA_FRAMEWORK_NAME} SPA framework in the request and response data and report them.
- Retrieve the precise
maxTokensvalue for each model to transmit the maximum allowable data and obtain the most extensiveGPTresponse possible. - Implement persistent configuration storage to preserve settings across
Burp Suiterestarts. - Enhance the code for accurate parsing of
GPTresponses into theVulnerabilitymodel for improved vulnerability reporting.
The extension is currently under development and we welcome feedback, comments, and contributions to make it even better.
If this extension has saved you time and hassle during a security assessment, consider showing some love by sponsoring a cup of coffee ☕ for the developer. It's the fuel that powers development, after all. Just hit that shiny Sponsor button at the top of the page or click here to contribute and keep the caffeine flowing. 💸
Did you find a bug? Well, don't just let it crawl around! Let's squash it together like a couple of bug whisperers! 🐛💪
Please report any issues on the GitHub issues tracker. Together, we'll make this extension as reliable as a cockroach surviving a nuclear apocalypse! 🚀
Looking to make a splash with your mad coding skills? 💻
Awesome! Contributions are welcome and greatly appreciated. Please submit all PRs on the GitHub pull requests tracker. Together we can make this extension even more amazing! 🚀
See LICENSE.