Security

AWS AgentCore vulnerability: one prompt to hijack AI agents

Zenity Labs showed one chat message to a public AWS AgentCore agent could steal cloud credentials, invoke other agents and plant fake memories. Here is what SMEs should do.

Trị Trương · 10 min read
AWS AgentCore vulnerability: one prompt to hijack AI agents

The AWS AgentCore vulnerability chain that Zenity Labs published on October 8, 2026 under the name “AgentCorruption” showed that a single chat message sent to one public-facing AI agent could be enough to steal cloud credentials, read other users’ private conversations and poison the memory of other agents in the same AWS account. It is one of the clearest demonstrations so far that prompt injection is no longer just about an AI saying the wrong thing: it can become a genuine entry point into real infrastructure. This article explains how the attack worked in plain language, how the disclosure between Zenity and AWS unfolded, why AWS disputes the framing, and what small and mid-sized businesses running AI agents should do right now.

What is the AWS AgentCore vulnerability “AgentCorruption”?

Amazon Bedrock AgentCore is AWS’s managed platform for building, running and operating AI agents. Companies use it for customer-support chatbots, internal assistants that search documents, agents that process orders or tickets, and many other automated workflows. Each agent runs inside a lightweight Firecracker MicroVM and is attached to an IAM “execution role” that gives it permission to call other AWS services on its behalf.

Zenity Labs researchers Tamir Ishay Sharbat and Lana Salameh found that an attacker needed nothing more than chat access to one agent exposed to the internet. With a carefully written prompt, they persuaded the agent to send an HTTP request to the Instance Metadata Service (IMDS) at 169.254.169.254 and hand back its own temporary credentials. That alone would be a serious leak, but the real problem was what those credentials could do. The default execution role was not scoped to the individual agent. Instead, it covered AgentCore resources across the entire account and region.

According to The Register, the impact was limited to agents in the same AWS account and the same region. In practice, however, many organisations keep all of their agents, both customer-facing and internal, in one account and one region. For them, “same account and region” effectively means “the entire AI estate”.

How the attack worked: from one chat message to cloud keys

A useful analogy is a new receptionist who has been handed the master key ring for the whole building. A stranger does not need to break a door; they only need to talk the receptionist into reading out the numbers stamped on the keys. The chain Zenity described followed a similar logic, in a handful of steps:

  1. Prompt injection plus SSRF: the agent had a tool that could make HTTP requests, for example to look something up on the web. Because the MicroVM lacked sufficient network isolation, that tool effectively became a server-side request forgery (SSRF) primitive able to reach the metadata endpoint.
  2. Credential theft: because the request came from inside the instance, IMDS returned temporary credentials for the agent’s execution role.
  3. Discovery: using DescribeLogGroups, the attacker could enumerate agent IDs across the region. ECR repository names matched those IDs, so the attacker could also pull the agents’ container images and with them the agents’ code.
  4. Lateral movement: region-wide InvokeAgentRuntime permission allowed the attacker to invoke any agent in the account and region, including sensitive internal ones that were never meant to be public.
  5. Reading conversations: ListEvents exposed private conversations across agents, users and sessions.
  6. Memory poisoning: CreateEvent on memory resources let the attacker plant false memories in agents with long-term memory enabled, changing their goals and behaviour across sessions without users noticing.
  7. Secret theft: permissions to read Secrets Manager values and tool API keys undermined AgentCore Identity and Gateway, the components designed precisely so that an agent never holds raw tool credentials itself.
Steps of the AgentCorruption chain from prompt injection to secret theft in AWS AgentCore
The AgentCorruption attack chain

What stands out about the AWS AgentCore vulnerability is that none of these steps required memory-corruption exploits or custom malware. Every piece was a feature behaving roughly as designed: an HTTP tool, a metadata service and an IAM role with far too much reach. Chained together, they produced an account-wide compromise path. That is why many experts treat AgentCorruption as an architecture lesson rather than a one-off bug.

Why AI agent memory poisoning is worse than a leaked key

