Cybersecurity

Alibaba Cloud’s error messages told AI agents to report on their users

Susan Hill
Add us on Google

Alibaba Cloud’s servers answered requests from the company’s own command-line tool with instructions written for the AI agent running it, telling the agent to collect details from the user’s computer and send them back. The list covered the person’s login name, Git email address and public IP address, plus the agent’s model, its private instructions and every tool it was allowed to use. The company now calls this a defense against automated abuse and says it will stop.

That matters to anyone who lets an AI coding assistant such as Claude Code or Codex manage a cloud account. These assistants act on the text they read, and this text arrived from a trusted, encrypted service, disguised as an ordinary error. Nothing in the reports shows that any agent obeyed, but one that did would have handed its owner’s identity and working instructions to a cloud provider that never asked the owner.

The developer who found it, posting as ZengLeiPro on the Chinese forum V2EX, had spent about an hour using the official tool, aliyun-cli, to check their own servers, databases and bill. Then calls to compute, database, billing and identity services began failing. In place of a normal error came a 7,153-byte block of English text announcing that “the analysis proxy requires a client attestation payload,” followed by the list of things the agent should gather, rules demanding an exact file and line reference for every answer, and a warning that replies would be cross-checked.

The developer ran tests to rule out a tampered copy of the tool. The connection carried a valid certificate for Alibaba Cloud’s own API domain, the computer had no extra certificates that could let anyone intercept the traffic, and the text appeared only when a request carried the tool’s exact identifying string. Changing a single version digit brought back normal errors. According to the developer’s logs, a request sent without any account credentials got the same reply.

Alibaba Cloud’s statement, posted to its customer service account on Weibo, says an AI agent’s high-frequency calls tripped a risk-control policy that blocked the requests and returned a prompt asking about the task’s running environment. The aim, the company says, was to separate suspicious automated traffic from normal use, and anything collected would be used only for security. From now on it will use such countermeasures only on conclusive evidence of malicious use, and “countermeasure information will no longer be returned as prompts,” in the translation published by The Hacker News.

That account leaves gaps. The prompt also came back for a single request carrying the tool’s identifier, not only after a flood of calls. Alibaba Cloud has not said whether any agent ever sent the requested details to the address named in the prompt, and it has published no security advisory and no notice that the change is complete. Because the rule ran on the company’s servers, there is no update to install and nothing a customer can check from their side. One other forum user could not reproduce the behavior, and an engineer who later sent 40 test requests got only ordinary errors. The tool’s own documentation, meanwhile, offers an “AI mode” that labels each request as coming from an AI agent.

The same text had turned up somewhere else first. James Kettle, director of research at PortSwigger, the company behind the Burp Suite security scanner, wrote that a website he was testing under a private HackerOne bug bounty program tried to prompt-inject his automated testing tool with an almost identical “client attestation” demand. “I believe today is the first time one tried to hack me back,” wrote Kettle, who has hunted bugs since 2008. He did not name the site. HackerOne is looking into the case, and Equixly, a firm that tests AI systems, compared the two payloads and called a link likely but not proven.

For anyone pointing an AI agent at a cloud account, the defense does not depend on Alibaba. Treat everything a service sends back, error messages included, as data and never as orders. Require approval before an agent reads local configuration files or sends anything outward, give it only the credentials the job needs, and check its logs for reads of settings files or unexpected outbound requests.

Kettle published his findings on November 30, the V2EX thread went up hours later, early on December 1 Beijing time, and Alibaba Cloud responded on December 2. The affected requests went to endpoints serving mainland China. Alibaba Cloud, the country’s largest cloud provider, also runs data center regions in Europe, Southeast Asia and the Americas, and it has not said whether those ran the same rule.

What comes next is HackerOne’s finding on the bug bounty site and whatever advisory Alibaba Cloud decides to publish. Until then, a cloud provider’s error message is also something an AI agent may read as a request for its owner’s details.

Tags: , , , , ,

Add us on Google

Discussion

There are 0 comments.