AI-augmented Burp extension auto-documents pentests but needs prompt tuning to cut false positives
The Document My Pentest extension can reliably generate accurate vulnerability notes using AI when proper prompt engineering is applied.
Security & privacy PortSwigger Research 23 Apr 2025 Tooling Prototype evidence
Published as “Document My Pentest: you hack, the AI writes it up!”
Why it matters
Automating pentest documentation can speed up reporting, but AI reliability remains limited without disciplined prompt engineering.
Summary
The authors built an open-source Burp Suite extension that watches traffic, translates inputs to regexes, and sends request/response data to PortSwigger's AI to auto-generate structured notes. It works well for clear-indicator bugs like Path Traversal, but the LLM struggles with whole-request analysis and XSS detection. Careful prompt engineering-e.g., clarifying that HTML-encoded reflections are not vulnerabilities-significantly reduces false positives. The evidence is based on the authors' own testing of the prototype, without external benchmarks.
What they found 4
- The AI performed well at identifying Path Traversal when the response clearly showed a directory listing.
“It was good at spotting Path Traversal where a response gave a clear indication that it had worked because the directory listing was displayed.”
- The AI struggled with whole-request analysis, especially for XSS detection.
“I quickly learned that the AI isn't very good at analysing a whole request and response, especially for vulnerabilities like XSS.”
- The approach did not work well for attacks like Request Smuggling.
“After a lot of testing this seemed to work pretty well but we quickly found that it wasn't suitable for other attacks such as Request Smuggling.”
- More precise prompt language eliminated many false-positive XSS reports.
“The solution to this is to create more precise language in the prompt: If the response reflection contains HTML-encoded input (e.g., <script> ), that is not a vulnerability.”
Caveats 6
- The AI isn't very good at analysing a whole request and response, especially for vulnerabilities like XSS.
- The extension was not suitable for other attacks such as Request Smuggling.
- The AI would misidentify vulnerabilities due to vague prompt instructions.
- AI struggles with full request/response analysis and certain vulnerability classes (e.g., XSS, Request Smuggling).
- Accurate detection depends heavily on carefully crafted prompts.
- The prototype was evaluated only on the authors' own testing, not on external datasets.
What’s new here 4
- Open-source Burp Suite extension that automatically records and formats pentest activity.
- Integration with PortSwigger's trusted AI to turn traffic data into human-readable notes.
- Input-to-regex translation technique to detect reflected data for XSS-like checks.
- Demonstrated that precise prompt wording reduces AI-generated false positives.