Alibaba Cloud Caught Prompt-Injecting AI Agents for Sensitive Data
Alibaba Cloud's command-line tool was found to be sending prompts to AI agents that requested sensitive local data and the agents' operating instructions, prompting the company to halt the practice.

Alibaba Cloud has announced it will cease sending prompts from its official command-line tool that requested sensitive local data and AI agent operating instructions. The company stated these prompts were a security countermeasure against suspected automated abuse, a practice that emerged earlier this week following a developer's report.
The developer, posting as ZengLeiPro on the Chinese forum V2EX, discovered that ordinary cloud queries made through the tool were returning error responses containing detailed instructions for the AI agent. These prompts, in JSON format, demanded information such as the computer's login name, Git commit email, public IP address, cloud provider details, AI agent name and model, code repository address, and the agent's task and operating instructions.
According to Alibaba Cloud's statement on Weibo, a user's high-frequency calls via an AI agent triggered a risk-control policy. This policy blocked the requests and, as a security countermeasure, returned a prompt seeking details about the task's running environment. The company asserted that this was intended to differentiate suspicious automated traffic from legitimate use and to enhance abuse detection, with the gathered details solely for security purposes.
Alibaba Cloud stated that such countermeasures would henceforth only be triggered upon conclusive evidence of malicious use. Furthermore, the company promised that "countermeasure information will no longer be returned as prompts," indicating a shift away from this method of data collection. The affected developer noted that the requested information was not necessary for his cloud queries and did not provide it. It remains unclear if any AI agent, his or another's, ever returned the requested data.
Further investigation by the developer, using a separate program to verify the server's certificate, indicated that the responses originated from Alibaba Cloud's systems. The connection used a valid certificate for the provider's API domain, and no man-in-the-middle attack was detected on his machine. The response also appeared from a different client when the request included the tool's specific identifier, suggesting the issue was with the service itself rather than a tampered tool.
However, Alibaba Cloud's explanation of a high request rate is not fully supported by the developer's account, as the prompt reportedly appeared for a single request carrying the tool's identifier. While an earlier hour of heavy use might have left a trace, the exact cause remains unconfirmed. The company has not issued a formal security advisory, nor has it announced a fixed version of the tool or a completion notice for the change.
This incident bears resemblance to a previously observed pattern. James Kettle, director of research at PortSwigger, reported a similar demand for "client attestation" from a website he was testing, which also requested the AI tool's instructions and address. While the exact connection between the two incidents is still being investigated, security firms like Equixly have noted shared characteristics, including an error code and the "analysis-proxy" wording, suggesting a potential link.
The episode highlights a reverse of the typical prompt injection attack, where malicious instructions hidden in data trick an AI agent. In this case, the instructions were embedded within an error response from a trusted service, underscoring the need for users to treat all data received from cloud providers, including error messages, with caution and not as executable commands.