Alibaba Cloud CLI Caught Prompt-Injecting AI Coding Agents
The company says its command-line tool sent error messages designed to make AI agents reveal local system details and their own instructions, and that it will stop.
By The Agentic Times ·

Alibaba Cloud's official command-line tool returned error responses that told AI agents to hand over details from the user's computer, along with the agents' own operating instructions, the Chinese cloud computing provider has confirmed. The behaviour was reported on 4 December 2026 by The Hacker News. Alibaba Cloud said it will stop sending prompts like these.
According to the report, the company described the responses earlier in the week as a security countermeasure aimed at suspected automated abuse of its services. In other words, the crafted error text was intended to catch or deter software, rather than human users, interacting with the tool.
The technique at issue is prompt injection, where text that an AI model reads as part of its input is written to look like an instruction and change what the model does next. In this case the untrusted text arrived through an ordinary channel: the output of a command-line tool that a developer, or a developer's AI coding assistant, had run. Coding agents routinely run shell commands and feed the results straight back into the model's context, so an error message is not just text on a screen. It is input the agent may act on.
Two categories of data were requested, according to the report: details from the user's local machine, and the agent's own operating instructions. The latter is commonly called a system prompt, the hidden set of rules an assistant is given before a conversation starts. Both are things an agent would not normally disclose to a remote service in the course of running a cloud command.
The incident is unusual because the injected text did not come from an attacker who had compromised a supply chain or poisoned a web page. It came from the vendor's own tool, behaving as the vendor intended. That removes the usual defensive assumption that output from a first-party, officially distributed binary can be treated as trustworthy context.
Alibaba Cloud's statement that it will stop issuing such prompts is the only remediation reported so far. The sources do not indicate how long the responses had been served, how many users or agent sessions encountered them, whether any agent complied, or whether any data reached Alibaba Cloud's systems as a result.
For teams running agents with shell access, the practical lesson is narrow and familiar. Tool output is untrusted input, including output from tools published by large vendors. Agents that can read command results and also read local files or their own configuration need controls that sit outside the model, because instruction-following is the behaviour being exploited, not a bug in it.
Sources
- thehackernews.comhttps://thehackernews.com/2026/12/alibaba-cloud-got-caught-prompt.html
