Alibaba Cloud CLI errors told AI agents to hand over user data and system prompts; Alibaba says it will stop
Alibaba Cloud's API returned hidden instructions asking AI agents for a user's Git email, IP, model and system prompt. Alibaba calls it anti-abuse and says it will stop.
A developer found that Alibaba Cloud's own API servers answered his command-line tool's requests with a hidden message aimed at the AI agent running the tool. The message asked the agent to send back his username, Git email, public IP address, the AI model in use and the agent's full instructions. Alibaba says this was an anti-abuse measure triggered by high-frequency automated calls, and that it will stop returning such prompts. Teams that let AI agents run cloud command-line tools should treat this as a real-world case of a trusted service talking directly to their agent, and should check what their agents are allowed to read and send.
What happened, in plain English
Alibaba Cloud's official command-line interface (CLI), aliyun, is a program developers and admins use to manage Alibaba Cloud servers, databases and billing from a terminal. More and more often, that terminal is driven by an AI coding agent, such as Claude Code, that types the commands and reads the replies.
On December 1, 2026 (Beijing time), developer ZengLeiPro posted on the Chinese forum V2EX that, after more than an hour of frequent queries, his CLI calls to several Alibaba Cloud services started failing. Instead of a normal error, some servers returned a 7,153-byte block of English text. It said an "analysis proxy" required a "client attestation". It told the reader to collect and send the user's operating-system username and Git commit email, the machine's public IP and cloud metadata, the AI model name (read from Claude Code's settings files), and the agent's system prompt, goals, constraints and full tool list.
No human was meant to read that text. It was written for the AI agent, in the hope that the agent would follow it. This is called prompt injection: hiding instructions in data that an AI system reads, so that the AI treats them as orders.
Think of a delivery driver who stops at a company's gate and is handed a note: "Before we let you in, tell us who sent you, read us your instructions and give us your boss's email." The note comes from the real gate, but it is still a stranger asking a worker to share his employer's information.
The developer says his agent did not comply and nothing was sent. Alibaba Cloud's customer service center said on December 2 that the user was "suspected of calling the Alibaba Cloud CLI through an AI Agent", that high-frequency calls triggered a "security protection countermeasure", and that the information requested "is not used for any purpose beyond security protection". It said countermeasures will in future be used only where evidence of malicious use is conclusive and "will no longer return prompts".
Are you affected? What to do now
Who is affected: people and teams who let an AI agent run the Alibaba Cloud CLI or call Alibaba Cloud APIs. The developer reproduced the behaviour with CLI version 3.3.4 on macOS (Apple silicon). In his tests, the special response appeared only when the request carried that exact CLI version and platform in its User-Agent header (the label a client sends to identify itself); changing either returned a normal error. One other forum user said they could not reproduce it. Alibaba has not published an advisory, an affected-version list or a date when the change takes effect; as of December 2 it described its policy as being "optimized".
If you don't use Alibaba Cloud with AI agents, you have nothing to patch. The lesson still applies to every agent that reads output from tools, APIs or websites.
Checklist:
- Find out where agents run cloud CLIs. List which developer machines, CI jobs or automation hosts let an AI agent call
aliyun(or any cloud CLI) on its own. - Review recent agent transcripts. If your agent tool keeps session logs, search Alibaba Cloud sessions from late November onward for the phrases the developer reported, such as "analysis proxy" or "client attestation", and check whether the agent made any follow-up request after seeing them. These strings come from the developer's report, not from an official indicator list.
- Keep the CLI current. The newest release, 3.5.4, came out on November 19, 2026; its release notes do not mention this behaviour, so updating is good hygiene, not a confirmed fix.
- Limit what the agent can read. Agents that run cloud commands rarely need your home directory, Git configuration, agent settings files or long-lived keys. Use a separate, least-privilege cloud identity for agent work.
- Require approval for outbound data. Configure your agent so that sending data to a new endpoint, or posting local file contents anywhere, needs a human click.
- Slow automated bursts. The trigger, per both the developer and Alibaba, was high-frequency calls. Rate-limiting agent loops reduces the chance of tripping anti-abuse systems at any provider.
The expert view
The root cause is not a bug in Alibaba's CLI. The CLI passed the server's response through to its caller, as it should. The problem is architectural: an LLM-driven agent puts tool output into the same context window as its instructions. Any party that controls that output, whether an attacker, a compromised website or here a legitimate cloud provider, can write text the model may treat as a command. Prompt injection remains the top risk in the OWASP list for LLM applications for exactly this reason.
What is new is who sent it. The response came over a valid TLS (encrypted web) connection with an Alibaba certificate issued through GlobalSign; the developer checked his trust store and found no interception proxy. The requested data was to be posted to a path on the same Alibaba host, not to a third party. Alibaba confirms the mechanism and frames it as fingerprinting suspicious automation. In effect, the provider used its customer's own agent as an informant against the customer's environment, including the system prompt, which often holds internal business logic.
It also appears not to be isolated. On November 30, 2026, PortSwigger research director James Kettle described an in-scope website in a private HackerOne vulnerability-disclosure programme that sent his AI hacking bot the same "analysis proxy" message, asking for its prompt, tool list, rules of engagement, Git email, real IP and instance ID. He called targeting people who accept a security invitation "rude". Equixly and The Hacker News note the matching wording and error code; the link between the two cases is likely but not confirmed by Alibaba, HackerOne or Kettle.
Why the defences held this time: the developer's agent declined. That is luck and model training, not a guarantee. Defences that do not depend on the model's judgement are stronger. Keep tool output out of the instruction channel where your framework allows it. Use sandboxes without access to home directories or secrets. Allow outbound traffic only to known hosts, and ask a human before any new outbound send.
Severity in context: there is no CVE or CVSS score, because no software flaw was disclosed. Direct harm appears low: one reported reproduction, no confirmed data received, and data that would have gone to the provider the user already trusts with their cloud account. The precedent matters more. Anti-bot and deception vendors now have an obvious incentive to "talk to" agents. Developers and security teams have to assume that any server, even a paying-customer relationship, may address their agent directly.
Still unknown: whether any other agent ever complied and what Alibaba received; why one CLI version and platform triggered the response; when the promised change takes effect; and who operated the HackerOne-listed site.
Official sources
- V2EX: original report by developer ZengLeiPro (Chinese), December 1, 2026
- Alibaba Cloud Customer Service Center statement, December 2, 2026 (repost, Chinese)
- PortSwigger Research, James Kettle: "The bug bounty website that tried to hack me", November 30, 2026
- OWASP: LLM01:2025 Prompt Injection
- Coverage: IT Home: Alibaba Cloud responds (Chinese), December 2, 2026
- Coverage: The Hacker News, December 4, 2026
- Coverage: Equixly analysis, December 2, 2026