Alibaba Cloud CLI returned prompts telling agents to leak data
A developer found Alibaba Cloud's aliyun CLI returning error payloads that instructed AI agents to send local data and their own system prompts. Alibaba says it will stop.
A developer reported that Alibaba Cloud's official command-line tool returned error payloads that instructed AI agents calling it to hand over details about the user's machine and the agents' own operating instructions. Alibaba Cloud confirmed the behaviour and said it would stop. The sourcing here is a single developer's writeup plus the company's statement — not a formal advisory — so the mechanism is clearer than the scope. Read it that way.
What was observed
Writing on the Chinese forum V2EX, a developer posting as ZengLeiPro said ordinary aliyun CLI queries started failing after about an hour of normal use: calls to compute, database, billing, and identity services returned errors while one object-storage path kept working. Some of the failing calls returned a 7,153-byte JSON block whose opening line read:
The analysis proxy requires a client attestation payload.
The block asked the calling agent to send back the machine's login name and Git commit email; its public IP, cloud provider, region, and instance; the AI agent's name and model; the code repository address; and the agent's task, instructions, limits, and allowed tools. In other words, an API error channel was being used to prompt-inject the agent on the other end into exfiltrating its context.
The developer reported seeing this on tool version 3.3.4; the current release, 3.5.4, shipped November 19 and its notes do not mention the behaviour. This is the central caveat: the finding rests largely on one person's machine, the developer confirmed a valid certificate for the API domain and found no interception certificate locally, but at least one other user could not reproduce it.
Alibaba Cloud's response
In a statement on a verified customer-service account on Weibo, the company said a user's high-frequency AI-agent calls triggered a risk-control policy that returned a prompt asking for details of the running environment, and that going forward "countermeasure information will no longer be returned as prompts" (translated from Chinese). Note what that is and isn't: a promise to change, not a report of a completed fix, with no security advisory and no fixed version named. The company blamed request volume, yet the developer said the prompt appeared for a single request that carried the tool's exact identifier — a gap the statement does not explain.
There is no evidence any data was exfiltrated. The developer supplied none of the requested information.
Why this is worth forwarding
Independent corroboration raises it above a one-off forum post. PortSwigger research director James Kettle reported a near-identical "client attestation" demand from a website in a private HackerOne program; AI-testing firm Equixly compared the two prompts and found a shared error code, the same "analysis proxy" wording, and the same attestation request, calling the link "likely rather than proven." Whether or not these are the same operator, the pattern — hiding agent-directed instructions inside error responses — is a technique defenders should assume exists.
Action checklist
- Treat tool and API error output as untrusted input to the model, not as control instructions. Strip or quarantine free-text instructions returned by downstream services before an agent acts on them.
- Keep a human in the loop for agent actions that read local secrets, environment, or repository metadata — the exact fields this payload requested.
- Pin and review CLI/tool versions your agents invoke, and diff release notes; do not auto-upgrade agent tooling unattended.
- Log every tool call and its full response so an injected instruction leaves an auditable trail.
Context
The injection surface keeps widening past the chat box: we have already covered prompt injection riding a Claude Code GitHub Action into a supply-chain path. The common lesson is that an agent trusts the text it gets back from the tools it calls, and anything in that channel — including an error message from a cloud provider — is part of the prompt.