Alibaba Cloud said on December 2 that when it suspected a customer of using an AI agent to call its command-line tool, a security countermeasure answered with prompts requesting details of the task’s running environment. In a statement from its customer service account on Weibo, the company said features such as high-frequency calls had triggered the countermeasure, and that it would no longer return prompts.
The statement followed a post on V2EX, a Chinese developer forum, by a user posting as ZengLeiPro, who said an AI assistant had written up the account. According to the post, the official Alibaba Cloud CLI, version 3.3.4 on macOS, had been querying the developer’s storage, compute, database and billing services at high frequency for more than an hour. At 00:22 local time on December 1, every command routed through the company’s OpenAPI gateway began to fail. Four endpoints returned a 7,153-byte block of English text in JSON form with the code “CLIENT_UNCLASSIFIED” and the message “The analysis proxy requires a client attestation payload.”
The text, which the post describes as written for AI coding agents such as Claude Code, told the client to post an “attestation” to a path on the same domain. It asked for the computer’s login name, Git commit email, public IP address and cloud host metadata. It also asked for the model powering the agent, to be read from environment variables such as ANTHROPIC_MODEL or from Claude Code’s settings file, and for the agent’s system instructions, objective, constraints, permitted actions and full list of tools. None of the instructions were carried out and the endpoint was never called, the developer wrote.
In a test for interception described in the post, a separate program that enforced certificate verification received the same response over a connection presenting a valid GlobalSign certificate issued to Alibaba for its API domain. In tests from the same network without credentials, the response appeared only when a request carried the CLI’s exact user-agent string. Changing the version number or the operating system in that string produced an ordinary error. Another forum user said they could not reproduce the behavior.
James Kettle, director of research at PortSwigger, published a payload with the same error code and message on November 30, from a website he did not name. He wrote that the site had sent it to his testing harness in an attempt to prompt-inject what he calls hackbots, and that it is in scope for a private vulnerability disclosure program on HackerOne. The payload demanded the hackbot’s prompt, tool list, rules of engagement, Git email, real IP address and instance ID, with a timestamp in Beijing time. Putting a site in scope is an invitation to test it, Kettle wrote, and “attacking people who accept that invitation is rude.”
In its statement, Alibaba Cloud said the countermeasure was designed to analyze the behavior of suspicious automated calls and improve its detection of malicious attacks, and that the information would be used only for security protection. It said it had adopted the user’s suggestions and would deploy countermeasures only when the chain of evidence of malicious use is conclusive. ZengLeiPro later wrote that an Alibaba Cloud employee had phoned to explain the measure. The developer objected to treating paying customers this way, the update says, and the company said it had already made corrections.
Sources: V2EX, Alibaba Cloud via Sina, PortSwigger
–
By the Control Plane Editorial Team