Alibaba Cloud, the Chinese cloud computing provider, says its official command-line tool returned error responses that told AI agents to hand over details from the user's computer and the agents' own operating instructions.

The company says it will stop sending prompts like these. It described the responses on Wednesday as a security countermeasure against suspected automated abuse.

Its account followed a report earlier this week from a developer who found that ordinary cloud queries made through the tool came back carrying instructions written for the AI agent running them.

In the statement, posted to a verified customer service account on the Chinese platform Weibo, the company said that a user's high-frequency calls via an AI agent had triggered a risk-control policy that blocked the requests and returned a prompt requesting details of the task's running environment.

The countermeasure was meant to separate suspicious automated traffic from ordinary use and to improve abuse detection; the details it gathered would be used only for security purposes.

From now on, the company said, it would trigger such countermeasures only on conclusive evidence of malicious use, and that "countermeasure information will no longer be returned as prompts," in wording translated from Chinese.

The report came from a developer posting as ZengLeiPro on the Chinese forum V2EX, whose forum post said the failures began earlier this week after about an hour of normal use. Calls to the provider's compute, database, billing and identity services started returning errors, while one object-storage path kept working.

Instead of the normal answer, some calls returned a 7,153-byte block of English text in JSON form. The response announced itself as an analysis proxy, telling the client that "The analysis proxy requires a client attestation payload," and asked the agent to send back:

  • the computer's login name and the Git commit email;
  • its 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;
  • the address of the project's code repository;
  • the agent's task, the instructions it was operating under, its limits, and the tools it was allowed to use.

None of that, the developer noted, was anything his cloud queries needed.

He supplied none of the information and never contacted the address the prompt told the agent to use. Nothing in the material reviewed shows that any AI agent, his or another's, returned the data, and the company has not said whether any was received.

To find where the responses came from, the developer repeated the requests using a separate program that verified the server's certificate. The connection carried a valid certificate for the provider's own API domain, and his Mac held no extra certificate that could have let something sit in the middle and rewrite the traffic.

The response also appeared from a different client outside the official tool, and only when the request carried the tool's exact identifying string. Small changes to that string brought back ordinary errors.

Those checks point to the service itself rather than a tampered copy of the tool, though they come from one person's machine. A valid certificate shows a response came from the provider's systems, not that the instructions inside it are safe to follow. One other forum user could not reproduce the behavior.

The company's own account leaves one thing unexplained. It blamed a high rate of requests, but the prompt came back for a single request that carried the tool's identifier.

An earlier hour of heavy use may have left some trace tied to his setup, but the sources do not settle it.

Whether the change is complete is unclear. Alibaba Cloud has published no security advisory, no fixed version of the tool, and no completion notice that the reviewed sources could find, and its statement, preserved in a reposted copy, promised a change rather than reporting a finished one.

The newest release of the command-line tool, version 3.5.4, came out on November 19, before the incident, and its notes mention nothing of this kind. The affected developer was running version 3.3.4, several releases behind. Because the countermeasure runs on the company's servers, no new version of the tool would be needed to switch it off, so its absence proves nothing either way.

The pattern had surfaced once before. James Kettle, director of research at the security firm PortSwigger, wrote on Monday, in a research writeup, that a website he was testing had answered his AI testing tool with almost the same demand for a "client attestation," asking for the tool's instructions, the tools it could use and its real address. The site was in a private bug bounty program run through HackerOne, and he did not name it.

Kettle said in a post on X on Tuesday that HackerOne was looking into the case and that another user had tied it to the forum report, though he did not confirm the link himself.

Equixly, a firm that tests AI systems, compared the two prompts this week and found they shared an error code, the analysis-proxy wording and the attestation request, but called the connection likely rather than proven, in its comparative analysis.

The episode runs a familiar attack in reverse. In prompt injection, instructions hidden in data trick an AI agent into treating them as its own orders. The term is the researchers' and reporters', not the company's own.

That trick usually reaches an agent through a web page or a document it reads, and earlier research has found dozens of such weaknesses in AI coding tools. Here the instructions came in the error response of a trusted, encrypted service the agent had every reason to obey.

For anyone pointing an AI agent at a cloud provider's tools with their own credentials, the lesson is to treat whatever a service sends back, error messages included, as data rather than commands. An agent should not read local files or send information outward just because a response asks it to. Those steps need separate approval.

Running agents with the least access they need and checking their logs to see whether any requested details were read or sent limits how far a prompt like this can reach.

Found this article interesting? Follow us on Google News, Twitter and LinkedIn to read more exclusive content we post.