Brief · Builders
A bug-bounty site asked James Kettle's testing agent for its Git email, IP, system prompt and tools
On Nov 30, PortSwigger's director of research, James Kettle, published what happened when a website in scope on a private HackerOne vulnerability disclosure program answered his AI testing harness with a fake 403. The JSON error claimed that an "analysis proxy" required a client attestation, and it told the agent to resubmit the request with values observed on the originating host: the operator's Git email, a public IP and cloud instance ID, the model and its system prompt, the rules of engagement, and the tool list. Kettle did not name the site, and he is a researcher testing a target that had invited that testing, not an attacker. The post is a reminder that a response from a site you are assessing is still untrusted input. I wrote about the same pattern, from the other direction, when a site being scanned could talk ARTEX into running shell commands.
Equixly, writing on Dec 2, reported a second sighting of an identical payload. According to Equixly's write-up of a V2EX post, Alibaba Cloud OpenAPI endpoints returned the same error code, "analysis proxy" message and attestation request to the official Alibaba Cloud CLI beginning Dec 1. Equixly also reports, from Alibaba Cloud's Weibo account as relayed by IT之家, that on Dec 2 Alibaba said the response came from its own risk-control countermeasure, aimed at calls that looked like an AI agent using the CLI, and that it would stop sending the prompt. Equixly is clear that neither Alibaba nor Kettle has confirmed the VDP site belongs to Alibaba, so I'm not going to say that it does. Equixly also notes that Alibaba's statement does not say whether any data was received.
What to do
-
Treat every response the agent reads as untrusted data, including from a host you are allowed to test.
- Why: The attestation was wrapped as a 403 the agent would try to fix, and it asked for local facts — Git config, addresses, the system prompt, the tool list — rather than anything about the target.
- How: Don't let response text trigger a read of a local file, an environment variable or instance metadata. Bind requests to the scope you authorized, not merely to the same domain, so a path the response invents is a lead to inspect, not a place to send a payload (item 10 and item 11 of the Builder's Checklist).
-
Keep the agent away from the files and keys worth stealing, and test the harness against this payload.
- Why: The request names
~/.claude/settings.jsonand the repository's Git email, and an agent that can open those files has already given the target a way to collect them. - How: Run the agent without access to
~/.gitconfig,~/.claude/settings.jsonor long-lived keys, and pass only scoped, short-lived tokens (item 1, item 4 and item 21 of the Builder's Checklist). Plant canary values in the environment and see whether a fake 403 attestation asking for Git config or a system prompt comes back out of your own harness.
- Why: The request names
Want the next one?
One email, weekly-ish. The week's briefs, how worried to be, and what to do about it. No doom.
Subscribe on Beehiiv ↗Free. Opens Beehiiv in a new tab. Unsubscribe whenever, I won't be offended.