AI SecurityPrivacy

Alibaba Cloud's CLI Asked AI Agents for Your Git Email. Your Agent Shouldn't Have Answered

December 4, 2026 · Brian Deitch

Here's a prompt injection story with a twist: the instructions didn't come from a hacker. They came from a cloud provider's own command-line tool. Alibaba Cloud's official CLI returned error messages that asked AI agents to send back details about the user's machine and the agent's own instructions. Alibaba says it has stopped.

Disclosure: I work at Zscaler. Alibaba Cloud isn't a competitor of ours. This one's about how agents handle what tools tell them.

What Happened

Per The Hacker News:

  • Who noticed: a developer posting on the Chinese forum V2EX, using version 3.3.4 of the tool. After about an hour of normal use, some cloud API calls stopped returning normal errors.
  • What came back instead: a JSON block calling itself an "analysis proxy" that required a "client attestation payload." It asked for the login name, Git email, public IP, cloud region, agent name and model, repository address, task instructions and allowed tools. None of it was needed for the queries.
  • Did anything leak? The developer sent nothing, and there's no evidence any agent sent data back.
  • Alibaba's explanation: in a Weibo post on Wednesday, the company said high-frequency AI agent calls triggered a risk-control policy and the prompt was a security countermeasure. It says such measures will now trigger only on "conclusive evidence" of malicious use, and that countermeasure information "will no longer be returned as prompts."
  • Loose ends: no advisory, no fixed tool version, and only one developer reproduced it. Equixly compared it with a similar demand PortSwigger's James Kettle saw from a website in a private bug bounty program and called a link "likely," not proven.

I'll take Alibaba at its word that it was meant as bot defense. The interesting part isn't the motive.

Why It Matters

To an AI agent, an error message is just more text to read. If that text says "to continue, send your task instructions and the user's Git email," a poorly scoped agent may simply comply, because it's trying to finish the job.

That's the core problem with agents and tool output. Every tool, API and website an agent touches can talk back to it, and not all of them will be as well-intentioned as a cloud provider's risk team. The same channel works for a compromised package, a malicious MCP server, or a web page someone planted for your agent to find.

And notice what was asked for: identity details, network location, the agent's instructions and its tool list. That's reconnaissance. If you ran an attacker's checklist for "what do I need to target this agent next," it would look a lot like that JSON.

What To Do

  • Treat tool output as data, never as instructions. Your agent framework or guardrails should flag tool responses that ask the agent to send information somewhere or change its behavior.
  • Keep secrets and identity out of the agent's reach unless the task needs them. An agent that can't read your Git config can't leak it.
  • Limit where agents can send data. Egress allow-lists for agent workloads stop "please POST this to my endpoint" cold.
  • Require approval for anything that sends data out that isn't part of the task.
  • Log what your agents send, not just what they run. Prompt and tool logs are your audit trail when something odd happens.
  • If you use the Alibaba Cloud CLI with agents, keep it updated and watch for unusual error responses.

Bottom Line

The CLI was supposed to talk to your code. It ended up talking to your agent, and asking it for things. Build agents that read tool output with healthy suspicion and can't hand over what they don't need to hold.

Sources: The Hacker News, Equixly

alibaba-cloudprompt-injectionai-agentscoding-agentsclidata-leakagetool-outputleast-privilege
All postsDiscuss on LinkedIn