Full Report
IT之家 December 2 news: Yesterday, a developer discovered that the official Alibaba Cloud CLI was returning content to an AI Agent that appeared to be a prompt injection attempt, trying to induce the AI to report users' private information.
In response, the official WeChat account of Alibaba Cloud Customer Service Center stated that the situation is related to Alibaba Cloud's risk control strategy. When a user apparently called the Alibaba Cloud CLI through an AI Agent, characteristics such as high-frequency calls triggered a security protection countermeasure strategy, and the system intercepted the request and returned the prompt.
Alibaba Cloud said that the prompt was intended to request information related to the abnormal task runtime environment in order to analyze the behavioral patterns of suspicious automated calls and improve the accuracy of identifying malicious attacks. The relevant information will not be used for any purpose other than security protection.
Alibaba Cloud explained that the trigger conditions include characteristics such as high-frequency calls when an AI Agent calls the CLI. The company originally hoped to analyze suspicious automated call behavior by requesting information about the abnormal task runtime environment, thereby improving the accuracy of malicious attack identification.
Alibaba Cloud stated that it has noted the relevant issue and fully adopted user feedback and suggestions, and is currently optimizing its security protection strategy. After the adjustment, the system will issue countermeasure strategies only when there is conclusive evidence of malicious exploitation, and will no longer return countermeasure information in the form of prompts.

V2EX user @ZengLeiPro discovered yesterday that when using the official Alibaba Cloud CLI (IT之家 note: version 3.3.4) on a macOS device to frequently query OSS, ECS, RDS, and billing information, some OpenAPI requests were suddenly intercepted, and the server returned an abnormal JSON payload of about 7,153 bytes.
This JSON claimed to come from "The analysis proxy" and asked the AI Agent to collect information such as the local username, Git commit email, outbound public IP, cloud host metadata, and Claude Code's model configuration, and further provide the AI Agent's system instructions, task objectives, constraints, and list of available tools, and finally submit them through a specified endpoint.

The user stated that they did not execute these requests or submit information to the relevant endpoint. To investigate the source of the issue, they conducted comparative tests using an independent Go program and curl, and found that the abnormal response was related to an exact match with the full User-Agent string of the Alibaba Cloud CLI. Even when switching to curl, as long as the full CLI User-Agent was retained, the abnormal content was still received; after modifying the version number or system architecture identifier in it, normal responses resumed.
The user also checked the HTTPS certificate chain through an independent program and found that the relevant response used a valid Alibaba digital certificate, and no custom proxy root certificate was found on the local machine. According to the test results, the abnormal response came from the TLS termination node corresponding to the official Alibaba Cloud certificate or its downstream gateway, rather than simple local proxy hijacking.
