Alibaba Cloud CLI reverse prompt injection
New AI TTP: Alibaba Cloud CLI error responses inject reverse prompts telling AI coding agents to collect local identity and agent configuration data
Posted · Spectrum Delta Research Team
Summary
Alibaba Cloud's production API gateway served official CLI error responses carrying reverse prompt injection that instructed AI coding agents to collect the local username, Git commit email, public IP and Claude Code model configuration plus the agent's own system prompt and tool list, and submit them as a client attestation. A developer running the official CLI at high frequency through an AI agent (IN_THE_WILD, first-party report, December 1) captured a 7,153-byte JSON payload calling itself The analysis proxy, returned as HTTP 302 only to requests with the aliyun CLI 3.3.4 user-agent and verified over a valid Alibaba Cloud TLS certificate; Alibaba Cloud admitted (C/2, December 2) that its risk-control countermeasure produced the prompt and said it will stop. The developer's agent did not comply and no data receipt has been confirmed, so only delivery is documented. The boundary is new because the carrier is a trusted vendor's own service response to its official tool (nearest pack objects: DT-AAG1-AI-014, DT-AAG1-AI-025). Observability is CONDITIONAL: the deciding property survives only where agent session transcripts or endpoint process telemetry capture the collection steps.
Breakdown
Technical exposure
- AI coding agent driven by the official Alibaba Cloud CLI 3.3.4
- High-frequency API calls that trip the gateway risk-control policy
- Agent that treats tool error responses as trusted instructions
Adversary
Alibaba Cloud · vendor-admitted risk-control countermeasure served on its production gateway (self-statement via Weibo support account, C/2)
Procedures (1)
Cloud gateway error response directs agent to collect local data
Logs
- Claude Code session transcript · Assistant turn following an aliyun CLI error response that runs git config user.email, reads ~/.claude/settings.json or model environment variables, or describes posting a client attestation to a /secure/hex/api endpoint; requires local session transcript logging on the developer endpoint
Sysmon process events · Event ID 1 process creations parented by the coding agent or its shell: git config user.email, whoami, reads of .claude/settings.json, or curl posts to the attestation path after a CLI error response; requires Sysmon deployed on the developer endpoint
Sources
- B/2The Hacker News: Alibaba Cloud Got Caught Prompt-Injecting AI Agents With Requests for Sensitive Local Data
- B/3Equixly: When the target talks back - Prompt injection aimed at AI agents
Grades are source reliability (A–F) and information credibility (1–6).
Questions, detections or sightings of Alibaba Cloud CLI reverse prompt injection? Bring them to the community.