Skip to content

Claude + Burp MCP-Assisted Penetration Testing

Claude + Burp MCP-Assisted Penetration Testing

Section titled “Claude + Burp MCP-Assisted Penetration Testing”

There are many approaches to agent-driven vulnerability discovery today. This post documents one of them: having an agent drive Burp through MCP. Strictly speaking, this is semi-automated — it’s assisted penetration testing, not a fully automated solution.

For the agent client we’ll use Claude Code, and for Burp’s MCP we’ll use the official extension.

The extension can be installed directly from the Burp BApp Store. It’s called MCP Server, and once installed an MCP tab appears in the extension tabs. Let’s walk through what it offers.

The first section holds the MCP server configuration:

Enabled: toggles the MCP server on and off.
Enable tools that can edit your config: whether an external agent may modify Burp's settings through MCP.
This is unchecked by default; the gray warning below also notes that it can execute code.
Require approval for HTTP requests: HTTP requests must be approved before they execute.
Require approval for project data access: accessing project data requires approval. The sub-options
below cover the specific project data — HTTP history, WebSocket history, and Organizer. Checking a
sub-option means that data is always accessible, i.e., no approval needed.
Filter config credentials: filters credentials from the configuration, so that sensitive
authentication data is stripped before it's passed to the LLM, preventing information leakage.

image-20261021111444078

The second section is for auto-approved targets. When an agent drives Burp through MCP, its actions normally require approval. If that becomes tedious, you can add a target here and its operations will no longer need approval.

image-20261021112229231

The third section sets the port the MCP server listens on. The default is 9876.

image-20261021112922792

You can verify the service is up by sending a request to that port with curl:

image-20261021113133569

Because the server is exposed over SSE (communication over HTTP) by default, it’s a long-lived connection: after connecting it waits for further operations, so the terminal stays in a waiting state. The URL is meant for MCP clients — opening it directly in a browser will report an unauthorized error.

The fourth section covers installation. If you’re using Claude Desktop, click the first button to install directly. If your MCP client doesn’t support SSE and requires stdio communication instead, you’ll need the proxy jar file Burp provides. Under stdio, the client starts a process that relays messages: the process passes messages to the server and relays the server’s messages back to the client.

image-20261021113747059

Let’s test both the SSE and stdio connection methods. For Claude’s MCP config I’ll use project scope rather than adding it globally — create a folder and add an .mcp.json file inside it with the following contents:

{
"mcpServers": {
"burp": {
"type": "http",
"url": "http://127.0.0.1:9876"
}
}
}

Here type is http. You can also use sse, but Claude has marked SSE as deprecated — it’s the old way. The new way is HTTP; both ultimately communicate over HTTP.

Then open claude in that folder and run the /mcp command to see the tools Burp exposes:

image-20261021114753021

The other option is stdio. Save the proxy jar from Burp’s MCP panel, put it in a directory of your choosing, and point Claude’s MCP config at it. The configuration looks like this — note the jar requires Java 21 or later.

{
"mcpServers": {
"burp": {
"type": "stdio",
"command": "java",
"args": [
"-jar",
"C:\\Users\\Administrator\\Desktop\\test\\mcp-proxy.jar",
"--sse-url",
"http://127.0.0.1:9876"
]
}
}
}

Here I had an AI write a simple Python script with Flask exposing a handful of endpoints, ran it locally, and used it as the test target. I won’t paste the code — any model can produce something equivalent.

There are many possible testing approaches here; the question is which ones actually help you. We’ll use a fairly common one: assume we’ve already done manual testing, or clicked through all the functionality, and Burp’s history already contains the relevant requests. We can have Claude read the target information from history, analyze it, write test PoCs and send requests to verify, and finally push confirmed findings to Repeater for manual review. Based on that idea, I had AI draft a prompt, as follows:

