Skip to main content

Alibaba Cloud Injects AI Agents via Error Responses

3 min read Runtime Rebel Intel
Primary source: thehackernews.com

This article was written by a language model from the source above and was not reviewed by a human before publication. Verify anything operational against the original. Editorial policy

Key points
  • Immediate impact: Alibaba Cloud returned prompt-injection payloads in error messages to extract local data from automated AI agents.
  • Affected systems: Alibaba Cloud command-line tool interacting with cloud databases, billing, and storage services under high-frequency queries.
  • Remediation: Configure AI agents to treat all server responses and error messages as untrusted data rather than executable instructions.

Advertisement

Overview of the Alibaba Cloud Prompt Injection Incident

According to The Hacker News, Alibaba Cloud admitted that its official command-line interface tool returned error responses containing instructions designed to trick AI agents. Discovered by a developer posting on V2EX under the username ZengLeiPro, normal cloud queries began returning payloads that demanded client attestation payloads, local computer details, and the agent’s internal operating instructions.

The cloud provider stated that a high-frequency sequence of calls triggered an automated risk-control mechanism. This countermeasure was ostensibly designed to separate malicious automated traffic from legitimate usage. However, instead of returning standard operational error codes, the server injected instructions directly into the JSON-formatted error block, executing a reverse prompt injection attack against the querying client.

Technical Analysis and Server Behavior

When investigating the anomalous behavior, the affected developer verified that the responses originated from legitimate infrastructure. The connection presented a valid TLS certificate issued for the provider’s API domain, and tests ruled out local man-in-the-middle manipulation. The behavior specifically triggered when requests carried the precise identifying string associated with older versions of the command-line tool.

Independent analysis highlighted similarities to other recent incidents. James Kettle, director of research at PortSwigger, reported a separate instance where a private bug bounty target answered an AI testing tool with nearly identical requests for client attestation and tool configurations. Security firm Equixly compared the payloads and noted shared error codes and matching attestation phrasing between the events.

While traditional prompt injection typically occurs when external data sources such as web pages or user-uploaded documents poison an LLM context window, this event demonstrates a systemic risk where trusted API endpoints become the source of malicious instructions. Because AI agents are generally engineered to obey structured instructions and system prompts, receiving commands via an authenticated API error response creates a high risk of unintended data exfiltration.

Mitigations and Defense Strategies

Security teams deploying autonomous LLM agents or integrating AI into cloud workflows must implement strict boundary controls to prevent unauthorized data access:

  • Treat Responses as Data: Ensure that AI agents process all inbound API payloads, including exception blocks and error messages, strictly as passive data rather than actionable instructions.
  • Enforce Least Privilege: Restrict the local file system access and tool execution capabilities granted to AI agents so that an accidental compliance with an injected command cannot compromise sensitive local files or credentials.
  • Implement Human-in-the-Loop Controls: Require explicit human approval before an agent can read local configuration files, access private keys, or transmit outbound network requests.
  • Monitor Agent Audit Logs: Regularly review agent execution traces and logs to detect any anomalous read requests or unexpected outbound traffic triggered by unexpected server responses.

Related: Japan’s Cyber Crisis: Surging Attacks & Data Breaches, AWS AgentCore Harness Default Settings Allow Credential Exfiltration

Advertisement

Advertisement