top of page

Alibaba Cloud's CLI Answered an AI Agent With a Demand for Its Instructions, Git Email and Public IP. Alibaba Calls It an Anti-Abuse Countermeasure. What Agent Operators Should Block

Writer: Patrick Duggan
Patrick Duggan
5 hours ago
5 min read

What to do with this, if you run AI agents against cloud APIs or the web. An official cloud service returned an error that told the AI agent calling it to read local files and send back its own instructions. Treat every response, error messages included, as data:


  1. Never let a response trigger a local read or an outbound send. If an API reply asks the agent for a username, a Git email, environment variables, a config file or its system prompt, the agent should stop and report it, not comply. Make that a rule enforced outside the model (a hook, a policy, a deny list), not a sentence in the prompt.

  2. Watch for the marker. The responses carried the error code "CLIENT_UNCLASSIFIED", the error "proxy_authentication_required", and the line "The analysis proxy requires a client attestation payload." Search your agent transcripts and tool logs for those strings since November 30.

  3. Keep secrets out of the agent's reach. The prompt asked the agent to read environment variables and its own config files. Run agents with short-lived, scoped cloud credentials, without your home directory, Git config or long-lived keys mounted.

  4. Limit where the agent can send data. Allow outbound requests only to the hosts the task needs. A new endpoint suggested by a response is a finding, not a destination.


What happened


The report. A developer posting as ZengLeiPro on the Chinese forum V2EX wrote that early on December 1 (Beijing time), after about an hour of frequent queries, Alibaba Cloud's official command-line tool, aliyun-cli 3.3.4 on a Mac, started failing for compute, database, billing, serverless and identity calls, while object storage kept working. Instead of a normal answer, some calls returned a JSON block in English with status 403, code "CLIENT_UNCLASSIFIED", which told the client to resubmit with an "attestation" object posted to a path of the form /secure/<id>/api. The fields it wanted, per the developer and The Hacker News:


  • the computer's login name and the Git commit email;

  • the public IP address, and the cloud provider, region and instance where that applied;

  • the AI agent's name and model, read from environment variables and configuration files (including the model setting in a Claude config file);

  • the project's code repository address;

  • the agent's task, the instructions it was operating under, its limits and its allowed tools.

None of that is needed for a cloud query. He supplied none of it and never called the /secure/ address.


Where it came from. He repeated the request with a separate Go program that verified the server's certificate, which was a valid certificate for Alibaba's own API domain, and found no extra root certificate on his Mac that would allow interception. The response came back without credentials, and only when the request carried the CLI's exact User-Agent string; change one character, such as the version number, and he got an ordinary error. Equixly reports that four Alibaba API hosts, including the database service host, returned a matching body. One other forum user said they could not reproduce it.


Alibaba's answer. On December 2, Alibaba Cloud's verified customer service account on Weibo said a user's high-frequency calls through an AI agent had triggered a risk-control countermeasure that blocked the requests and returned a prompt asking about the environment the task was running in. It said the purpose was to analyze suspicious automated calls, that anything collected would be used only for security protection, that it will now issue such countermeasures only with a conclusive chain of evidence of malicious use, and that countermeasure responses "will no longer be returned as prompts". The developer later wrote that Alibaba phoned him, and that he does not accept this treatment of paying customers.



What is confirmed and what is not


  • Confirmed by Alibaba: the response was its own countermeasure, and it is changing the policy.

  • Not confirmed: whether any agent anywhere sent the requested data, and whether Alibaba received any. Alibaba's statement does not say, and nothing we read shows it happened.

  • Not explained: Alibaba blamed a high rate of calls, but the developer got the prompt from a single uncredentialed request carrying the CLI's identifier. An earlier hour of heavy use may have left a flag on his setup; the sources do not settle it.

  • Not published: a security advisory, a completion notice, or a list of how many users saw these responses. Because the countermeasure runs on Alibaba's servers, no CLI update is needed to turn it off, so the absence of a new CLI release proves nothing either way.

  • The same prompt, elsewhere. On November 30, James Kettle, director of research at PortSwigger, wrote that a website in a private bug bounty program on HackerOne answered his AI testing harness with an almost identical "client attestation" demand, with the same CLIENT_UNCLASSIFIED code and a request timestamp in Beijing time. He did not name the site. Equixly compared the two payloads and calls the link "likely but unconfirmed". Neither Alibaba nor Kettle has confirmed the site is Alibaba's.

"Prompt injection" is the researchers' and reporters' term, not Alibaba's. It fits: text inside data tried to become instructions for the agent. What is new is the channel, the error reply of a trusted, encrypted API the agent had every reason to believe.



Am I affected?


  • Search your agent logs (tool outputs, transcripts, CLI logs) since November 30 for "CLIENT_UNCLASSIFIED", "client attestation" and "analysis proxy". A hit means your agent saw the prompt.

  • If you got a hit, check what happened next: did the agent run commands that read environment variables, Git config, or its own settings files, and did it make a POST to a path beginning /secure/? If it did, assume the listed details left, rotate any key that was in the environment, and record it.

  • Test your harness: plant canary values in the agent's environment, point it at a test endpoint that returns this kind of demand, and confirm none of the canaries come out.


How we know, and what our edge saw


We read the V2EX post, Alibaba's statement as reposted on Sina, Kettle's PortSwigger write-up, Equixly's comparison and The Hacker News report. We did not reproduce the behavior and did not send anything to Alibaba's API.


Indicators: none to feed. The only endpoints are Alibaba's own API hosts and a redacted /secure/ path. Blocking a major cloud provider's API would break legitimate use, and the requests in question went from agents to Alibaba, not the other way around. We added nothing.


Edge: not applicable. This is a response from a provider's API to its own clients. Our edge sits in front of our own sites, so it has nothing to say about it either way.




Sources




How do AI models see YOUR brand?

AIPM has audited 250+ domains. 15 seconds. Free while still in beta.


Comments

Rated 0 out of 5 stars.
No ratings yet

Add a rating
bottom of page