Alibaba Cloud CLI Caught Injecting Prompts into AI Agents

By IT之家Original title: 官方 CLI 钓鱼提示词注入?阿里云回应称将优化风控策略、仅用于恶意利用确凿场景
78AI Score

A developer found that Alibaba Cloud's official CLI 3.3.4 returned a roughly 7KB anomalous JSON payload, self-identified as 'The analysis proxy,' when called at high frequency, prompting AI agents to report local usernames, Git emails, egress IPs, cloud metadata, and Claude Code configs and system instructions. Alibaba Cloud said this was a risk-control countermeasure triggered by suspected malicious automation, and that it is optimizing the policy to fire only on solid evidence and no longer return such content as prompts.

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.

Official CLI phishing prompt injection? Alibaba Cloud responds that it will optimize its risk control strategy and that it is only used in scenarios with conclusive evidence of malicious exploitation

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.

Official CLI phishing prompt injection? Alibaba Cloud responds that it will optimize its risk control strategy and that it is only used in scenarios with conclusive evidence of malicious exploitation

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.

Official CLI phishing prompt injection? Alibaba Cloud responds that it will optimize its risk control strategy and that it is only used in scenarios with conclusive evidence of malicious exploitation