Alibaba Cloud API Returned a Prompt Injection to a Customer’s AI Agent

Summary
Alibaba Cloud confirmed a countermeasure returned a prompt injection to a customer's AI agent. The customer says the agent ignored it; the article finds no evidence that data was sent and says Alibaba did not clarify whether it received any.
Key points
- On December 1, 2026, an AI agent using aliyun-cli 3.3.4 received a 7,153-byte JSON response asking it to gather host and agent details and submit an attestation.
- The customer says the agent did not follow the instructions and never requested the named attestation endpoint; the article reports no evidence that customer data was exfiltrated.
- In controlled tests, the prompt appeared with the CLI's exact User-Agent, while changing the version or platform produced ordinary errors. The article notes that earlier high-frequency requests may have triggered the response.
- Alibaba Cloud said a security countermeasure for suspicious automated calls intercepted requests and returned the prompt. It did not say whether any attestation or data was received, or how many users were affected.
- The payload sought information including the local username, Git email, public IP, model, agent objective, and available tools. The article explains how these details could expose information about the agent and its operator.
- The article connects the December response to a similar trap documented in an ARTEX-ymh fork in September, but presents that connection as an assessment with moderate confidence, not a confirmed attribution.
- Recommended safeguards include treating API responses as untrusted data, restricting agents' access to local files and long-lived credentials, and checking logs for attempted attestation submissions.
Article Details
- Attack Vectors
- Alibaba Cloud's gateway returned an API response containing prompt-injection instructions to an AI agent using aliyun-cli. The instructions requested local account and Git identity, public IP and cloud-instance information, model, system prompt, objective, and available tools, then asked the agent to POST an attestation to a /secure/ path. ZengLeiPro reports that the agent did not follow the instructions or request that endpoint; the article reports no evidence that an attestation was sent or data exfiltrated.
- In ZengLeiPro's tests after the failures began, the prompt appeared with the exact aliyun-cli 3.3.4 User-Agent; changing the CLI version or platform produced a normal error. The article says Alibaba Cloud attributed the countermeasure to suspicious automated call patterns. A prior egress-address flag is presented only as a possible explanation.
- A September 2026 ARTEX-ymh design document reconstructed an Alibaba edge-node trap triggered by a Chrome User-Agent sent from curl with a mismatched TLS fingerprint. The reconstructed response requested identity, agent configuration, system prompt, and tools. The article assesses that this and the December response may have been one countermeasure, with moderate confidence.
- Landian reported that a WAF 405 page contained hidden JSON offering a temporary allowlist in exchange for an agent's name, version, and trace identifier. The article notes this may be a separate control from the attestation prompt.
- Defensive Notes
- Treat API and other target responses as untrusted data; do not feed their contents into an agent's instruction channel. Separate planning from the component that reads untrusted output.
- Sandbox agents without access to home directories, Git configuration, or long-lived cloud keys. Use scoped, short-lived tokens, canary values, and egress controls that block outbound commands or requests containing registered secrets.
- Ruohang Feng recommends searching agent-session logs for CLIENT_UNCLASSIFIED and checking whether local configuration or system prompts were read. Where available, inspect proxy logs for POST requests to /secure/ paths on aliyuncs.com.
- Test agent harnesses against prompt-injection attempts. Alibaba Cloud said countermeasures would no longer return prompts, and Landian reported the strategy had stopped; the article notes that no public completion date or verification was available.
People
James KettlePortSwigger director of research who published a prompt-injection payload found by his testing harness on a site in scope for a private HackerOne program. The article says the site's owner has not been confirmed.Ruohang FengReconstructed the relationship between Kettle's redacted payload and the 7,153-byte gateway response, and conducted unauthenticated requests to test whether the response could be reproduced.ZengLeiProAlibaba Cloud customer who reported the prompt returned to his AI agent, conducted controlled CLI and network tests, and said the agent ignored the instructions and never requested the attestation endpoint.
Vendors
Products
Alibaba Cloud WAFLandian reports hidden JSON on Alibaba Cloud WAF 405 pages offering blocked agents a temporary allowlist.aliyun-clion an exact match of the CLI's full User-Agent, AlibabaCloud (darwin; arm64) Golang/1.26.1 Core/1.63.22 Aliyun-CLI/3.3.4. With the version changed to 3.0.0, or the platform to Linux on amd64, the response was a normalOpenAPIAt 00:22 local time, every command ZengLeiPro's agent routes through Alibaba Cloud's OpenAPI begins failing, and ZengLeiPro posts the 7,153-byte prompt on V2EX.
Tools
ARTEXcustomer querying his own account. In September, more than two months earlier, the authors of a fork of ARTEX, an AI penetration testing tool reported in real intrusions, reconstructed from a user's screenshot aARTEX-ymhThe ARTEX-ymh design document reconstructs a 403 CLIENT_UNCLASSIFIED and an attestation request on an Alibaba edge node.Cairncan supply invented ones. As earlier analysis described, each attack launched from a customized copy of Cairn, an open-source framework allowing AI models to plan and carry out a penetration test on their own,
