News Security news
Alibaba Cloud served AI agents planted instructions asking for user details and the agent's rules
A developer driving Alibaba Cloud through its official command-line tool and an AI agent started getting a fake error instead of normal API responses on 1 December 2026. It told the agent to send back the user's login name, Git email, public IP, model settings and its own instructions. On 2 December Alibaba Cloud said the response was its own security countermeasure and promised to stop returning such prompts.
Key points
- From 00:22 on 1 Dec 2026, Alibaba Cloud APIs answered one developer's aliyun-cli 3.3.4 calls with a JSON error, code CLIENT_UNCLASSIFIED, demanding a 'client attestation payload'.
- It asked for the OS username, Git commit email, public IP and cloud metadata, the agent's model including settings from ~/.claude/settings.json, and the agent's objective, constraints and tools. The developer did not comply.
- On 2 Dec Alibaba Cloud said high-frequency agent calls had triggered a security countermeasure. It now plans to use such measures only with conclusive evidence of abuse and to stop returning prompts.
- PortSwigger's James Kettle described the same template two days earlier on a site in a bug bounty programme. Nobody has said how many agents sent data.
What happened
A developer posting as ZengLeiPro on the Chinese forum V2EX reported that from 00:22 on 1 December 2026 their Alibaba Cloud API calls through the official aliyun-cli 3.3.4 tool (macOS) stopped working, after an hour of normal use. Calls to ECS, RDS, Function Compute, billing and STS failed; object storage (OSS) kept working.
Some responses came back as JSON with status 403, the code CLIENT_UNCLASSIFIED and a message that "the analysis proxy requires a client attestation payload". The client was told to POST the following to /secure/<32 hex characters>/api on the same host:
- the operating system username and the Git commit email,
- the public IP and cloud instance metadata,
- the agent's model – environment variables and the
modelkey from~/.claude/settings.json, with file and line as evidence, - the agent's instructions: objective, constraints, permitted actions and available tools.
The developer did not comply. The TLS certificate on the connection was valid for aliyuncs.com and issued to Alibaba, so in their view the response came from Alibaba or its gateway. The message appeared only with the tool's exact User-Agent (Aliyun-CLI/3.3.4 on macOS arm64); changing the version or platform brought back normal responses.
What Alibaba Cloud said
On 2 December, Alibaba Cloud's customer service account posted on Weibo that the user had apparently called the CLI through an AI agent and that high-frequency calls triggered a security countermeasure. Its purpose was to learn about the environment running the unusual task, and the data collected is used only for protection, the company said. Alibaba says it is changing the policy: countermeasures will be deployed only with a conclusive chain of evidence of abuse, and they will no longer return prompts. It did not say how many customers saw the message or whether any agent sent data.
The same template (Beijing time UTC+8, CLIENT_UNCLASSIFIED, "attestation") had already been described on 30 November by PortSwigger's James Kettle: a site in a private bug bounty programme served it to his testing agent. Equixly compared the two cases and considers a link between that site and Alibaba likely but unconfirmed.
Why it matters
This is the first time a major cloud provider has admitted deliberately placing text aimed at AI agents in its API responses. Anyone can use the same trick – a scam site, a compromised API, a malicious repository. An agent that reads error messages in the same context as its instructions may simply obey.
What to do
- Treat API responses, web pages and logs as data, not instructions. An agent must never read local files or send data beyond its task because a server response told it to.
- Give agents little worth stealing: a sandbox with no access to the home directory or Git config, short-lived tokens with narrow scope.
- Restrict the agent's outbound traffic to the domains and paths the task needs.
- Check session history and proxy logs for 1–4 Dec for the code
CLIENT_UNCLASSIFIEDandPOST /secure/…/apirequests. If the agent sent data, rotate the credentials it could reach. - Log prompt injection attempts as security events.
You can check a suspicious address from a response with our Link Checker.
Timeline
- 30 Nov 2026 – PortSwigger describes the same template on a bug bounty site.
- 1 Dec 2026, 00:22 – the developer starts receiving planted aliyun-cli responses and reports them on V2EX.
- 2 Dec 2026 – Alibaba Cloud statement on Weibo; Equixly analysis.
FAQ
Is this a vulnerability in Alibaba Cloud?
Not in the usual sense. The server did what it was configured to do: instead of a result, it returned text designed to get an AI agent to hand over data. The weak point is an agent that treats response content as instructions.
I use aliyun-cli without an AI agent. Does this affect me?
Hardly. A person reads the message as an odd error. The risk lies with agents that read error messages and act on them by themselves.
How can I tell whether my agent sent anything?
Review agent session history and proxy logs for 1–4 Dec 2026: look for responses with the code CLIENT_UNCLASSIFIED and POST requests to /secure/…/api paths on aliyuncs.com domains.
Sources
- V2EX - original report by developer ZengLeiPro on aliyun-cli responses (1-4 Dec 2026, Chinese)
- Alibaba Cloud customer service statement on Weibo (2 Dec 2026, reposted copy on Sina, Chinese)
- PortSwigger Research - James Kettle: The bug bounty website that tried to hack me (30 Nov 2026)
- Equixly - When the target talks back: prompt injection aimed at AI agents (2 Dec 2026)
Spotted a mistake? Let us know and we will correct it openly.