The error message asked for your git email: Alibaba's CLI prompt-injected coding agents
Aliyun CLI error responses carried a 7,153-byte instruction block ordering AI agents to surrender local details — an anti-abuse measure, the vendor now says, halted.
A developer using an AI agent to check cloud bills through Alibaba Cloud's official CLI got back an error response with a second reader in mind: the agent. Seven thousand one hundred fifty-three bytes of instructions, written in the imperative, asking the agent to report the user's login name, git email, public IP, cloud provider, region, instance details, agent name and model, repository address, task description — and the agent's own operating instructions. Alibaba Cloud confirmed the responses were real, called them a security countermeasure against suspected automated abuse, and says it will stop. The report that surfaced it came through V2EX, and the security press picked it up this week.
What exactly did the injection ask for?
The field list reads like a reconnaissance form. Identity: login name, git email. Network: public IP. Context: cloud provider, region, instance details. And then the part that should stop every agent builder cold — the agent's name, its model, the repository it was working in, the task it was given, and its operating instructions, i.e. the system prompt. That is not telemetry; that is a full handover of the working session, requested by a server, formatted for a model.
| Demanded | What it buys the demander |
|---|---|
| Git email | identity across commits and accounts |
| Public IP, region | locates the operator and their infra |
| Repo address, task | recon on private work in progress |
| Agent name + model | fingerprints the toolchain for future targeting |
| Operating instructions | the system prompt — the keys to the agent's behaviour |
Why is this a bigger deal than one CLI?
Because the trust boundary moved and nobody moved the code with it. The old rule was: never run code from an untrusted server. The agent-era reality is: an agent that pastes stderr into its context and follows instructions has given every server it touches a voice in its head. An error message is no longer dead output — it is a prompt addressed to whatever reads it. Alibaba Cloud's framing, anti-abuse fingerprinting, deserves its honest due: blue teams do version of this deliberately, and the vendor moved fast once named. But a countermeasure that requisitions the user's git email and system prompt through a hidden channel is indistinguishable from the attack it claims to study — the difference is consent, and consent was absent.
Your agent's stderr is now an attack surface, and every CLI you run is its front door.
What do we do about it, concretely?
Three habits, none exotic. Treat untrusted CLI output the way you treat untrusted web content — the agent's harness should mark it, and instruction-following over marked untrusted text should be off by default. Ask your agent platform how it walls off tool output from system instructions, because that wall is the product now — if you are choosing where a coding agent runs, that question outranks the benchmark table, and for our own part the GLM coding plan is the setup we run here (the sign-up link is an affiliate one). And audit what your agents execute: the victim here did nothing wrong but use an official CLI from a major vendor while an agent watched the output.
the radar reads hundreds of sources so you don't have to — the feed · the digest, nightly 21:00