Four days ago, Zenity Labs walked onto the stage at SecTor 2026 in Toronto and disclosed something that should make anyone running AI agents on AWS uncomfortable.
They called it AgentCorruption. The short version: a single malicious prompt injected into any public-facing Amazon Bedrock AgentCore agent could let an attacker reach every other agent in your AWS account, steal their execution credentials, pull secrets out of Secrets Manager, and read private conversation histories. All of that from one input to one chatbot.
AWS's initial response, according to Forkast: expected behavior.
They then shipped patches anyway.
How it worked
The attack chains together three things, each of which is annoying on its own but devastating together:
Prompt injection as the entry point. An attacker sends a crafted message to any agent that accepts external input — a customer support bot, a document processing tool, an automated intake form. The injected instruction tells the agent to make a web request to a specific URL.
IMDS access as the pivot. The target URL is the EC2 instance metadata service. AWS recently made IMDSv2 mandatory for new AgentCore deployments, but older deployments and some configurations still permitted IMDSv1 requests. From inside the agent's execution environment, that request returns the IAM credentials attached to the agent's execution role.
Overly broad default IAM roles as the blast radius. AWS's default roles for AgentCore agents were broader than they needed to be. Once Zenity had the credentials from one agent's role, those credentials let them read other agents' private conversation memories, pull source code, and access secrets stored in Secrets Manager — across the same account and region.
They also planted persistent instructions in agent memory, meaning future sessions would behave differently without any indication of tampering.
The "expected behavior" response
This is worth dwelling on, because it tells you something about the vendor relationship.
When Zenity first reported this in December 2025, AWS's position was that the behavior was consistent with how the service was designed. The implication: if you hand an agent a broad IAM role and give it access to the metadata service, and the agent then uses that access when prompted to — well, it's doing what you told it to do.
There's a kernel of truth there. Prompt injection is a class of problem that AWS cannot fully fix on its behalf. But "your agent will do what an attacker tells it to do using the permissions you gave it" is not a reassuring answer when the permissions you gave it are the ones AWS suggested as defaults.
By the time Zenity ran a pre-publication check on September 29, AWS had made IMDSv2 mandatory for new deployments and removed some of the cross-agent and secret-access permissions from the default roles. Zenity is still calling the fix partial, because existing deployments are still exposed if you haven't updated your roles.
The fix is on you, not on AWS.
Who's actually affected
If you're running AWS Bedrock AgentCore agents and:
- You used the default IAM roles when you set them up (very common)
- You have any agent that accepts input from users, customers, or external documents
- You haven't explicitly enforced IMDSv2 on older agent deployments
Then your agents may be sitting on wider access than they need, and a prompt injection attack could turn that access into a full credential compromise.
The high-risk pattern is a customer-facing AI tool that has backend access to your systems. A support bot with database read access. A document analysis agent with credentials to your file storage. An email triage agent with OAuth tokens for your mail system. All normal, useful deployments. All potentially exposed.
What to do right now
This doesn't require an enterprise security program. It requires one afternoon.
Audit your agent IAM roles. Log into the IAM console and look at what execution role each of your AgentCore agents uses. If it's a shared role or an AWS-managed default, find out what permissions it actually has. Most agents don't need Secrets Manager access, cross-agent read access, or S3 write access. Remove what isn't used.
Enforce IMDSv2 on all agent deployments, not just new ones. AWS made it default for new agents, but that doesn't automatically update your existing ones. Check each deployed agent and explicitly require IMDSv2. AWS has a guide for this — it's a configuration change, not a redeployment.
Treat every external input as untrusted. If your agent accepts input from users, documents, emails, or any external source, add a sanitization step before that input reaches the agent's reasoning context. This doesn't have to be sophisticated — even stripping common injection patterns (instructions to "ignore previous", unusual XML-like tags, system-prompt-looking text) reduces the attack surface meaningfully.
Check your agent memory. If you have agents that maintain persistent memory across sessions, review what's in there. AgentCorruption demonstrated that memory can be tampered with silently. Look for entries that don't match your normal operational instructions.
The broader lesson
The "expected behavior" response from AWS is the tell. Cloud AI services are built with the assumption that the developer configures security correctly. The defaults are often fine for prototyping and often insufficient for production.
When you deploy an AI agent that accepts external input and has credentials attached to it, you've created an attack surface that didn't exist before. Prompt injection isn't a theoretical risk — it's the mechanism in the majority of real AI agent compromises this year. AgentCorruption shows what happens when that mechanism connects to a cloud service with overly broad permissions.
The good news: the fix is concrete and doesn't cost anything. Tighten the IAM roles, enforce IMDSv2, and treat external input as hostile until proven otherwise. Zenity estimates that for most small deployments, right-sizing agent permissions takes less than two hours.
If you're not sure what access your agents currently have, that's actually the most important thing to find out. An agent whose blast radius you don't know is a liability you can't quantify.
We help small org teams map exactly this — what your agents can reach, what they should be able to reach, and how to close the gap. Usually one working session.
Sources: Zenity Labs press release · The Next Web · Forkast News · CyberSecurityNews · ExplainX breakdown