Skip to content

Accident reports · October 2026

Amazon Bedrock AgentCore: one question was enough for the agent to hand over its credentials

According to Zenity Labs, a public-facing support agent handed over its machine's credentials on request, and they opened the other agents in the account. AWS disputes that it is a flaw.

  • Company Amazon Web Services
  • Agent Amazon Bedrock AgentCore
  • Model not published
The leak
A server rack with orange cables plugged in
Photo: Kevin Ache on Unsplash
WhenReported to AWS in December 2025, presented in public in October 2026
WhoA public-facing support agent deployed on Amazon Bedrock AgentCore, tested by Zenity Labs
What the agent didIn the demonstration, on a simple request in the chat, it queried its machine's metadata service and returned temporary credentials
ConsequenceAccording to Zenity, those credentials opened the other AgentCore agents in the same account and region; no real-world exploitation known; AWS disputes that it is a flaw

What happened

This is a researchers' demonstration, not an observed attack. Zenity Labs talked to a support agent built on AgentCore, Amazon's service for running AI agents. In the chat, the researchers asked it to call the machine's metadata service, the internal address where a cloud server fetches its own credentials. The agent did, and returned temporary credentials.

According to Zenity, the default role given to AgentCore agents covered every AgentCore resource in the region, not just this agent. With those credentials, the researchers say they could launch other agents, read their sessions, write into their memory and read secrets stored in AWS Secrets Manager. Tamir Ishay Sharbat, director of security research at Zenity Labs, presented it at the SecTor conference in Toronto in October 2026, under the name "AgentCorruption".

Zenity told AWS in December 2025, then sent more details in January 2026. According to The Register, AgentCore has used only the protected version of the metadata service since 14 February 2026. The overly broad role was still in place on 22 June 2026, and fixed at a check on 29 September 2026. AWS, again according to The Register, says the research presents documented behaviour as a vulnerability, and that it takes a developer error to get there. Zenity says it saw no exploitation before the fix.

Why it happened

An agent that can make web requests can aim at any address its machine reaches, internal addresses included. Here, nothing stood between the agent and the service that hands out its own machine's credentials. And those credentials gave far more than a support agent needs.

So one question from a stranger was enough to get a key out, and that key opened the whole neighbourhood.

The failure family

In our catalogue, this is the "The leak" family: the agent takes out credentials that should never leave the machine, and hands them to whoever is talking to it.

The safeguard in code

  • The agent's web tools refuse internal addresses: metadata service, private network, localhost.
  • Each agent has its own role, limited to what it does. A support agent has no business launching other agents or reading secrets.
  • No credential, key or token goes out in a reply: an output filter looks for them and blocks the reply.

What we test

Here, much of the problem lies in the platform and the permissions, not in the model. A public agent asked by a visitor to call its machine's metadata service is not tested as such yet: it joins our list, next to the related case of an agent with keys within reach. What a company can lock down today: block internal addresses for the agent's tools, and give each agent a role of its own, as narrow as possible.

Sources: The Register · Dark Reading.

And your agent, what would it do?

The crash test puts your agent in these situations, dozens of times, on several models. You get the figures, the conversations where it gave in, and the fix plan.

Crash-test my agent See the live demo

Further reading