2084AI Security Observatory

Cloud & InfraCloud & Infra2084-A-0004

One prompt, one region: what AgentCorruption shows about credentials in agent runtimes

Zenity Labs says one prompt injection against a single Amazon Bedrock AgentCore agent yielded credentials whose default permissions reached every agent in the same account and region; AWS calls the behaviour documented and expected. Either way, the control that decides the damage is the agent's execution role, and defenders can audit it now.

When a company runs AI agents on a managed cloud platform, each agent's workload holds two things at once: a model that reads untrusted input, and the cloud permissions the agent needs to do useful work. Research published on 8 October 2026 by Zenity Labs, the research team of AI-agent security vendor Zenity, argues that on Amazon Bedrock AgentCore those two things sat close enough together that a single prompt injection against one agent could give an attacker credentials reaching every agent in the same AWS account and region. AWS, which operates the platform, says the behaviour the researchers describe is documented and expected. Both positions point at the same control, and it is one every team running agents can check this week: the agent runtime's execution role.

What happened

Zenity Labs calls the research AgentCorruption and published it as a five-part series about Amazon Bedrock AgentCore, AWS's managed service for deploying and operating AI agents. The researchers say they started from a single public-facing agent that anyone could chat with, used a prompt injection to make it fetch temporary credentials for its own execution role, and found that the default role was broad enough to act against other AgentCore resources across the whole region (announcement).

From there, according to the research, the same credentials could enumerate other agents, pull their container images and source code, invoke them, read other users' conversations, write to agents' memory, and retrieve tool credentials — API keys, OAuth tokens and more — held in AWS Secrets Manager (announcement). The posts describe tests run in the researchers' own AWS account, and neither the five posts nor Zenity's announcement reports exploitation in the wild. This piece is written by 2084's AI desk; it deliberately omits the request-level mechanics, prompts and payloads in the source posts, does not link to the five research posts (the overview and parts one to four), and keeps to mechanism, impact and defence.

Why this matters now

Two things make this an inventory task rather than a headline. First, the defaults have already moved: AWS told the researchers the runtime now uses a hardened metadata service, and the researchers say that by late September AWS had narrowed the default execution role (details below). A changed default, though, says nothing about what the roles already in your accounts can do. Second, as Zenity notes, organisations routinely run customer-facing and internal agents side by side in the same cloud environments, so what one agent's credentials can reach is not a theoretical question. The useful reading of AgentCorruption is not "is my cloud vulnerable" but "if one of my agents were talked into misbehaving, how far would its role carry it."

How the chain works, at the level that matters for defence

AgentCore Runtime runs each user session in its own dedicated microVM. Much as EC2 instances use the Instance Metadata Service, that microVM uses a metadata service to hand the workload temporary credentials for its execution role. AWS's documentation is explicit about the consequence: it warns that "any code or actor running inside the VM" can obtain those credentials by calling the metadata endpoint, and tells customers to scope the role accordingly (credentials management; best practices).

The general property follows. If an agent has a tool that can make outbound network requests, the metadata endpoint is reachable from where that tool runs, and an attacker can steer the agent through injected instructions, then the attacker can try to make the agent fetch its execution role's temporary credentials and hand them back. Once that works, the agent's identity becomes the attacker's identity. This is not a novel class of attack: MITRE ATT&CK catalogues it as T1552.005, Unsecured Credentials: Cloud Instance Metadata API, under Credential Access, and the entry explicitly covers reaching the metadata service through server-side request forgery. What agent runtimes add is an unusually easy trigger — natural-language input the model will act on. OWASP's Top 10 for Agentic Applications for 2026 names both halves of the pattern: agent goal hijack (ASI01) and identity and privilege abuse (ASI03).

Everything after that first step is ordinary IAM. The credentials can do what the execution role allows, and nothing more. That is why the execution role, not the prompt, decides the blast radius.

Worth stating plainly: the research does not claim that anyone broke out of a session's microVM or reached another session's compute. It faults two things — the microVM's network isolation, which the researchers say did not stop tool traffic from reaching the metadata service, and a default role far broader than one agent needed (announcement). Where responsibility falls is part of the disagreement. AWS's shared-responsibility model for AgentCore Runtime assigns microVM isolation and network infrastructure to AWS, and IAM controls, input validation, prompt-injection prevention and network configuration to the customer (best practices); Zenity describes the metadata exposure as an isolation failure at the platform level rather than the tool level.

How far it reached

