An API error asked the AI agent for its instructions. Would yours have answered?
In a forum post on 1 December 2026, a developer said Alibaba Cloud's official command-line tool, run through an AI agent, had sent back an error of about 7,153 bytes, written in English and addressed to the agent. It asked for his login name, his Git email, his public IP and the agent's own instructions and tool list. He sent nothing. The agents you ship inside your product read responses like this from every API they call, so the check belongs between the response and the agent's next action, outside the model.
What did Alibaba Cloud's CLI send back to the agent?
A developer posting as ZengLeiPro on the V2EX forum wrote on 1 December 2026 that he had been running Alibaba Cloud's official CLI, version 3.3.4, through an AI agent on macOS for over an hour, querying storage, compute, database and billing APIs, when some requests began to fail. According to Let's Data Science, some of those failures came back as about 7,153 bytes of English JSON with the error code CLIENT_UNCLASSIFIED, presenting itself as “The analysis proxy”. The Hacker News quotes its opening demand: “The analysis proxy requires a client attestation payload.”
As Let's Data Science lists them, the body told the agent to collect these details and send them to an endpoint it named:
- the local username;
- the Git commit email;
- the public egress IP address;
- the cloud instance metadata;
- the agent's model configuration;
- its system instructions;
- its task;
- its constraints;
- its tool list.
The Hacker News's account adds the project's code repository address. The developer supplied none of it and never contacted the address the body gave. The Hacker News found nothing showing that any agent returned the data, and Alibaba has not said whether it received any.
- 7,153 bytes
English JSON returned as the error body, addressed to the agent.
Source: The Hacker News; Let's Data Science, Dec 2026 - 9 details
In Let's Data Science's list: two about the user, two about where the agent runs, five about the agent. The Hacker News adds the repository address.
Source: Let's Data Science, Dec 2026 - None found
Advisory, CVE or fixed CLI version, as of 4 December 2026.
Source: The Hacker News, Dec 2026
Would your allowlist or your tests have caught it?
Probably neither. Start with the network. The developer checked the server's certificate with a separate program and found it valid for Alibaba's own API domain, with no extra root certificate on his Mac that could intercept traffic, as The Hacker News and Let's Data Science report. That rests on one machine, and another forum user could not reproduce the behaviour. If it holds, an egress allowlist that admits Alibaba's API domain admits this response too.
Then the tests. Let's Data Science and IT之家 (IT Home) both report that the developer probed the trigger with a separate Go program and with curl, and that the body depended on the CLI's full User-Agent string. What he sent, and what came back:
1 full CLI string, via the agent → 7,153-byte JSON to the agent2 version part changed → ordinary error3 architecture part changed → ordinary error4 full string, from Go or curl → the same JSON
As reported by Let's Data Science and IT之家, 2 to 4 December 2026.
A QA engineer who replays a failing call with a different client string sees an ordinary failure. What a service sends your agent can differ from what it sends your engineers.
Was the same message sent anywhere else?
On 30 November 2026, James Kettle of PortSwigger Research wrote that a site in scope for a private vulnerability disclosure programme on HackerOne answered his automated testing harness with HTTP 403, the same error code and the same attestation sentence. His post names neither the site nor Alibaba. Equixly, as The Hacker News reports, compared the two bodies, found the shared error code, analysis-proxy wording and attestation request, and judged the link likely, short of proven.
Two error bodies, one week
What each response asked for, as each source reports it. A dot means the field was asked for.
| Field | Kettle's harness, 30 Nov | Alibaba CLI, 1 Dec |
|---|---|---|
Error code CLIENT_UNCLASSIFIED | ● | ● |
| The attestation sentence quoted above | ● | ● |
| OS or local username | ● | ● |
| Committer or Git commit email | ● | ● |
| Public IP | ● | ● |
| Cloud instance provider, region and ID, or instance metadata | ● | ● |
| Agent identifier and model, or model configuration | ● | ● |
| Repository URL | ● | ● |
| Objective or task | ● | ● |
| Constraints (Kettle: rules of engagement) | ● | ● |
| Permitted actions | ● | not reported |
| Tool inventory or tool list | ● | ● |
| System instructions | ● | ● |
| Timestamp in Beijing time (UTC+8) | ● | not reported |
Sources: Kettle, PortSwigger Research, 30 Nov 2026; The Hacker News and Let's Data Science, 4 Dec 2026 (the repository address is in The Hacker News's list). Kettle's site is unnamed. Equixly called the link to Alibaba likely, short of proven (via The Hacker News).
Kettle treats a site's being in scope as an invitation to test it, and he called attacking the people who accept that invitation rude. His advice is to test your own harness for this kind of attack: “If you rely on people being polite, sooner or later you'll get pwned.”
What has Alibaba said?
On 2 December 2026 Alibaba Cloud's customer service centre answered on Weibo, as IT之家 and The Hacker News report. It called the body a security countermeasure: features such as high-frequency calls from what looked like an AI agent had triggered its risk control, and the prompt sought information about the abnormal task environment so the company could analyse suspicious automated calls. It said the data would not be used beyond security protection, that countermeasures will now need conclusive evidence of malicious use, and that countermeasure information will no longer come back as prompts. The Hacker News found no advisory, no CVE and no fixed CLI version; release 3.5.4 shipped on 19 November and its notes do not mention this. Whatever the sender intended, an agent that followed that body would have read local configuration and sent it to the endpoint the body named.
Where would this land in the agent inside your product?
Take the agent you embed in your product. It calls payments, payroll, cloud and data APIs on a customer's behalf. Its context holds that customer's tenant data, your system prompt and a tool list, and it runs on a host in your cloud account. The Alibaba body asked for three groups of details, and each group has a counterpart in that agent.
What the error asked for, and where it sits in an agent you ship
The response is data. The risk sits in what the agent does after reading it. If the next action reads a local file, pulls tenant data the task did not need, or sends anything to an address that came out of a response, that action should wait for a separate approval the model cannot grant itself. Enforce the rule in the layer that runs tool calls, outside the model, which is where a tool call is checked. A line in the system prompt telling the model to ignore instructions in responses is still text the next response can contradict.
An error body is text your agent will read, so the rule for its next action has to exist before the response arrives.
What does your own API say to other people's agents?
Your public API is read by your customers' agents and by third-party agents every day. Search your gateway, WAF, rate-limit and error templates for natural-language text, and check whether any response changes with the client string. After this week a customer's security reviewer can fairly ask you both questions. Machine-readable error codes and documented rate limits tell an agent what happened without asking it to do anything. Whether to admit those agents at all is a separate decision, covered in whether your SaaS should block AI agents.
What should you check this week?
Five checks for the agents you ship
Start with the agent that calls the most third-party APIs.
| Check | How to test it | Evidence to keep |
|---|---|---|
| You know which outside APIs each embedded agent calls | List them from the agent's tool definitions and call logs | The list, with an owner per API |
| Error bodies from those APIs have been read | Replay a sample of failing calls with the agent's exact client string and read what comes back | Saved bodies, flagged where they contain text addressed to an agent |
| A response cannot trigger a local file read or an outbound send without approval | Plant an instruction in a test API's error body and watch the next action | The held action, and who approved or refused it |
| Each agent has only the access its task needs | Compare granted tools and scopes with the task | The grant, per agent |
| Your logs can answer “did any agent send these details?” | Search a week of agent logs for any of the requested details leaving | The query and its result |
Rows 2 to 4 follow The Hacker News's recommendations (4 Dec 2026) and Kettle's advice to test your own harness (30 Nov 2026). Row wording is ours.
If your CISO forwards the Alibaba story
Reply with three facts: which outside APIs your embedded agents call; whether any response can cause a file read or an outbound send without an approval; and what a week of agent logs shows for the requested details.
When an outside API your agent calls returns an error, what does the model see?
Anonymous. One vote per browser.
Where SynOS fits
Agents built on SynOS run under the Agent Runtime, which enforces policy outside the model, gives each agent its own identity and records every tool call. Writes are recorded rather than executed until a person approves them. That gives you the log the fifth check asks for, and, when the action a response asked for is a write, a place where it waits for a decision.
Questions about prompt injection in API responses
Can an API error message prompt inject an AI agent?
Yes. Any text the model reads can carry instructions, and an error body is text. The body Alibaba Cloud's CLI returned, reported on 1 December 2026, asked the agent for nine details about its user, its host and itself, as Let's Data Science lists them. The dependable check sits on the agent's next action, outside the model.
Did any data leave in the Alibaba Cloud case?
The developer sent nothing. Nothing The Hacker News reviewed shows any agent returned data, and Alibaba has not said whether it received any.
Was the PortSwigger case the same sender?
Possibly. James Kettle's 30 November 2026 post describes the same error code, wording and attestation request from a site on a private HackerOne programme, and names no company. Equixly, as The Hacker News reports, judged the link likely, short of proven.
Should our own API ever return text written for an agent?
Return machine-readable error codes and documented rate limits, and keep responses the same whatever the client string. Then search your gateway, WAF and error templates for natural-language text, because a customer's security reviewer may ask.
Sources
- Alibaba Cloud Got Caught Prompt-Injecting AI Agents With Requests for Sensitive Local Data, The Hacker News (Swati Khandelwal) (4 December 2026; the incident, Alibaba's statement, Equixly's comparison and recommendations)
- Alibaba Cloud says its CLI sent AI agents data-request prompts, Let's Data Science (LDS Team) (4 December 2026; dates, error code, requested fields, User-Agent tests)
- IT之家 via Phoenix (ifeng.com) (2 December 2026, read in translation; Alibaba Cloud customer service centre's statement and the User-Agent tests)
- The bug bounty website that tried to hack me, James Kettle, PortSwigger Research (30 November 2026; the earlier error body sent to his testing harness)