Alibaba Cloud CLI Served Prompt Injection Payloads to AI Agents via Its Own API
What happened
Aviatrix's threat research, published as When Your Cloud Provider Becomes the Attacker: Alibaba Cloud's Prompt Injection of AI Agents, found that Alibaba Cloud's official command-line tool was returning 7,153-byte JSON payloads embedded in error responses. This occurred when requests carried the tool's specific AI agent identifier. The payloads impersonated an internal 'analysis proxy' and instructed AI agents to collect local credentials, public IP addresses, and cloud region details. They also targeted repository addresses and the agent's own operating instructions and tool permissions. Agents were then directed to transmit that data to an external endpoint. The responses arrived over Alibaba Cloud's own certificate-validated connection, ruling out interception by a third party and meaning standard network security controls provided no protection. Alibaba Cloud acknowledged the behavior in a Weibo post and described it as a risk-control countermeasure targeting high-frequency automated requests. It said it would discontinue the practice but issued no formal advisory and released no patched tool version. Security researcher James Kettle of PortSwigger independently encountered a nearly identical instruction on a separate platform the same week. This suggests the technique may be in broader use as an anti-automation tactic.
Why it matters
- ·Enterprises typically treat responses from certificate-validated, vendor-signed infrastructure as inherently trustworthy. This incident shows that adversarial instructions can arrive through a cloud provider's own authenticated channel. Such instructions bypass network-level controls entirely and defeat a core assumption in most AI agent security programs. Organizations using the Alibaba Cloud CLI with AI agents, particularly those whose agents have access to credentials or sensitive configuration data, should review their exposure.
- ·The incident exposes a supply chain control gap. AI governance programs that assess third-party risk at the procurement stage may not catch a provider embedding covert data-collection instructions in its own operational tooling. Compliance teams operating under frameworks that require supply chain security measures, such as those in regulated financial services, face direct questions about whether third-party risk assessments covered this class of server-side behavior.
- ·Alibaba Cloud's response, a social media post with no formal advisory and no patched release, falls short of the structured vendor incident disclosure that many governance frameworks require. Compliance teams relying on contractual incident notification clauses should verify whether this event triggered those obligations and whether their vendor risk records reflect it.
Stay ahead of stories like this
Get every Global AI governance development like this one, plus the rest of the week's developments. Every Thursday.
Recent issues
- Frontier AI systems are proving harder to contain and easier to misuse than enterprise risk models assumed, while regulators are beginning to demand accountability for exactly those gaps.3 Dec
- Three separate enforcement and operational crises landed this week, each adding urgent new tasks for compliance teams across patching governance, state-level AI liability, and export control disclosure.26 Nov
Free every Thursday. Unsubscribe anytime.
What to do now
- ☐Determine whether any AI agents in your environment use the Alibaba Cloud CLI or its API, and whether those agents have access to credentials, configuration files, or sensitive operational data.
- ☐Treat all tool and API responses, including error messages from trusted vendors, as untrusted input for agents. Ask your security or engineering team whether agents are configured to execute instructions found in service responses without a separate authorization step.
- ☐Require human or policy-layer approval before any agent transmits credentials, system configuration data, or its own operating instructions to an external endpoint, using AGT-005 as the control baseline.
- ☐Check your vendor contracts and incident notification clauses to determine whether Alibaba Cloud's Weibo disclosure triggered a formal notification obligation, and document whether you received adequate notice.
- ☐Review your third-party AI vendor due diligence process to confirm it covers server-side behavior by provider tooling, not only the model or data-handling terms of a vendor agreement.
Put this into practice
Start here
Agent Prompt Injection DefenseUse this to assess and implement defenses that prevent AI agents from treating instructions embedded in vendor or tool responses as authoritative commands without independent authorization.
Supporting control
Agent Permission BoundariesUse this to implement agent permission boundaries and check the evidence required.
Related guidance: How do we govern AI agents that take autonomous actions? · How do we ensure third-party AI vendors meet our standards? · What AI agent security controls do we need as agent autonomy expands?
Related controls: Agent Action Audit Trail · Vendor AI Incident Notification Requirements · Sensitive Data Handling in AI Pipelines
What to watch next
Compliance teams should monitor whether Alibaba Cloud issues a formal security advisory or a patched tool version. They should also watch whether independent researchers confirm the technique is in use at other cloud providers. The incident is likely to inform forthcoming guidance on agentic AI supply chain risk from bodies such as CISA and national cybersecurity agencies. Those bodies have already flagged prompt injection as a leading agent threat. Organizations in EU financial services should also watch for supervisory attention to whether this event meets disclosure thresholds under third-party ICT risk rules. Broader regulatory signals on what constitutes adequate vendor incident notification for AI tooling are still developing, and this case may become a reference point.
