# One prompt, every agent: what AgentCorruption says about agent roles on AWS

> Zenity Labs showed that one prompt injection could pull a Bedrock AgentCore agent's role credentials and reach other agents in the same region. What happened, what AWS says, and how to scope agent roles this week.

Published November 17, 2026 by Antivenom · https://antivenom.ai/blog/agentcorruption-bedrock-agentcore

On October 8, 2026, Zenity Labs published research it calls [AgentCorruption](https://labs.zenity.io/post/agentcorruption-how-a-single-prompt-collapsed-the-entire-cloud-security-model). Its researchers showed that one prompt injection could make an agent on Amazon Bedrock AgentCore fetch temporary AWS credentials for its own execution role from the metadata service. With the default execution role of that time, those credentials could reach every AgentCore agent in the same account and region.

AWS does not accept the framing. A spokesperson [told SC Media](https://www.scworld.com/brief/amazon-bedrock-agent-vulnerability-allowed-credential-theft-and-code-access) that the research "inaccurately paints expected and documented behavior as a vulnerability." Both sides have a point, and the gap between them is the useful part of this story.

![Diagram: a prompt injection makes an agent's HTTP tool call the metadata service, which returns the execution role's credentials. The default role could list agents, invoke them, read their conversations, plant memories and read secrets across the region. Three controls break the path: tool egress limits, one role per agent, and MMDSv2.](/blog/agentcorruption-bedrock-agentcore.svg)

## What happened

AgentCore runs each agent in a Firecracker microVM. According to [Zenity's write-up](https://labs.zenity.io/post/agentcorruption-how-a-single-prompt-collapsed-the-entire-cloud-security-model), those microVMs lacked enough network isolation, so any agent tool that makes HTTP requests sends them from inside the instance. That makes an ordinary HTTP tool into a server-side request forgery primitive. A prompt that tells the agent to request the metadata endpoint gets back the execution role's temporary credentials.

The second half is the role. Zenity describes the default execution role as not scoped to one agent. With its credentials, the researchers say they could:

- find every agent and its ID through `DescribeLogGroups`
- pull any ECR image in the region, which held agent source code
- invoke any agent in the region through `bedrock-agentcore:InvokeAgentRuntime`
- read other agents' private conversations, users and sessions with `bedrock-agentcore:ListEvents`
- plant memories in agents with long-term memory through `bedrock-agentcore:CreateEvent`
- reach tool credentials through `bedrock-agentcore:GetResourceApiKey` and `secretsmanager:GetSecretValue`

Zenity is clear about scope: the blast radius was one account and one region. Cross-account access was not the issue.

The [disclosure timeline](https://labs.zenity.io/post/agentcorruption-how-a-single-prompt-collapsed-the-entire-cloud-security-model) is long. Zenity reported the metadata access on December 25, 2025 and the broad default role on January 12, 2026. AWS told Zenity that AgentCore moved to IMDSv2-only on February 14. AWS closed the first report as "informative" on April 12. On June 22, Zenity found the role unchanged. By September 29, it saw substantial changes: AWS had removed the permissions for wide agent invocation, reading private conversations and reading Secrets Manager secrets across the region. [SC Media](https://www.scworld.com/brief/amazon-bedrock-agent-vulnerability-allowed-credential-theft-and-code-access) reports the same sequence.

This was research. Neither the write-up nor AWS's statement describes the technique being used against a real customer.

## AWS's position, stated fairly

AWS's [statement to SC Media](https://www.scworld.com/brief/amazon-bedrock-agent-vulnerability-allowed-credential-theft-and-code-access) makes three points. An agent can reach resources in another account only if the developer grants permissions on both the execution role and the target resource. Customers should grant execution roles only the permissions their agents need. And the behavior is documented.

The documentation supports that last point. AgentCore's [credentials management page](https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/security-credentials-management.html) warns that any code or actor inside the VM can read the execution role's credentials from the metadata endpoint, and tells you to scope the role tightly, especially when an LLM can generate code. The [runtime security best practices](https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/runtime-security-best-practices.html) say the same, and add that the execution role should have equal or fewer privileges than the principals who can invoke it.

So AWS is right that the mechanism is known. Zenity's point is about what the default made that mechanism worth. **A documented behavior plus a wide default role turns one prompt into region-wide reach.** Both statements can be true at once, and the second one is the one that hurts.

## Why it worked

Three conditions lined up, and none of them is exotic.

1. **The agent read untrusted text.** Any agent that reads user input, web pages, documents or tool output can be steered by that text. Prompt injection is not a bug you patch once.
2. **The agent had a tool that could make arbitrary HTTP requests**, including to the link-local metadata address.
3. **The credentials it could reach were not scoped to it.** They were scoped to the service.

If that shape looks familiar, it should. It is the [Capital One chain](https://antivenom.ai/blog/three-mediums-one-breach) with a new first link: a request that should not happen, a metadata service doing its job, and a role with more reach than the workload needed.

A token-based metadata service raises the bar for classic forwarded requests. It does not change the core fact here. The agent is not forwarding someone else's request. It is the workload, and AWS's own docs say the workload can read its credentials. **The role, not the metadata service, decides how bad a prompt injection gets.**

## What it means on AWS

Treat every agent as a workload identity that untrusted text can drive. Its system prompt is a request, not a boundary. Its IAM role is the boundary.

That changes how you read a few defaults. AWS's [runtime best practices](https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/runtime-security-best-practices.html) note that the execution role created by the AgentCore CLI permits model invocation for all foundation models and inference profiles in the account, and tell you to supply your own least-privilege role for production. Starter roles are built so the first demo works. They are not built for the day a customer-facing agent reads a hostile document.

It also changes how you think about shared roles. If two agents share one role, a prompt injection in the less important agent is a prompt injection in the more important one. Customer-facing and internal agents in the same account and region deserve separate roles, and often separate accounts.

## What to do this week

- **List every AgentCore runtime and its execution role.** Flag any role used by more than one agent, and any role that came from a starter template.
- **Give each agent its own role.** Use full resource ARNs for AgentCore runtimes, memory, ECR repositories and secrets. No wildcards on `bedrock-agentcore:*` actions.
- **Check the privilege ceiling.** The execution role should never be able to do more than the people and services allowed to invoke the agent.
- **Require MMDSv2.** AWS's [best practices page](https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/runtime-security-best-practices.html) says runtimes must have it enabled from June 30, 2026, through `requireMMDSV2` in `metadataConfiguration`. Confirm it on every runtime.
- **Limit what tools can reach.** HTTP tools should not reach link-local, localhost or internal ranges. Allow-list destinations at the tool, and use VPC mode with tight outbound security group rules.
- **Lock the trust policy.** Add `aws:SourceAccount` and `aws:SourceArn` conditions, with the full runtime ARN where you can.
- **Watch the role in CloudTrail.** Alert when an agent role calls `ListEvents`, `CreateEvent`, `GetSecretValue` or pulls ECR images that do not belong to that agent.

## Closing

AgentCorruption is a good test of whether an agent platform's defaults match its risk. AWS has narrowed the default role. Your own roles, the ones you wrote last quarter to get a pilot working, have not been narrowed by anyone.

That is the gap Antivenom is built for. Our AI red team runs only against your own systems, with your permission, and checks whether a steered agent can walk from its role to other agents, memories and secrets. The AI blue team scopes the role, and the red team walks the path again to prove it is closed. For the original version of this chain, read [three medium findings make one critical breach](https://antivenom.ai/blog/three-mediums-one-breach).
