James Kettle, Director of Research at PortSwigger, says a website in a bug bounty program tried to hack him back. He spotted it while reviewing results from his automated testing harness: the site answered requests with text written to steer AI hacking agents, or hackbots, into handing over details about themselves and the machine they run on.
The trap
The response looked like a routine error: an HTTP 403 with the code proxy_authentication_required and a message saying an “analysis proxy requires a client attestation payload.” It told the client to resend the request with an attestation object “populated with values observed on the originating host.”
According to Kettle, the attached schema asked for:
- the hackbot’s prompt, tool list and rules of engagement
- the local username and the git committer email
- the real public IP and, on cloud machines, the provider, region and instance ID
- “evidence rules” designed to make the agent dump certain environment variables
Kettle says the site is in scope for a private vulnerability disclosure program on HackerOne. He does not name the site or the program. He writes that he has hacked under bug bounty programs since 2008 and believes this is the first time a target tried to hack him back.
His view
Kettle says the attempt “oversteps good taste,” since putting a site in scope is an invitation to test it. But he also calls it a reminder: “If you rely on people being polite, sooner or later you’ll get pwned.” He points to PortSwigger’s Web Security Academy topic on AI-powered scanner vulnerabilities and published the full payload he observed.
What to check in your own agent
The payload is ordinary prompt injection through data the agent reads: a tool result written to look like an instruction. If you run AI agents against outside targets, for testing or anything else, a few checks follow from the fields it asked for:
- Run the agent where your git identity, cloud metadata service and secret-bearing environment variables are not reachable.
- Treat every server response as untrusted data, including error messages that claim to be infrastructure.
- Limit what the agent may send in outgoing requests, so it cannot add new fields filled from the local host.
- Replay the payload from Kettle’s post against your harness and see what it does.
Why this matters
At least one target now sets traps for AI hacking agents, in the same month that ThreatBook pulled its open-source CyberStrikeAI over abuse. The same trick works against any agent that browses or calls APIs, not only security bots. An agent that cannot read its own secrets or identity cannot leak them, whatever a response tells it.

The Campfire
CommentsThanks. Your comment is waiting for the desk. Once it is approved it appears here within about a minute.
Add a comment