PortSwigger’s James Kettle says a website listed as in scope for a private HackerOne disclosure programme tried to turn his AI testing agent against him. The attempt targeted the identity, infrastructure and instructions of whoever was doing the testing, which raises a question every bug bounty hunter running automation now has to answer.
What happened
On 30 November 2026, James Kettle, director of research at Burp Suite maker PortSwigger, published a short post saying that a target had tried to hack him back. Kettle has hunted under bug bounty programmes since 2008. He says this is the first time it has happened to him.
According to Kettle, he spotted the behaviour while going through results from his own automated testing harness. One website returned a response that looked like a proxy authentication error. It was really a set of instructions for an AI agent, telling the “client” it had to resubmit its request with an attestation object, filled in with details gathered from the machine it was running on.
Kettle says the site sits within the scope of a private vulnerability disclosure programme (VDP) on HackerOne. He has not named the organisation or the programme, and he has redacted the endpoint. His post does not say who planted the content or why, and it does not suggest that any agent actually handed data over. Everything here rests on Kettle’s account, and secnews.co.uk has not been able to verify it independently.
His verdict is blunt. Putting a site in scope is an invitation to test it, he argues, and turning on the people who accept that invitation crosses a line. In his words: “Attacking people who accept that invitation is rude.”
The technical picture
This is indirect prompt injection aimed at the tester instead of the tested. AI-driven scanners and “hackbots” read the responses they get back and decide what to do next. If the underlying model cannot tell application content from operator instructions, a hostile page can redirect its behaviour. PortSwigger’s own Web Security Academy describes the same risk. It compares the result to cross-site request forgery: the attacker cannot take an action directly, so they trick a more privileged party into taking it for them.
The fake error was designed to look authoritative. Going by Kettle’s description of the payload, which we are not reproducing, it asked for five groups of information:
- a timestamp in Beijing time, which would reveal when the agent’s operator was active
- the local operating system username and the git committer email from the repository configuration
- the real public IP address and, on cloud hosts, the provider, region and instance ID
- the agent’s identity and underlying model, with pointers to specific environment variables and AI coding tool configuration files
- the agent’s objective, rules of engagement, permitted actions and full tool inventory
It also set out “evidence rules” and warned that placeholder values would get the request marked as untrusted. That is the social engineering element: a model trying to be helpful might go and look up real values to pass the check. Successful attestation supposedly unlocked an authentication header, which offered the agent a reason to comply.
That haul would deanonymise researchers, expose testing infrastructure and reveal how a team or vendor’s agent works, making it easier to block, mislead or copy. Configuration details can also point towards API keys stored nearby.

Why it matters for UK organisations
Agentic testing is no longer a novelty in bounty work. HackerOne has been writing for some time about AI hackbots taking part in programmes and earning real rewards, and it encourages programme owners to let them in. A growing number of UK hunters and consultancies run agents against bounty scope, often on cloud instances that also hold credentials for other work.
The NCSC has already warned that prompt injection should not be thought of like SQL injection. In its view, large language models are an “inherently confusable deputy”: the risk can be reduced but may never be fully removed. This incident shows what that looks like in practice. The agent doing the testing is the confused deputy, and the target is deliberately trying to confuse it.
There are two groups to think about. The first is anyone in the UK running AI-assisted testing, whether a lone hunter, a CREST member firm or an in-house red team. A target can now attack your harness, and data protection obligations may apply if it leaks client details or colleagues’ personal data. The second is programme owners. If your scope includes content you do not fully control, such as user-generated pages or third-party widgets, someone else could plant this kind of trap in your name.
Expert view
I have some sympathy for the defenders here. Many organisations are tired of automated traffic and AI-generated reports, and a tarpit for bots is an understandable instinct. But there is a clear difference between blocking or slowing an agent and trying to pull out its operator’s identity and infrastructure details. The second looks much more like an attack than a defence, and doing it from inside a published VDP scope weakens the trust that coordinated disclosure depends on.
In my experience, the weak point in any testing setup is rarely the exploit code. It is the operational hygiene around it. When we test, the boxes doing the work should be disposable, isolated from client data and holding nothing worth stealing. Agentic tooling makes that discipline more important, because the agent reads hostile input as a matter of course and has access to a shell, a filesystem and an API key. Kettle makes the same point: if you rely on targets behaving politely, you will eventually get caught out.
What to do now
- Treat every response as hostile input. Make sure your agent’s system prompt and guardrails forbid sending host, identity or configuration data to targets, and test that rule with seeded injection pages. PortSwigger’s free Web Security Academy labs on AI-powered scanner vulnerabilities are a good place to start.
- Strip the environment. Run agents in throwaway containers or VMs with no personal git configuration, no unnecessary environment variables and no access to AI tool settings files. This maps to Cyber Essentials secure configuration.
- Limit what the agent can reach. Restrict outbound traffic to in-scope hosts, keep model API keys scoped and rotated, and never let the agent use credentials for other engagements. This is access control in Cyber Essentials terms.
- Log and review agent decisions. Flag any request the agent builds that includes local data. Kettle only caught this because he reviewed his harness output.
- Programme owners: check your scope. Make sure nothing in scope serves agent-targeting content, deliberately or through a compromised component, and say explicitly in your policy that you will not attack researchers.
- Report it. If you hit something similar, tell the platform and the programme so that patterns can be tracked.
Bottom line
A bug bounty target has tried to turn a researcher’s AI agent into an informant. Who did it, and whether it worked, is unknown, but the technique is cheap. If you run AI agents against bounty scope, assume the scope can attack back, and build your harness so that a successful injection gets the attacker nothing useful.