TL;DR: Free-form prompts produced the fastest and most reliable functional PoCs in Burp AI tests, with SSTI resolved in 44 seconds and insecure deserialization in 6 requests, while more structured prompt formats consumed more requests and introduced hallucinations, according to PortSwigger. The practical lesson is that AI-assisted testing still depends on human context engineering, not just tool capability.
At a glance
What this is: This is a PortSwigger guest analysis of Burp AI testing that found prompt style materially changed PoC speed, request count, cost, and adherence to guidance.
Why it matters: It matters to practitioners because AI-assisted exploitation and validation workflows only stay useful if security teams can constrain context, stop conditions, and output quality without wasting credits or missing the signal.
By the numbers:
- Only 44% of developers are reported to follow security best practices for secrets management, exposing a significant developer behaviour gap.
- The average estimated time to remediate a leaked secret is 27 days, despite 75% of organisations expressing strong confidence in their secrets management capabilities.
- When AWS credentials are exposed publicly, attackers attempt access within an average of 17 minutes - and as quickly as 9 minutes in some cases.
👉 Read PortSwigger's analysis of how Burp AI performs in PoC generation
Context
Burp AI in this post is being evaluated as a workflow accelerator for web application testing, not as an autonomous replacement for a pentester. The core issue is context control: when an AI tool is given too little detail it guesses, and when it is given too much or poorly structured detail it can drift, over-test, or hallucinate. For identity and access practitioners, that same pattern appears whenever security automation is fed weakly scoped prompts, broad permissions, or ambiguous guardrails.
The article is also about how AI-assisted testing changes the operational cost of exploration. A tool that can generate a working proof of concept in under a minute can compress validation cycles, but it also makes disciplined prompting, stop conditions, and scoped inputs more important. That is relevant to NHI and agentic AI governance because the same control problem appears whenever software systems are allowed to decide what to test, what to call, and when to stop.
Key questions
Q: How should security teams structure AI-assisted testing prompts to get reliable results?
A: Use a short, repeatable prompt that names the objective, the specific parameter or object under test, the expected vulnerability class, and the stop condition. That keeps the model focused on the right behaviour and makes the output easier to reproduce, review, and compare across engagements.
Q: Why do AI tools drift when prompts contain too much or too little context?
A: Too little context forces the model to guess, which increases generic payloads and wasted requests. Too much or poorly separated context can blur the target and cause the model to chase irrelevant branches. The best results come from concise system context plus a tightly scoped scenario.
Q: What breaks when stop conditions are not built into AI security workflows?
A: The model keeps testing after it has already confirmed the issue, which increases cost, adds noise, and can create unnecessary follow-up traffic. In security testing, that extra activity is not harmless. It consumes time, obscures the useful signal, and makes review harder.
Q: How should teams decide whether AI-assisted PoC generation is safe to use in production testing?
A: Use it only when the workflow is bounded, logged, and human-reviewed. If the task can change privilege state, touch authenticated sessions, or generate exploit payloads, a clear approval and review step is necessary before execution. Speed is useful only when the guardrails are explicit.
Technical breakdown
Prompt structure and tool guidance in AI-assisted testing
Burp AI behaves like a bounded decision-support system: it uses the prompt, surrounding context, and request/response history to choose the next test. In the examples here, free-form prompts worked best because they preserved the task intent while leaving the model enough room to reason about payload selection and test sequencing. Structured JSON and heavily templated prompts sometimes improved reproducibility, but they also increased the chance of irrelevant steps or hallucinated output. The key technical variable is not just prompt length, but how clearly the model can infer the objective, the target element, and the stop condition.
Practical implication: define the target, expected outcome, and stop rule in a small, repeatable prompt pattern.
Why context injection changes PoC quality
The post separates context from scenario for a reason. Context tells the model what the system is, how it behaves, and what constraints exist. Scenario narrows the current test to a single parameter, path, or header. When those layers are mixed or omitted, the model compensates by widening its search, which raises cost and can produce unhelpful payloads. When they are aligned, the model is more likely to recognise the relevant vulnerability class, focus on the right reflection point, and stop once confirmation is achieved.
Practical implication: provide concise system context, then isolate the exact test scenario to keep the model on task.
Hallucination risk in iterative security workflows
The examples show that AI tools can remain useful while still producing misleading or excessive steps. That matters because in a security workflow, extra requests are not neutral. They consume credits, increase noise, and can create false confidence if a tool appears to explore broadly but is actually drifting away from the evidence. The technical lesson is that iteration control is part of the control plane. The model needs a termination condition just as much as it needs an objective, especially when it is being used against authenticated application flows or deserialisation logic.
Practical implication: enforce explicit stop-on-confirmation rules and review any request sequence that exceeds the expected path.
Threat narrative
Attacker objective: The objective is to convert a weakly scoped test surface into a working exploit or proof of concept with minimal manual effort.
- Entry begins when the tester or attacker identifies a reflected parameter, cookie, or application behaviour that can be driven by model-assisted probing.
- Credential access or abuse occurs when the workflow reaches authenticated state changes, reflection points, or deserialised session data that can be manipulated to alter privilege or identity context.
- Impact follows when the model-generated proof of concept confirms execution, access, or another exploitable condition that can be turned into a real attack chain.
NHI Mgmt Group analysis
Prompt quality is becoming a security control, not just a usability detail. This article shows that the model’s effectiveness depends on how precisely the practitioner constrains context, scenario, and stopping conditions. In practice, that means AI-assisted testing behaves less like a black box and more like a governed workflow with control points. For identity and access teams, the parallel is obvious: if delegated runtime decisions are not scoped, the system expands its own attack surface.
AI-assisted exploitation compresses the gap between detection and proof of exploit. A tool that can arrive at a working PoC in seconds changes how quickly a weak input, cookie, or template can move from suspicion to confirmation. That shortens attacker iteration as much as it helps defenders. The governance question is whether the organisation can detect and bound these AI-accelerated test cycles before they become live abuse patterns.
Context scoping is the closest thing this workflow has to least privilege. The article repeatedly shows that smaller, sharper prompts produce better outcomes because the model is less likely to overreach. That maps directly to NHI and agentic AI governance: define the task, limit the surface, and require a clear stop condition. Without that discipline, the system may still succeed, but it will do so with unnecessary reach and unnecessary risk.
Detection-response latency becomes the operational issue when AI speeds up exploitation. If the proof of concept can be generated in under a minute, the defender’s review cycle cannot rely on long manual triage. The security function has to shorten validation, escalation, and containment decisions to match the pace of machine-assisted probing. Otherwise the tool simply turns a test harness into a faster attacker workflow.
What this signals
AI-assisted testing shortens the time between hypothesis and proof, which means security teams need tighter workflow controls around prompts, approvals, and output review. For identity programmes, that same pattern applies to any delegated system that can make access-related decisions or call tools on its own: scope first, then automate. The relevant benchmark is not whether the model can act, but whether it can be forced to stay inside the task boundary.
Prompt boundary drift: this is the operational risk exposed here, and it matters whenever a model is used in a live security workflow. The more rapidly a system can produce a functional PoC, the more important it becomes to log inputs, constrain outputs, and preserve human sign-off for anything that affects credentials, sessions, or privilege state. For the broader governance picture, the pace of AI-assisted execution is now close enough to demand explicit control ownership rather than informal usage.
The article’s practical lesson is that security teams should treat AI testing tools as governed instrumentation, not convenience software. Where the workflow intersects with identity and secrets, pair it with least-privilege access to the target environment and a review path for any generated exploit artefact. That keeps the tool useful without letting it become an unbounded decision engine.
For practitioners
- Standardise prompt templates for security automation Define a minimum prompt pattern with objective, target element, expected outcome, and stop condition so AI-assisted testing stays reproducible and bounded. Reuse the same structure across labs, application tests, and internal review workflows.
- Separate system context from test scenario Keep broader application context in a short note block and put the exact parameter, header, or cookie under test in a single scenario line. That reduces drift, keeps the model focused, and makes reviews easier.
- Enforce stop-on-confirmation rules Require the workflow to stop immediately after a confirmed vulnerability, then log the request sequence and evidence for manual review. This limits unnecessary probing and keeps credits and triage effort under control.
- Review AI-generated payloads before reuse Treat any AI-generated payload, modification sequence, or exploit path as untrusted until a human validates it against the application’s actual behaviour. Hallucinations are part of the operating model, not an edge case.
Key takeaways
- AI-assisted security testing is only as reliable as the prompt structure and stop conditions that shape it.
- Free-form prompting in this test produced the best balance of speed, cost, and adherence to guidance.
- Security teams should govern AI testing like any other privileged workflow, with scope, logging, and human review.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
NIST CSF 2.0, NIST SP 800-53 Rev 5, CIS Controls v8 and NIST AI RMF set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| NIST CSF 2.0 | PR.AC-4 | Scoped prompt handling and stop conditions map to access control discipline. |
| NIST SP 800-53 Rev 5 | AC-6 | The article’s boundary control problem aligns with least privilege for automated workflows. |
| CIS Controls v8 | CIS-6 , Access Control Management | Access scoping and review are central when AI tools can generate live exploit paths. |
| NIST AI RMF | MANAGE | AI workflow governance and human review fit the manage function for operational controls. |
Restrict tool permissions and review generated actions before they are executed in production-like environments.
Key terms
- Prompt Boundary Enforcement: Prompt boundary enforcement is the practice of inspecting AI prompts before they leave the browser or client application. It treats the prompt as a controlled data path, so secrets, PII, and other restricted content can be blocked, warned on, or logged according to policy before model ingestion.
- Stop Condition: A stop condition is the explicit rule that tells a tool to halt once a defined result has been reached. In AI-assisted testing, it prevents over-execution, reduces noise, and limits cost. It is a governance control as much as an operational instruction because it constrains continued action after confirmation.
- Proof of Concept: A controlled live test that checks whether a candidate provider works in the buyer's real environment with real data or realistic samples. It is used to validate performance claims, uncover integration issues, and expose gaps that written responses cannot reliably reveal.
- Session Scoping: Session scoping limits what an identity can do within a specific session, context, or task. For agentic systems, it is the difference between bounded execution and reusable authority, and it should be tied to the exact workflow that triggered the action.
What's in the full article
PortSwigger's full guest post covers the operational detail this post intentionally leaves for the source:
- The exact prompt templates used for free-form, structured, and JSON-driven testing across SSTI and deserialisation cases.
- The request counts, timings, and estimated credit consumption behind each test run, which are useful if you need to benchmark AI-assisted workflows.
- The step-by-step observations from the Web Security Academy labs, including how the tool behaved once it confirmed a vulnerability.
- The author's notes on context, highlights, and stop conditions, which are the most implementation-relevant parts for practitioners.
👉 PortSwigger's full post covers the prompt templates, lab examples, and testing notes in detail.
Deepen your knowledge
The NHI Foundation Level course, the industry's only accredited NHI security programme, covers NHI governance, machine identity security, and secrets management. It helps practitioners build the control discipline needed for any workflow that delegates sensitive access decisions.
Published by the NHIMG editorial team on August 1, 2026.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org