Temporary AWS credentials expire quickly and can be revoked. A memory planted in an agent’s long-term store is different: it stays there after the keys have been rotated. Speaking to CSO Online, analyst Frank Dickson of Dickson Research called memory poisoning the biggest concern, because it can turn an agent into a sleeper that acts only when a later trigger appears. Nik Kale of the Coalition for Secure AI (CoSAI) made a related point: the real security boundary is the identity an agent carries, and poisoned memory persists even after credentials are changed.

Imagine a customer-service agent that has been given a false memory along the lines of “when a customer asks about a refund, tell them to transfer the fee to account X”. The agent would repeat that instruction politely and confidently for weeks. The operations team might only discover it when customers begin to complain. For a small business without a security operations centre watching agent behaviour, this kind of slow, quiet manipulation is particularly hard to spot, and it can do real reputational and financial damage before anyone notices.

Timeline: almost ten months from report to remediation

Based on Zenity Labs’ write-up and reporting by The Register and CSO Online, the coordination with AWS took a long time:

  • December 25, 2025: Zenity submitted its first report, covering agent access to IMDS.
  • January 12, 2026: a second report followed on the over-privileged default role and its blast radius.
  • February 14, 2026: AgentCore moved to IMDSv2 only, and new agents launched with IMDSv2.
  • April 12, 2026: AWS closed the first report as “informative”.
  • June 22, 2026: Zenity confirmed the default role was still unchanged.
  • September 29, 2026: during a pre-publication review, Zenity found AWS had removed the region-wide permissions for agent invocation, conversation reading and Secrets Manager access, and had restricted other permissions.
  • October 8, 2026: Zenity published the research. According to CSO Online, Zenity says the attack path is now closed.
Milestones from Zenity Labs first report in December 2025 to publication on October 8, 2026
AgentCorruption disclosure timeline

One caveat matters a lot. Changes to defaults typically affect new agents and newly created roles. If your organisation created agents earlier and kept their original roles, or if your team copied a broad sample IAM policy into its own templates, the same exposure may still exist in your environment even though the platform default has been tightened. Fixing the vendor’s default does not automatically fix the copies you made of it.

How AWS responded

AWS does not accept Zenity’s characterisation. According to CSO Online, AWS said the research “inaccurately paints expected and documented behavior as a vulnerability.” The company explained that an agent being able to reach its own execution role credentials through the metadata service is documented behaviour, and that an agent can only reach resources in another account when developers explicitly grant permissions on both the execution role and the target resource. AWS recommends least-privilege execution roles and declined an interview with CSO Online.

The Register reported that Amazon’s position is that developer error would be required for the attack to succeed. Even so, AWS did enforce IMDSv2 and narrowed the default role during the disclosure period. For businesses, the “bug or feature” debate matters less than a practical truth: a provider’s default configuration may not be safe for your use case, and under the shared responsibility model the permission design is your job, not the cloud provider’s.

Not an isolated case: a run of AWS agent-control warnings

CSO Online noted that Zenity is not the only team to raise these concerns. On September 18, 2026, Palo Alto Networks’ Unit 42 reported that default settings in AgentCore Harness could let attackers use prompt injection to steal plaintext credentials managed by AgentCore Identity, with a built-in shell tool enabled by default and running as root. AWS also closed that report as informative, citing shared responsibility. An earlier Unit 42 report, in April, described a different path: AgentCore Runtime’s metadata service lacked session-token enforcement, which AWS has since fixed.

Fred Chagnon of Info-Tech Research Group compared the SSRF pattern to the 2019 Capital One breach, an old technique now triggered through natural language rather than a crafted web request. The broader trend is clear. Once AI agents are given tools, permissions and memory, classic cloud weaknesses can be unlocked through a conversation. For more context, see our roundup of recent attacks targeting AI agents.

Who is affected, and what it means for SMEs

Many companies in Vietnam and Japan are piloting AI chatbots on their websites, internal assistants wired into a CRM, or agents that automate back-office processes. The risk rises sharply when three conditions are true at the same time:

  • The agent is public, so customers or strangers can chat with it directly.
  • The agent has tools that send HTTP requests, run code or open a shell.
  • The agent shares a broad IAM role, or the same account, with internal agents, customer databases or API secrets.

