Briefing · Article · updated · Boston Identity
Zenity: one AgentCore agent's credentials reached all agents in its account and region; AWS calls it expected
Zenity Labs, which sells security for AI agents, says a prompt injection sent through one exposed Amazon Bedrock AgentCore agent got it to hand over its cloud credentials. The default role behind those credentials then reached every AgentCore agent in the same account and region, including their conversations, memories and stored secrets. AWS calls the behaviour documented and expected and tells customers to grant least privilege.
Zenity Labs · Tamir Ishay Sharbat · October 8, 2026 · read
What's happening
Finding3Zenity says AgentCore's default role covered every agent in the account's region, so one agent's credentials could call the others and read their conversations.
Zenity reports that the execution role AgentCore attached to agents by default was not scoped to the agent. It carried bedrock-agentcore:InvokeAgentRuntime and ListEvents across every AgentCore resource in the account's region, plus DescribeLogGroups to list the other agents' IDs and pulls of any container image in the region's registry. With one agent's credentials, Zenity says it could call any other agent and "read all private conversations across all AgentCore agents, users and sessions", and it shows one such log. It names the permissions but does not publish the policy. Zenity reported the metadata access to AWS on December 25, 2025 and the role on January 12, 2026; AWS said on February 25 that it was working on the underlying issue, the role was still unchanged on June 22, and Zenity says the permissions for wide agent execution, reading conversations and reaching Secrets Manager were gone when it checked on September 29. AWS's statement addresses access to another account, while Zenity's claims stay inside one, and tells customers to grant execution roles only what their agents need.
flag a problem with BI-FIND-2026-0939
Figure steps
- An attacker with only chat access sends one injected message to an exposed AgentCore agent.
- The agent's HTTP tool asks the metadata service for its role credentials.
- The service returns temporary role credentials, and the agent hands them back. AWS calls this documented and expected.
- Zenity says the shared default role, scoped to the whole region, then lists every agent ID, invokes any agent and reads every conversation.
- Zenity says the same role could plant memories and read the tool secrets AgentCore keeps from agents.
One injected message yields the agent's role credentials, which Zenity says then reach every other agent in the region.
Drawn from Zenity Labs' account of the attackSource dated October 8, 2026Passage: Section 2
Swipe for the full figure →
Zenity says one prompt injection made an exposed AgentCore agent with a tool for HTTP requests hand over its own role credentials from the metadata service.
The way in was the instance metadata service. Zenity says AgentCore's Firecracker microVMs "do not provide sufficient network isolation", so any agent tool that makes HTTP requests can reach 169.254.169.254 from inside. A single prompt injection to an exposed agent got it to request that address and return its own temporary role credentials. AWS does not dispute the mechanics: its statement says agents "can access the credentials for their own execution role through the metadata service" and calls the behaviour "documented and expected". AWS closed Zenity's report as "informative" on April 12, 2026, noting that newly deployed agents had used IMDSv2 only since February 14. The overview does not say whether IMDSv2 stops the same prompt, yet Zenity writes that every issue in the post has "been patched by the AWS security team".
flag a problem with BI-FIND-2026-0940
Zenity says the agent's own execution role could plant memories in any agent in the region with long-term memory turned on, so they carry into later sessions.
Zenity says the same role could also write and steal. bedrock-agentcore:CreateEvent let it write memories into any agent in the region with long-term memory turned on, so planted instructions would carry into later sessions. bedrock-agentcore:GetResourceApiKey and secretsmanager:GetSecretValue reached the tool credentials that AgentCore Identity and Gateway are meant to keep away from the agent. The overview asserts both steps and leaves the detail to follow-up posts.
flag a problem with BI-FIND-2026-0941
Section by section
4showing 4 of 4
[1]
Zenity Labs says AgentCore agents run in Firecracker microVMs without enough network isolation, so any agent tool that makes HTTP requests can reach the metadata service at 169.254.169.254. One prompt injection through an exposed chat returned the agent's temporary IAM credentials. The post shows a screenshot of the injected prompt and no payload code.
technical artifactfrom published text + figures
[2]Overprivileged default role and regional blast radius
Tamir Ishay Sharbat, Zenity Labs
Agentic identityNon-human identityAI trust
Overprivileged default role and regional blast radius
Tamir Ishay Sharbat, Zenity Labs
The default AgentCore role was not scoped to one agent. It covered all AgentCore resources in the account's region: DescribeLogGroups to find agent IDs, ECR pulls (repository names match agent IDs), InvokeAgentRuntime, and ListEvents to read every conversation. Zenity calls this lateral movement across agents and a breach of privacy boundaries, and shows one extracted conversation log.
technical artifactfrom published text + figures
[3]Memory poisoning and connected-tool credential theft
Tamir Ishay Sharbat, Zenity Labs
Agentic identityNon-human identityAI trust
Memory poisoning and connected-tool credential theft
Tamir Ishay Sharbat, Zenity Labs
The same role allowed bedrock-agentcore:CreateEvent on AgentCore Memory, so an attacker could write memories into any agent or user with long-term memory and change its behaviour for later sessions. GetResourceApiKey and secretsmanager:GetSecretValue exposed credentials that AgentCore Identity and Gateway are meant to keep from the agent. The overview asserts these steps and leaves the detail to linked follow-up posts.
technical artifactfrom published text + figures
[4]
Zenity filed two reports with AWS: IMDS access (December 25, 2025, closed as 'informative' April 12, 2026, with IMDSv2 only from February 14) and the overprivileged role (January 12, 2026, unchanged June 22, much narrower by September 29 per Zenity). AWS's statement calls the behaviour documented and expected and points to its least-privilege guidance. Zenity ends with a general warning about agents that share one cloud environment.
technical artifactfrom published text