Zenity: AWS AgentCore agents can be tricked into leaking credentials
2026-10-09 · The Register
The Register reports that Zenity Labs researchers Tamir Ishay Sharbat and Lana Salameh found that AWS Bedrock AgentCore agents could reach their instance's Instance Metadata Service (IMDS) endpoints. They disclosed it to AWS in December 2025 and followed up in January 2026 with details on excessive permissions.
In the scenario described, an attacker with ordinary chat access to a publicly exposed AgentCore agent asks it to fetch a credential endpoint, and the agent returns IMDS data including its temporary IAM credentials. It is a server-side request forgery technique, which Zenity attributes to insufficient network isolation in the Firecracker MicroVM AgentCore uses.
With the credentials, an attacker could enumerate other agents in the region, log in to Amazon ECR, pull agent container images and inspect source code. The credentials also exposed memory resources, potentially revealing users' agent sessions and conversations.
The bigger problem was the default AgentCore role, scoped to all AgentCore resources in a region rather than one agent. Credential holders could launch other agents, read sessions, write agent memories and fetch secrets from Secrets Manager. Zenity said writing false memories could "persistently alter agent behaviour" and hijack goals across future sessions.
On April 12, AWS told Zenity the report was "informative" and closed it, noting that since February 14 AgentCore uses IMDSv2 exclusively. Zenity rechecked on June 22 and found the excessive permissions unfixed; a final review on September 29 found AWS had addressed the remaining problems.
After publication, Amazon said the research misrepresents documented behavior as a vulnerability and suggested the attack would require developer error; The Register said Zenity's description does not match that scenario and has asked Amazon for clarification. The takeaways: metadata services can expose temporary credentials, overly broad IAM roles turn one compromised agent into a regional threat, and agent memory and sessions can be manipulated or exposed.