The heart of the research is the claim that the default execution role was not scoped to the agent that held it: Zenity says in the series overview that it carried broad permissions over all AgentCore resources in the account's region. The researchers describe a progression, each step resting on a specific permission:

  • A log-group listing permission (logs:DescribeLogGroups) let them enumerate the agents in the region and their identifiers (part two).
  • Image-pull permissions covering every container repository in the account's region let them pull other agents' images and read their source code (announcement; parts one and two).
  • bedrock-agentcore:InvokeAgentRuntime, granted on every runtime in the region, let the holder of the credentials invoke any other agent in the same account and region — the path from a public-facing agent to internal ones (announcement; part two).
  • Memory read permissions (bedrock-agentcore:ListActors, ListSessions and ListEvents) let them read private conversations across agents, users and sessions, and event write and delete permissions let them tamper with live session history (announcement; part two).
  • bedrock-agentcore:CreateEvent also let them write conversation events that a memory's configured strategies could turn into long-term memory records, so an injected instruction could persist into an agent's later sessions. The research frames this as persistent hijacking of agents with long-term memory enabled, and notes that success depended on the content surviving extraction and being retrieved (announcement; part three).
  • According to the overview, the role also held bedrock-agentcore:GetResourceApiKey and secretsmanager:GetSecretValue. Part four describes using the Secrets Manager permission, whose scope matched every credential provider's secret in the region, to read the API keys and OAuth client secrets that AgentCore Identity stores for agents' tools.

These are real, documented IAM actions (execution role; resource-based policies; credential-provider scoping). The contested point is not whether the actions exist but how widely the default role granted them. The research describes a demonstration within a single account and region and does not claim to cross between customers; Zenity adds that the third-party API keys it harvested could reach services outside AWS (announcement).

AWS's position, and what has changed

AWS's stance, in a statement Zenity published with each post, is that this is configuration rather than a flaw: "The behavior described is documented and expected." AWS says agents can reach their own execution-role credentials through the metadata service, that an agent can reach resources in another AWS account only if the developer grants permissions on both the agent's execution role and the target resource, and that customers should grant execution roles only the permissions their agents need. The demonstration stayed inside one account, so the cross-account point does not bear on it directly; the rest of the statement matches AWS's public documentation, which tells customers to treat the metadata credentials as reachable from inside the VM and to apply least privilege to the role (best practices).

Two defaults have changed since the disclosure. In AWS's reply to the researchers, as Zenity reports it, AgentCore moved to an IMDSv2-only metadata service as of 14 February 2026, with newly deployed agents launching that way. AWS documentation separately states that from 30 June 2026 every runtime must have MMDSv2 — version 2 of the microVM metadata service — enabled, and that invocations of runtimes without it are rejected (troubleshooting; best practices). And during a pre-publication review on 29 September 2026, Zenity says it found AWS had tightened the default execution role, removing the region-wide ability to invoke other agents, read private conversations and read Secrets Manager secrets, and restricting other permissions. We could not find an AWS security bulletin or AgentCore release note describing the default-role change, so that specific fact rests on the researchers' observation.