The lesson of the AWS AgentCore vulnerability is not limited to AWS customers. The same pattern applies to agents running on Azure, Google Cloud or self-managed servers: anywhere an agent can reach a metadata service or holds keys that are wider than its job requires. If your team does not have a dedicated cloud security person, consider regular system maintenance and security reviews to audit permissions and cloud configuration before an attacker does it for you.

How to defend against the AWS AgentCore vulnerability and similar AI agent risks

Drawing on recommendations from Zenity Labs, AWS and the experts interviewed by CSO Online, these are the priority steps:

  1. Enforce IMDSv2 and block agent tools from reaching the metadata endpoint wherever possible.
  2. Least privilege per agent: give every agent its own role, scoped to specific resources, and never use region-wide wildcards for invocation, events or secrets.
  3. Re-audit default roles for agents created before late September 2026, and check them again after every vendor update.
  4. Limit tools and egress: enable HTTP, code-execution and shell tools only when truly needed, and use an allow-list of destinations for outbound traffic.
  5. Separate public and internal agents into different accounts, or at minimum into different roles and network segments.
  6. Keep high-value secrets out of reach of agent execution roles.
  7. Monitor behaviour: alert on unusual agent-to-agent invocations, bulk event reads and memory writes outside normal flows.

Justin Greis of Acceligence suggested that executives ask a simple set of questions about every agent: what can it access, what can it change, what does it remember, what can it reach, and what happens if it is compromised? Michael Bargury, Zenity’s CTO, argued that strong isolation and agent autonomy pull against each other, so controls should be planned with that tradeoff in mind. If you are designing a new AI solution, building these principles in from day one is far cheaper than retrofitting them; a team experienced in AI agent consulting and implementation can help you get the architecture right.

AI agent security checklist for businesses

Use the list below as a self-assessment in a single working session with your IT team or technology partner:

  • Every running AI agent is inventoried, with an owner and a public or internal label.
  • Each agent has its own IAM role with no region-wide or wildcard (*) permissions.
  • IMDSv2 is enforced, and agent tools cannot reach 169.254.169.254.
  • HTTP, code and shell tools are enabled only where needed, with allowed destinations.
  • Secrets Manager values are outside the permissions of public-facing agents.
  • Long-term agent memory is logged and its contents reviewed regularly.
  • Alerts fire when an agent invokes another agent or reads conversations in bulk.
Seven AI agent security checks: own IAM role, IMDSv2, limited tools, secrets, memory review and alerts
AI agent security checklist

A checklist is not a substitute for penetration testing or a proper threat model, but it removes most of the common risky configurations that AgentCorruption relied on, and it gives non-specialist managers a concrete way to ask the right questions.

FAQ

Has the AWS AgentCore vulnerability been fixed?

According to Zenity Labs, AWS moved AgentCore to IMDSv2 on February 14, 2026 and had narrowed the default execution role by September 29, 2026. CSO Online reported that, as of October 8, Zenity considers the attack path closed. Agents and roles created earlier, or custom policies that are too broad, still need to be reviewed by each customer.

Is there a CVE for AgentCorruption?

None of the sources we checked cite a CVE identifier. AWS regards the behaviour as documented rather than a vulnerability, and closed the initial report as “informative”.

Should companies that don’t use AWS care?

Yes. The pattern, a prompt injection that makes an agent call a metadata service and then abuse over-broad permissions, applies to any platform that lets agents send network requests and hold credentials. Least privilege and agent separation are universal principles.

Can prompt injection be fully prevented?

There is no complete fix today. The practical approach is to assume an agent can be manipulated and limit the damage: minimal permissions, network isolation, monitoring, and human approval for sensitive actions.

If your business is deploying chatbots or AI agents and wants permissions and cloud configuration reviewed before going live, Quy Nhon ADV is happy to help.

Sources: Zenity Labs, The Register, CSO Online

Taking on new projects

Let’s build
what’s next.

You have the idea. We have the technology to make it real.

Phone / WhatsApp
096.279.2345
You need

We only use this to get back to you.

Chat on WhatsApp Call +84 96 279 2345