# Role
You are an AI security testing assistant with experience in web penetration testing, API security
testing, and vulnerability validation. You retrieve HTTP traffic through the official Burp Suite MCP
Server, execute authorized test requests, and assemble reproducible evidence of vulnerabilities.
# 1. Objective
For a target I explicitly designate and that is already authorized, read Burp HTTP History, map the
attack surface, identify vulnerability classes worth testing, produce a validation plan, write safe
and non-destructive PoCs, and execute limited verification requests through Burp within the
authorized scope.
If you find candidate vulnerabilities with sufficient validation value, send the relevant requests to
Burp Repeater for my manual review.
# 2. Scope
Only test the target, ports, and paths I explicitly specify in the current task. Do not automatically
expand the test scope just because other domains appear in History.
Before starting, confirm:
- The target scope and permitted testing actions.
- The Burp MCP tools currently available.
- The range of HTTP History that can be read.
- Whether sending requests is allowed, and which operations require human approval.
If the scope is unclear, ask me first; do not infer authorization on your own.
# 3. History Analysis
1. Read the existing HTTP History for the specified target.
2. Extract request methods, paths, parameters, headers, cookies, content types, status codes, and
response characteristics.
3. Group by endpoint function and authentication state.
4. Identify login, query, modification, upload, download, order, payment, admin, and other sensitive
business entry points.
5. For each candidate endpoint, explain why it is worth testing.
6. Distinguish observed facts, hypotheses awaiting validation, and items that cannot currently be
determined.
Do not assert that a vulnerability exists based solely on a URL, parameter name, or HTTP status code.
# 4. Vulnerability Coverage Matrix
Select the applicable test types based on the actual endpoints; at minimum consider:
1. Authentication, authentication bypass, session management, JWT validation.
2. Unauthorized access, horizontal privilege escalation, vertical privilege escalation, IDOR/BOLA,
function-level authorization.
3. SQL injection, NoSQL injection, command injection, LDAP/XPath injection, template injection.
4. Reflected, stored, and DOM-based XSS, HTML injection, CSRF, CORS, open redirect.
5. Path traversal, arbitrary file read, upload/download validation, file inclusion, insecure
deserialization.
6. SSRF, XXE, Host header injection, caching issues, WebSocket authorization.
7. Race conditions, duplicate submission, amount and quantity validation, order state, and other
business logic flaws.
8. API data exposure, mass assignment, GraphQL authorization flaws, sensitive information disclosure.
9. Security misconfiguration, exposed debug endpoints, exposed backup files, and known vulnerable
components.
Only test items that have a real endpoint basis, suit the current environment, and can be verified
safely. Mark tests that require a special environment, additional identities, or that have side
effects as pending manual verification.
# 5. PoC Writing and Execution
1. First produce a test plan listing baseline requests, test requests, expected evidence, risks, and
sources of false positives.
2. Start with low-impact validation methods and keep each request as close to the original as
possible.
3. PoCs are only for confirming whether a vulnerability exists; they must not include destructive
exploitation, persistence, command execution payloads, real data exfiltration, or any other
post-exploitation behavior.
4. Do not expand the target scope, increase request frequency, or start large-scale scanning on your
own.
5. For operations involving data modification, funds, orders, file writes, external network
interaction, concurrent races, or other potential side effects, explain the risk to me first and
wait for explicit approval.
6. For each candidate vulnerability, retain the original request, test request, response evidence,
reasoning, and the process used to rule out false positives.
7. Do not fabricate test results, and do not describe tests that were not executed as completed.
# 6. Verdicts
Classify results as:
- Confirmed: sufficient, reproducible evidence supports the vulnerability.
- Suspected: an anomaly exists, but the evidence is insufficient to rule out other causes.
- Unconfirmed: validation cannot currently be completed safely or effectively.
- Not found: applicable tests were executed but yielded insufficient evidence.
Explicitly record the test coverage and untested items. Do not describe the absence of findings as
the absence of vulnerabilities.
# 7. Repeater Delivery
For candidate vulnerabilities worth reviewing:
1. Prefer to send the relevant requests to Repeater using the actually available Burp MCP tools.
2. Preserve the necessary headers, cookies, parameters, and request bodies where possible.
3. For each candidate request, attach the vulnerability type, endpoint location, testing purpose,
key response differences, and current verdict.
4. If the current MCP tools do not support creating or sending Repeater requests, state the
limitation clearly; do not claim it was completed.
5. Sending to Repeater only means handing off a request for review; it does not mean the
vulnerability is confirmed.
# 8. Final Report
Output:
1. Target scope and testing constraints.
2. History endpoint inventory.
3. Vulnerability coverage matrix and untested items.
4. Candidate vulnerabilities and priorities.
5. For each vulnerability: PoC, execution result, evidence, and false-positive exclusion.
6. Repeater delivery results.
7. Remediation recommendations and a manual review checklist.
First check the available Burp MCP tools and analyze the existing History for the specified target.
Output the attack surface, candidate vulnerabilities, and test plan first; do not send test requests
without my confirmation.

When I tested this, I expected it to ask me about the target scope — instead it pulled it directly from Burp’s scope.

image-20261021135332174

It extracts all the records for the target, analyzes them, lists the relevant information and which vulnerabilities are worth testing, and finally presents a plan:

image-20261021135600243

You can review the plan and see whether anything needs adding. Here I just let it start testing. When it finishes, it sends the relevant requests to Repeater — and as you can see, the requests are genuinely harmless: the command execution is an echo. That matters a lot, since it keeps the AI from overstepping or going out of scope and causing unnecessary trouble.

image-20261021140239006

The results were quite good. Since the target lab’s code was written by another model, it found every vulnerability with none missed. There was one reflected XSS that the original model hadn’t mentioned and Claude didn’t report either — an error message on login echoed the username, and the username could be changed into something the JS engine would parse.

Claude can also crawl URLs, build PoCs, and send requests to verify. So why involve Burp at all? It’s important to understand that Claude can do those things on its own — but other capabilities are much more convenient with Burp: Collaborator for out-of-band testing, Organizer for diffing, Intruder for brute force, and so on. These are where Claude falls short; in effect, we’re plugging in a professional testing suite. In many cases, understanding why you’re doing something matters more than how to do it.

Xiaozao InfoSec: focused on AI security, including but not limited to LLM security, agent security, robotics security, and AI for cybersecurity. Welcome to learn together.