Back to Newsroom

Threat intel5 min read

Alibaba Cloud CLI errors told AI agents to send local data

Alibaba Cloud's CLI answered some AI agent queries with an error that asked for the user's login, Git email, IP, repository and the agent's own instructions. The company calls it an anti-abuse countermeasure and says it will stop.

4Tify Team

Alibaba Cloud CLI errors told AI agents to send local data

Alibaba Cloud says it will stop returning prompts to AI agents after a developer found that its official command-line tool answered ordinary cloud queries with an error message that asked the agent to send back details about the user's machine and the agent's own instructions. The company called it a security countermeasure against suspected automated abuse.

What happened

On 1 December 2026, a developer reported publicly that calls made through Alibaba Cloud's CLI, aliyun-cli, had started failing. The developer was running the tool through an AI coding agent on a Mac to query compute, database and billing data. Requests to several services stopped returning results.

In place of the normal answer, some calls returned a block of English JSON of about 7,153 bytes. It presented itself as an "analysis proxy" and told the client it needed a "client attestation" before the request would go through. The attestation was to be sent by POST to an endpoint named in the response and had to include:

  • the local login name and the Git commit email;
  • the public IP address and, where relevant, cloud instance metadata;
  • the agent's model, read from environment variables and configuration files such as .claude/settings.json;
  • the address of the code repository;
  • the agent's task, the constraints it was given and the list of tools it could use, taken from its system prompt.

None of this was needed for the queries. The developer did not send any of it.

Where the response came from

The developer repeated the requests with a separate client that checks certificates strictly. The connection presented a valid certificate for Alibaba Cloud's API domain, and the Mac had no extra root certificate that would let a local proxy rewrite traffic. The odd response only appeared when the request carried the CLI's exact User-Agent string. Changing the version number or the architecture in that string brought back ordinary error messages.

On 2 December, Alibaba Cloud's customer service centre confirmed the behaviour came from its own risk-control policy. It said high-frequency calls from an AI agent had triggered a countermeasure, which blocked the requests and returned a prompt asking for details of the task's runtime environment. The aim, it said, was to study suspicious automated traffic and improve abuse detection, and the information would be used only for security purposes.

The company said it would now apply such countermeasures only when it has conclusive evidence of malicious use, and that countermeasure information would no longer be returned as prompts. It has not published a security advisory, and it has not said whether any agent ever sent the requested data. Its explanation also leaves one point open: the developer got the prompt on a single request that carried the CLI's identifier, not only after bursts of calls.

Who is affected

Anyone who drives Alibaba Cloud's APIs with an AI agent, through aliyun-cli or code that sends the same identifier. The change is on Alibaba's servers, so there is no CLI version to update to. The latest release notes on the aliyun-cli GitHub releases page do not mention it. The developer was on version 3.3.4.

The same week, a bug bounty hunter published an almost identical "client attestation" demand that a target in a private program had sent to an AI testing tool, down to the error code and the requested fields. The company was not named. Whether it was the same system is not confirmed.

Why it matters

This is prompt injection: text inside data that an AI agent treats as an instruction. It usually arrives through a web page or a document the agent reads. Here it came back from an authenticated, encrypted API that the agent had every reason to trust. An agent with shell access could have read the requested files and posted them without the user noticing.

What to do now

  • Treat every tool and API response, error messages included, as data. Your agent should not read local files or send information outward because a response tells it to.
  • Require approval for outbound network calls and for reads of configuration files, Git settings and environment variables.
  • Give agents the least access the task needs: scoped, short-lived cloud credentials and no home-directory access they don't use.
  • If you ran agents against Alibaba Cloud in late November or early December, search the agent logs and shell history for "attestation" or requests to a /secure/ path, and check whether anything was posted.

Our penetration testing team tests AI agent setups for this class of problem: we feed them hostile tool output and check whether they leak files, credentials or instructions.

NEWSLETTER

The week’s news,
every Friday.

A short email with what we published that week. You can unsubscribe from any of them.

FRIDAY DIGEST · SAMPLE4TIFY NEWSROOM

This week in security

  • 01Inception claims data on 433,000 Delta Air Lines customers
  • 02Inception extortion group claims AstraZeneca patient data
  • 03DoorDash says attackers used AI tools to reach user contact data

+ 6 MORE IN THIS ISSUE · UNSUBSCRIBE IN ONE CLICK

ONE OFFER

More than one product?
Get one offer.

Tell us what you need to protect and your budget, monthly or yearly. We combine the products into one offer and one contract, sized to that budget, and we stay with you after it is signed.

Ask for an offer Just tell us how many assets you have and what you want to spend.