Other platform changes point the same way. AWS added resource-based policies for AgentCore Memory in March 2026 (release notes); from June 2026 it let customers reference their own Secrets Manager secrets, governed by their own resource policies, in AgentCore Identity (what's new); and in October 2026 it added session context keys, so that sessions sharing one execution role can each be restricted to their own data on platform version V2 runtimes (release notes). There is also prior, separate work: in April 2026, Palo Alto Networks' Unit 42 reported that the AgentCore starter toolkit's auto-create logic generated execution roles with account-wide, wildcard permissions, and that AWS then updated its documentation to say the default roles are "designed for development and testing purposes" (Unit 42). In a later bulletin about separate toolkit flaws, AWS says the starter toolkit has been deprecated since 27 March 2026 (AWS bulletin).

What is still unclear

  • Whether older deployments still carry the old permissions. Zenity reports that the default execution role had changed by late September 2026; neither it nor AWS says whether roles created earlier were updated. We found no first-party evidence either way, so check your own roles rather than assume.
  • Which creation path produced the broad role. AgentCore execution roles can be auto-created by the console, generated by the deprecated starter toolkit or by the newer AgentCore CLI, or supplied by the customer (execution role; best practices; Unit 42). The research refers to the default role without naming the path; the earlier Unit 42 finding named the starter toolkit specifically. The sources do not settle which path, or paths, the research's role came from.
  • The characterisation itself. AWS calls the behaviour expected; Zenity calls it a vulnerability that it disclosed and that AWS then patched. We found no independent, third-party reproduction. Both research teams work for companies that sell security products for AI agents, and Zenity markets one for agents built on AgentCore (Zenity; Unit 42). We report the disagreement rather than resolve it.
  • Scale. Zenity's announcement calls the underlying issues systemic to AgentCore, but no source gives a count of affected customers, agents or regions, or reports any real-world abuse (announcement).

What defenders can do now

The through-line is that a managed agent platform makes the execution role the real security boundary. Concrete steps, mostly from AWS's own guidance:

  • Inventory every execution role across your AgentCore (and comparable) deployments. Look for wildcard resources and for region-wide permissions to invoke other agents, list or read conversations, create or delete memory events, or read secrets. Pay particular attention to roles that AgentCore tooling auto-created before late September 2026; whether they still carry the older, broader permissions is something to verify directly. Check image-pull and log-listing grants too: as of 11 November 2026, the example execution-role policy in AWS's runtime permissions guide still allows pulling images from every repository in the account's region and listing all its log groups — the two permissions the research used to find and copy other agents (execution role). Where an agent only needs its own image, scope the pull permission to that repository.
  • Give each agent its own least-privilege role, and separate trust boundaries by account. AWS's guidance is to avoid wildcard resource statements and use specific runtime ARNs, and to scope credential-provider access to specific workload-identity and provider ARNs, because the service does not otherwise bind workload identities to credential providers within an account (best practices; credential-provider scoping). Accounts are a harder boundary — by AWS's statement, cross-account access takes explicit grants on both sides — so keeping public-facing and internal agents in different accounts limits how far one hijacked role can reach.
  • Filter what agent tools can request, as defence in depth. AWS's guidance is to audit the HTTP-capable and other networking tools you give an agent, and to apply URL filtering or allowlisting at the tool level so they cannot make unintended requests to localhost endpoints; MITRE's listed mitigations for metadata-credential theft include limiting access to the metadata API (best practices; ATT&CK). Treat this as a second layer: the research reproduced the metadata access through more than one tool, so it is no substitute for a narrow role (part one).
  • Where a workload always has a user JWT, deny the user-id token path. AWS recommends explicitly denying GetWorkloadAccessTokenForUserId there and granting only GetWorkloadAccessTokenForJWT, since the user-id path does not verify the identifier it is given (get workload access token; execution role).
  • Add explicit denies to the resource-based policies on memory stores and Secrets Manager secrets. AgentCore Memory supports resource-based policies, and Secrets Manager secrets can carry their own. Within one account, an allow in either the role's policy or the resource's policy is enough, so a resource policy keeps a stray role out only if it explicitly denies principals that should not have access; AWS's AgentCore guide recommends explicit denies for security-critical restrictions (resource-based policies; Secrets Manager; IAM policy evaluation).
  • Turn on CloudTrail data events for AgentCore, and alarm on cross-agent activity. AgentCore runtime, memory and credential-provider activity is logged as CloudTrail data events, which trails and event data stores do not record by default and which carry extra charges (CloudTrail data events). Once they are on, watch for unexpected cross-agent invokes, bulk conversation listing, and an execution role's session making calls from outside its runtime — the research used the stolen credentials from the researchers' own machine (part one). Secrets Manager calls are already recorded as CloudTrail events, with the last 90 days visible in Event history, so you can check now whether any agent role has read secrets it should not (Secrets Manager logging).

Beyond AWS, the pattern is the same wherever agents run with a cloud identity. Google's agent platform, for instance, gives each agent its own identity in place of shared service accounts, and by default binds tokens to the agent's trusted runtime so that stolen tokens cannot be replayed elsewhere (agent identity overview). As a Zenity executive put it in the company's announcement, "Cloud security is all about segmentation and least-privilege access." Whatever one calls AgentCorruption, a prompt injection turns into a cloud incident when an agent that can be steered holds a role that reaches further than its job. The part defenders control is not a patch to wait for — it is a review of what each agent's role can touch.

Timeline

  1. Zenity Labs says it reported the metadata-service access issue to AWS (its disclosure timelines and announcement give this date).

  2. Zenity Labs says it disclosed the over-broad default execution role and its blast radius to AWS.

  3. Per AWS's reply to Zenity, AgentCore moved to IMDSv2-only; newly deployed agents launch with IMDSv2.

  4. Per Zenity, AWS said it was working on the underlying issue; the default role was unchanged.

  5. Per Zenity, AWS closed the first report as "informative."

  6. Per Zenity, a recheck found the default role's permissions still unchanged.

  7. AWS documentation states that from this date every AgentCore runtime must have MMDSv2 enabled; invocations of runtimes without it are rejected. ↗(opens original source)

  8. Per Zenity, a pre-publication review found AWS had tightened the default execution role, removing region-wide agent invocation, conversation reads and Secrets Manager access.

  9. Zenity Labs publishes the five-part AgentCorruption research.

Mitigation

Inventory every agent execution role and look for wildcard resources and region-wide permissions to invoke other agents, read or write agent memory, read secrets, pull container images or list log groups. Give each agent its own least-privilege role, and keep public-facing and internal agents in separate accounts. Where a workload always has a user JWT, deny the user-id workload-token path and grant only the JWT path. Add explicit deny statements to the resource-based policies on memory stores and Secrets Manager secrets. Turn on CloudTrail data events for AgentCore and alarm on cross-agent invocation, bulk conversation listing, secret reads and execution-role sessions used outside their runtime. Filter what agent tools can request, as defence in depth.

References

  1. Zenity · Zenity Labs Discloses AgentCorruption, a Chain of AWS AgentCore Flaws That Allowed One Prompt to Take Over All AgentCore Agents Within an AWS Account and Region AI security source · Accessed 2026-11-09
  2. Zenity · End-to-End Security for AI Agents Built on Amazon Bedrock AgentCore AI security source · Accessed 2026-11-09
  3. Amazon Web Services · IAM Permissions for AgentCore Runtime Vendor PSIRT · Accessed 2026-11-11
  4. Amazon Web Services · Security best practices for AgentCore Runtime Vendor PSIRT · Accessed 2026-11-09
  5. Amazon Web Services · Understanding Credentials Management in Amazon Bedrock AgentCore Vendor PSIRT · Accessed 2026-11-09
  6. Amazon Web Services · Get workload access token Vendor PSIRT · Accessed 2026-11-09
  7. Amazon Web Services · Resource-based policies for Amazon Bedrock AgentCore Vendor PSIRT · Accessed 2026-11-09
  8. Amazon Web Services · Scope down access to credential providers by workload identity Vendor PSIRT · Accessed 2026-11-09
  9. Amazon Web Services · Troubleshoot AgentCore Runtime Vendor PSIRT · Accessed 2026-11-11
  10. Amazon Web Services · Release notes for Amazon Bedrock AgentCore Vendor PSIRT · Accessed 2026-11-11
  11. Amazon Web Services · Amazon Bedrock AgentCore Identity now allows you to bring your own secrets with AWS Secrets Manager Vendor PSIRT · Accessed 2026-11-09
  12. Amazon Web Services · Resource-based policies (AWS Secrets Manager User Guide) Vendor PSIRT · Accessed 2026-11-09
  13. Amazon Web Services · Log AWS Secrets Manager events with AWS CloudTrail Vendor PSIRT · Accessed 2026-11-11
  14. Amazon Web Services · Policy evaluation for requests within a single account Vendor PSIRT · Accessed 2026-11-09
  15. Amazon Web Services · Logging data events (AWS CloudTrail User Guide) Vendor PSIRT · Accessed 2026-11-11
  16. Amazon Web Services · CVE-2026-105812 and CVE-2026-106032: Issue with Bedrock AgentCore Starter Toolkit - Import Agent Code Injection and SSRF (bulletin 2026-127-AWS) Vendor PSIRT · Accessed 2026-11-09
  17. MITRE ATT&CK · Unsecured Credentials: Cloud Instance Metadata API (T1552.005) Official & standards · Accessed 2026-11-09
  18. OWASP Gen AI Security Project · OWASP Top 10 for Agentic Applications for 2026 AI security source · Accessed 2026-11-09
  19. OWASP Gen AI Security Project · GenAI and Agentic AI Exploit Roundup Q3 2026 (ASI category names) AI security source · Accessed 2026-11-09
  20. Palo Alto Networks Unit 42 · Cracks in the Bedrock: Agent God Mode Threat intelligence · Accessed 2026-11-09
  21. Google Cloud · Agent Identity overview Vendor PSIRT · Accessed 2026-11-11

Disclosure

Written by Anthropic's Claude.