AI agent security and prompt injection testing
Find out what your AI agent can be talked into.
For agents that read email, documents or web pages, or act in your systems: refunds, payments, records. Your agent is pushed the way a customer, a sender or a colleague would push it, and scored on what it did, not what it said. You get what failed, why, the fixes, and the tests to rerun.
A real test conversation plays here.
What these tests found on three agents
- 14 of 900Refunds the policy didn't allow. Support bot
- 3 of 570A customer's card ending sent to a stranger. Email agent
- 12 of 600Tricks that got it to show the wrong role's data. Assistant over private data
Before → after the fixes, on three agents built for a made-up company so every test can be published.
Tested on real products
The same kind of test, on products other companies run. From the outside, on Dave's own accounts.
- Plain's Sidekick and Customer AgentTwo AI agents in a support platform, tried with about 58 prompts and an MCP tool built to lie to them. No high-severity issues: writes waited for approval, and with writes on Always allow, a refund planted in the tool's answer led to 0 writes. A hardened product.
- Superagent's Security-OneA model that flags prompt injection, scored on 49 texts an email agent reads and 424 real tool calls. It caught 27 of 28 attacks, and blocked 77 of 387 harmless calls, most of them the one step the agent needed.
If your agent…
The tests act like the people your agent meets, so they work on any model and framework.
…talks to customers
Refunds the policy doesn't allow, answers it made up, another customer's details, an approval nobody gave.
Needs: your help docs, about 40 past questions or tickets, and a test copy with fake accounts.
…works an inbox
Instructions planted in an email, changed bank details, a fake boss, a reply to an address that isn't the customer's.
Needs: a test copy with fake accounts and a list of what it may do on its own.
…answers over private data
Data a person's role can't see, in the reply or handed to the model by a tool, and the tricks that get it there.
Needs: a test copy with fake records and documents, and the access rules as they stand.
How it goes
No live systems and no real customer data: everything runs on a test copy.
- 1Agree the rulesWhat the agent may do on its own, what needs a person's OK, and who may see what.
- 2Run the testsNormal work and tricks. Each trick has a twin task, so an agent that refuses everything fails too.
- 3The reportThe worst failures word for word, the fix for each, and whether code or instructions enforce it.
- 4Fix and rerunThe same tests again after the fixes, so you see the difference. The tests are yours to rerun after every change.
How to start
Start with one week of tests
One week, $200. $100 to start, $100 at handover. Pick the worry that keeps you up. In a week you see what your agent can be talked into, and what to fix.
If one of these sounds like your agent:
- $200A ticket, email or web page tells your agent what to do.Your agent reads what strangers write. Some of it carries orders: send this file, copy that table, reply to this address. You see what your agent did with them, not only what it said. The email agent study.
- $200Your agent can delete, pay or send. What stops it?Every action that can't be undone: does it wait for a person, can "I'm the owner, skip it" get past the wait, and are there so many asks that people approve without reading? Approval gates, tested in 1,940 runs.
- $200Customers talk your bot into refunds."Your colleague already approved it." 30 conversations pushed the way real customers push, and you see every refund, credit or discount your policy doesn't allow. The support bot gave 14 of 90 before its fixes.
- $200One customer sees another's data.Two test customers, or two roles. Can one get the other's orders, invoices or files, in a reply or through a tool? The email agent sent a card ending to a stranger in 3 of 57 runs before its fixes.
- $200An MCP server or plugin you installed turns bad.Tool descriptions with hidden orders, a tool list that changes after you approved it, results that give instructions, keys sitting in a plain-text config. Each tried on your agent's setup. The lying tool Plain's agents passed, and Plug.
- $200You put an MCP server online. Who else can call it?Sign-in, requests from other websites, error messages that show your code, and what your tool list tells every AI that connects. On a server with default settings, the check found two things to fix.
A different worry? Describe it, and you'll hear back whether it fits in a week.
Or go further
- Your agent, checked in fullEvery worry above that applies, on your own cases, with a report like the three on this site. Priced once the job is clear.
- The fixes, then a rerunThe failures fixed in your code, with limits in code rather than in the prompt, then the same tests again so you see the difference. Priced once the job is clear.
- Before you launchA new agent or MCP server tested end to end before customers use it: what it may do on its own, what waits for a person, and what it shows to whom. Priced once the job is clear.
- Keep it testedThe tests rerun each month and after every change of prompt, model or tools, with new tricks added as they appear. A monthly price, agreed together.
A project with your team, on contract. A scoped piece of work your team needs, such as an agent, its tests or the harness around it, done alongside your team and paid by time. The scope comes first, then the hours. Describe the project.
The research behind the tests
Independent tests of agent harnesses, published with their code and data.
- Who does an AI agent obey?Operator, user, tool or background job: which one Claude and GPT follow, through three harnesses.
- Prompt injection on an email agent: 960 runsWhat leaked, and why "data, not instructions" tags stopped Claude doing its job.
- Approval gates, tested in 1,940 runsThree rules for when an agent must ask before it acts: what each stopped, and how often it asked.
- firstwatchFree, open-source: catches instructions hidden in what an agent reads, and makes it ask before it acts.
Questions
Does it work with my model and framework?
Yes. The tests talk to the agent the way a customer, a sender or a colleague does, and score what it did: refunds made, payments sent, records changed, data shown to whom. So the model and framework don't matter.
Do the tests need my live systems or real data?
No. They need a test copy of the agent with fake accounts, and the rules for what it may do on its own.
What is prompt injection?
Text written for an AI agent to obey, placed where it will read it: an email, a document, a web page, a tool result. It tries to make the agent send, pay, delete or reveal something. The Butler lets you try it on an agent, then defend it.
Is this red teaming? A pentest?
It's red teaming aimed at the agent: what it does with what it reads and what people ask of it. It isn't a network or infrastructure penetration test; servers, sign-ins and the code around the agent need their own.
Why score what it did, not what it said?
An agent can say "I can't do that" and do it anyway, or refuse in words and still leak the data through a tool. The tests check the refunds, payments, records and replies that happened.
What don't the tests cover?
Each report says so: what wasn't tested, and what would need a different test. Tests show what got through on the cases run; they don't prove nothing else can.
Who does the testing?
Dave (dave8172), an AI engineer who builds AI agents and the harness around them, and publishes the tests. About Dave. He works remotely with teams in the US, Canada, the UK, Europe and Australia, in English.
Tell Dave what your agent does
A few lines is enough: what it does, what it can touch, and what worries you. A log of a run helps.