In September 2026, Palo Alto Networks’ Unit 42 showed how a single support ticket could hand an attacker a company’s customer data on Amazon’s AgentCore agent platform. It was a research demo, with no known victims. (Unit 42)
The ticket hid instructions in an HTML comment. A customer-support agent read it and did what it said. It used a built-in AgentCore tool, switched on by default, that runs shell commands on the server with full admin rights. It found the MCP server’s credentials sitting in plain text in the platform’s memory and posted them to the attacker’s server. The attacker then used them to pull customers’ personal data.
AWS closed the report as “informative” and said limiting the agent’s tools and filtering its outbound traffic were the customer’s job.
You could reasonably say the shell was the mistake, but without it, a support agent still has a problem. It has to read private customer data, read tickets from strangers and send replies. Simon Willison calls that combination (access to private data, exposure to untrusted content and a way to send data out) the lethal trifecta. In July 2025 it leaked tokens from a Supabase database through a support ticket, with no shell involved.
It’s tempting to file both under prompt injection and move on. But in each case the identity was real, the permissions were correct and the data still leaked. Identity-based permissions were built for a world where a person sat between the access and the action. Agents have taken that person out.
Identity-based permissions answer the wrong question
Role-based access control, OAuth scopes, IAM policies and row-level security all check one thing. Is this identity allowed to touch this resource? None of them follows the data once it’s been read (what Dorothy Denning called information flow control in 1976). So none of them can say whether a customer record should end up in a reply, or whether the person reading that reply is the person it’s about.
After an incident like AgentCore, the instinct is to tighten permissions with narrower scopes, finer roles or a read-only token. But each step in that attack was allowed on its own. The leak only existed in the sequence, where data from the platform’s memory ended up on a server the attacker controlled.
Most agents worth building need to read something private and write something somewhere. An agent like that passes every fine-grained check you add, and can still leak.
What a support engineer would have done
Picture a support engineer with the same production access the agent had. If a ticket asked them to dig a service password out of memory and send it to an outside address, they wouldn’t. They’d know where the data came from and who would read the reply. They’d know that sending passwords to strangers isn’t part of the job, and that their name was on whatever they sent.
That’s judgement, context and accountability, and none of it lives in the permission model. People get fooled too (phishing works for a reason), but for decades a person has filled the gap between what an identity is allowed to do and what it should do. Agents keep the identity and the access, and leave the person out.
In 1988 Norm Hardy called this a confused deputy, a program tricked into misusing authority it holds for someone else. The cause is ambient authority. Permissions attach to who you are, so an agent following instructions from a stranger’s ticket carries every permission you gave it.
Who the agent acts for still matters, but identity can’t be the whole permission model. The system also has to know what each action is for, where its data can go and when to bring a person back in. The support engineer did all of that without being asked, and the model can’t be trusted to.
The same attack, run against Coral
One question customers ask us often is whether Coral will stop their agent seeing a particular table. In the AgentCore case that wouldn’t have helped. The agent was meant to read customer data, and the damage came from where it was able to send it.
We built Coral to put judgement, context and accountability back into the system instead of leaving them to the model. Assume the agent does what the ticket says.
First it goes looking for credentials, and finds none. Coral holds the credentials and adds them to each provider call, so the agent never sees a token it could give away.
Next it tries to run a shell command. Provider calls run in an isolated sandbox, and every operation has its own rule: it runs, it waits for approval, or it’s disabled. Coral hides a disabled operation from the agent altogether, so there’s nothing for injected text to ask for.
Then it tries to post data to the attacker’s server. It can’t, because there’s no open network access. Only the operations of providers you’ve added can reach outside Coral. This is the step that stops the AgentCore leak. Identity-based permissions decide what the agent can read. This decides where that data can go.
That leaves the Supabase route, putting customer data in a ticket reply. Replying is an operation the agent is meant to have, so this is where judgement comes back in. You can require approval for particular operations and custom tools. We keep that list short, limited to things like sending data out or deleting records, because people who approve forty requests a day stop reading them.
Custom tools are how Coral implements the context and policy for a task. When an agent finds a way of doing a task that works, Coral saves it as a custom tool that your agents reuse. For example, a custom tool for answering support tickets looks up the customer who raised the ticket and returns order status, but not their payment details or any other customer’s records. It sends one reply to that customer and makes no other calls. Limit the support agent to approved tools like this one, and a ticket can change the wording of the reply but not which records get read or where the reply goes. Those were fixed in code before the agent read the ticket.
Coral records every run against the person who started it and logs approvals (the accountability a person’s name used to provide). It doesn’t prevent an attack, but you can see who asked for what, what ran and who signed it off.
AWS said locking this down is the customer’s job. We think it belongs in the layer that runs the agent’s actions, because that’s the only place that sees every call.
What to check this week
- Does any single agent run have private data, untrusted input and a way to send data out? If so, which can you remove, or where does a person step in?
- Which tools can your agents call? Switch off the ones they don’t need, starting with shell access.
- Where do your agents’ credentials live, and can the agent read them?
- Can your agents reach the open internet, or only the systems you’ve chosen?
- Which actions should never run without a person?
- Can you see who started each agent run and what it did?
