Security researchers at Zenity Labs have identified a vulnerability chain in Amazon Bedrock AgentCore that allows a single prompt to compromise every AI agent within an AWS account and region. Dubbed "AgentCorruption," the flaw enables attackers with chat access to one public agent to steal credentials, source code, and private user data from other agents in the same environment.
What Happened
According to Zenity, the attack vector exploited a lack of isolation between agents and the AWS Instance Metadata Service (IMDS), which resides at the internal address 169.254.169.254. While AI agents typically cannot reach this service directly, AgentCore’s default configuration allowed it. Researchers demonstrated that a plain-language prompt could instruct an agent to query the metadata service and transmit the resulting temporary AWS credentials to an external server.
Once the credentials were captured, attackers could operate outside the agent platform entirely. The stolen keys granted read, write, and delete permissions across all agents in the specific AWS account and region. This allowed the researchers to list every agent, download their container images and source code, and invoke individual agents. The source packages often contained forgotten passwords or API keys, further expanding the attack surface.
Zenity also demonstrated the ability to poison agent memory. By altering long-term memory stores, attackers could plant instructions that caused agents to forward future conversations to external destinations. This manipulation allowed users to interact with a compromised agent without noticing any deviation in behavior, effectively turning the agent into a silent data exfiltrator.
Why It Matters
The findings highlight a critical tension between cloud security best practices and the operational flexibility required for AI agents. Michael Bargury, Zenity’s CTO, noted that while cloud security relies on segmentation and least-privilege access, AI agents often require creative freedom to be useful. When public-facing and internal agents share an environment with overly broad default permissions, a single vulnerability can compromise security boundaries across the entire system.
The vulnerability chain persisted for months after Zenity reported it to AWS on December 25, 2025. In response, AWS made IMDSv2 the default for new AgentCore deployments, a more secure version of the metadata service. Additionally, around August, AWS updated AgentCore’s default execution role to restrict agents from invoking other agents, reading private conversations, or retrieving credentials from AWS Secrets Manager. However, Zenity continues to recommend that enterprises create custom roles with narrower access to mitigate risks.
This incident follows a pattern of agent-specific vulnerabilities documented by Zenity, including "AgentFlayer" and "AgentForger," which affected platforms like Salesforce Einstein, Copilot Studio, Cursor, and OpenAI’s Workspace Agents. These cases underscore the growing need for specialized security tools as AI agents gain autonomy and access to sensitive enterprise data.
The Bottom Line
Zenity’s research reveals that default configurations in Amazon Bedrock AgentCore initially allowed a single prompt to hijack all agents in an AWS region, exposing credentials and private data. While AWS has since tightened metadata access and default permissions, the incident serves as a warning for enterprises to implement strict, custom role-based access controls for AI agents rather than relying on platform defaults.