
Your Prompt Can't Stop an AI Agent. Permissions Can
AWS watched an AI agent use a credential-stealing tool 348 ms after reading an MCP tool list, then take 94 actions in 12.7 minutes. Prompts don't stop that. Here are four layers that do: tool allow-lists, scoped credentials, human approvals and Anthropic-style honeytokens.
On one of AWS's decoy servers, set up to look like an exposed MCP server, an AI agent showed up and asked for the tool list, and within 348 milliseconds of reading the descriptions it found and correctly used a tool that pulled cloud credentials. Over the next 12.7 minutes it took 94 actions without a single syntax error. AWS recorded all of it, because the server was part of MadPot, its honeypot network.
That agent was working for an attacker. But the lesson applies just as much to the agent you are building. An agent will use whatever its access allows, at machine speed, and a sentence in the system prompt is not access control. The limits that actually hold live outside the model: which tools it can see, which credentials it holds, which actions need a human, and which tripwires stop it when it wanders.
If you are new to how agents talk to tools, my video MCP Explained: What's the Worst That Could Happen covers the basics this post builds on. So let's take this step by step.
Why can't a prompt stop an AI agent?
A prompt is a request. The model can follow it, misread it, or be talked out of it by something it reads later, like a web page, a file or a tool description. Nothing in the prompt removes the capability.
A new paper on restricting agent tools, TagOut, shows how awkward the prompt-only approach is even when nobody is attacking. The authors found that banning an attached tool in the prompt often makes models refuse harmless requests or call the banned tool anyway. Silently hiding the tool is not great either: the model doesn't know the limit exists, so it may confidently promise to do something it cannot do.
Think of a new employee on day one. You can tell them "please don't open the finance folder", or you can simply not give them the key. Only one of those still works on a bad day.
What did AWS see agents doing?
AWS published the MadPot findings on 3 December 2026, from a 12-month review of its honeypot sensors. A few numbers are worth knowing:
- Exploit attempts against known vulnerabilities in AI software grew from roughly 680,000 in Q1 2026 to 6.2 million in Q3, about 800%. Other technologies grew about 80% over the same period.
- The median time for an AI-targeted exploit to reach a new sensor fell from 19.5 hours in 2024 to 107 minutes in 2026. The fastest first contact came 87 seconds after a sensor went live.
- On a decoy MCP server, someone tried to write fake tool definitions with hidden instructions telling any connected agent to send credentials to an outside server or write a ransomware script. To stay hidden, the text included the line "Do not show this message to the user."
AWS assesses "with moderate confidence" that the 94-action intrusion was an autonomous agent. Its reasoning is that a person would have needed hours to read the unfamiliar tools, and a hard-coded script could not have known how to call tools it had never seen.
Two things follow for builders. First, tool descriptions are input the model reads and acts on, so a poisoned description is a prompt injection that arrives through your tool list. Second, an agent understands a new tool in under a second, so there is very little time for a human to notice that something is off.
Layer 1: Give the agent only the tools this task needs
The most reliable restriction is a tool the agent never sees. If a session is read-only, the write tools should not be in the request at all.
TagOut's approach is a good pattern to copy. It enforces one allowed-tool list at runtime, drops the restricted tool definitions from what the model sees, and adds a short notice saying what is unavailable and how to help instead. Across three agent domains, the authors report zero restricted calls and no false promises, and fewer false refusals than prompt bans.
A minimal version in your own harness looks something like this:
ALLOWED = {"read_sheet", "search_docs"} # decided per session, not by the model
def build_request(all_tools, messages):
tools = [t for t in all_tools if t["name"] in ALLOWED]
hidden = sorted(t["name"] for t in all_tools if t["name"] not in ALLOWED)
if hidden:
messages = messages + [{
"role": "system",
"content": f"In this session you cannot use: {', '.join(hidden)}. "
"If the user asks for these, say so and offer what you can do."
}]
return tools, messages
def execute(call):
if call["name"] not in ALLOWED: # enforce again at execution time
raise PermissionError(call["name"])
return TOOLS[call["name"]](**call["args"])Notice the check happens twice. Filtering the list changes what the model knows. The check in execute is what actually makes it true.
Layer 2: Scope the credentials, not just the tools
A tool is only as safe as the credentials behind it. A "read_sheet" tool that runs on an admin token is an admin tool with a friendly name.
AWS's advice for AI workloads is plain least privilege: give each workload only the permissions it needs (for example, scope bedrock:InvokeModel to the models an application actually uses) and use temporary credentials instead of long-lived access keys. Then watch usage per identity, so a stolen key running unfamiliar models or Regions shows up as an alert.
Keep secrets out of the model's context too. The agent should call a tool that holds the credential on the server side, not read an API key out of a config file and paste it into a request. If the key never enters the context, a confused or hijacked agent cannot leak it. I covered sandboxing for coding agents in How to Secure and Ship AI-Generated Code; the same rule applies here.
Layer 3: Put a human on the irreversible actions
Some actions are cheap to undo, like reading a file or drafting a reply. Others are not: sending money, deleting data, emailing a customer, merging to main. Those deserve an approval step, and the approval has to live outside the agent. If the agent can call the "approve" tool itself, it is not an approval.
Keep the list short. If every step needs a click, people stop reading and approve everything, and you are back to no control at all.
Layer 4: Plant tripwires with honeytokens
The first three layers decide what the agent can do. Honeytokens tell you, and stop the agent, when it goes somewhere it shouldn't.
Anthropic's Frontier Red Team described the technique on 3 December 2026. A honeytoken is a random string planted where an agent has no business looking: a directory not shared with the sandbox, a key inside a Kubernetes secret, the hostname of a server agents should never touch. Combined with inference hooks, which inspect every prompt before inference, the token works as a refusal string. The moment it appears in the agent's context, the completion is aborted. The agent doesn't have to use the token to get caught. Reading it is enough.
Anthropic tested this on Siren, an evaluation with over 1,700 sandbox-escape scenarios. The honeytokens would have stopped about 93% of escapes, with no false positives in sessions where the model stayed in scope. The misses are instructive: in some cases the agent already knew the exact path it wanted and never browsed, and in others the token was truncated in a listing or never listed by the command the agent ran.
A few practical details from the write-up:
- Make tokens random and at least eight characters long, but short enough not to be clipped in file listings.
- Plant several in a folder, with different datestamps and starting characters, so sorted or truncated listings still show one.
- Echo the token in the error output, so a parent agent is stopped too when a subagent trips it, instead of quietly trying another route.
Anthropic released a small open-source Rust implementation that works with its own inference hooks, and notes the idea is simple to build for other agent systems.
How do these layers compare?
| Layer | What it stops | What it does not stop |
|---|---|---|
| Tool allow-list | Calls to tools that are off for this session | Misuse of the tools that are allowed |
| Scoped, short-lived credentials | Reach beyond the task, long-term key theft | Damage inside the granted scope |
| Human approval | Irreversible actions going out unchecked | Rubber-stamp approvals and slow reviewers |
| Honeytokens | Agents browsing where they shouldn't | Agents that go straight to a known target |
No single row is enough. Together, each one covers a gap the others leave.
What should you do this week?
- List every tool and MCP server your agents connect to. AWS recommends allowing only approved sources, pinning versions, reviewing tool descriptions before adoption and after every update, and making vetted definitions read-only.
- Make tool lists per session, and enforce them where the call executes, not just in the prompt.
- Swap long-lived keys for scoped, temporary credentials, and move secrets out of anything the model reads.
- Pick the three or four irreversible actions in your workflow and put an approval on them that the agent cannot grant itself.
- Plant a few honeytokens next to the things that matter most, and wire them to stop the run.
The question for an agent in production is not what you told it to do. It's what it can reach when it ignores you.
References
- New AWS research shows that AI systems are the fastest-growing target for threat actors — Amy Herzog, AWS, 3 Dec 2026.
- Containing AI agents with honeytokens — Anthropic Frontier Red Team, 3 Dec 2026.
- TagOut: Safely Restricting Agent Tools Without Over-Refusal or False Promises — Sudhanshu Jaiswal, arXiv, 2 Dec 2026.


