Alibaba Cloud API caught prompt-injecting AI agents via CLI error responses
evilsocket · x · 2026-12-04
Security researcher James Kettle (PortSwigger) disclosed that Alibaba Cloud's API responds to suspected automated abuse with a 7,153-byte fake "proxy authentication" error that asks AI agents calling its official CLI to submit an attestation object containing the operator's identity and agent instructions.
Timeline
- Nov 30: Kettle published a full payload from a website replying to his AI harness; hours later a V2EX developer reported identical wording from Alibaba Cloud, verified as genuine via TLS certificate chain.
- The injection only appears when requests carry the CLI's identifying string, after roughly an hour of normal queries.
- Dec 2: Alibaba Cloud called it a security countermeasure against suspected automated abuse and said such responses "will no longer be returned as prompts". No public record shows any agent actually surrendered the data.
Key point: prompt injection has traditionally come from hostile web pages or emails — this time it came from a party agents are built to trust: the cloud provider's own API error response, delivered over a valid TLS connection. Toolchains should treat API error responses as untrusted content.
More from coding & agent
- AI doesn't eliminate technical debt — it amplifies it at every stage — craigmullins · 2026-12-04
- treehouse: 2k-star open-source tool manages git worktrees for parallel AI agents — MikkoH · 2026-12-04
- CacheSurgeon v0.3.2: open-source proxy adds MCP rug-pull protection and prompt-cache fixes — Fickle-Connection851 · 2026-12-04
- One wrong model pick burned a 5-hour OpenCode Go quota in 8 minutes — here's the Auto routing fix — SimplyAnnisa · 2026-12-04
- Biggest AI lever for engineers isn't clever prompts, it's describing end states — gabriel1 · 2026-12-04
- 6 MCP servers eat ~30k tokens in Claude Code — one dev's context-slimming fix — for-entire-phonly · 2026-12-04