Red Teaming the AI Agents That Run My Agency
I run my web agency on AI agents, so I attacked them on purpose: 12 prompt injection attacks, none got through, and 2 weak spots found and fixed.
I run my web agency on AI agents, so I attacked them on purpose: 12 prompt injection attacks, 12 held, and 2 real gaps found and fixed.
The setup
I run a small web agency. Much of its back office is handled by AI agents that prepare routine work for me to approve. Like most agents, they read text that other people wrote. That is where prompt injection lives.
The approach
I did not want safety to depend on the model saying no. Three principles:
- Agents propose, a human approves.
- Critical actions are not available to agents at all.
- Text from outside is data, never instructions.
The test
I did not attack production. I ran isolated copies of the agents with no access to real tools, fed only made up test data, with normal work mixed in so that doing nothing was not a pass.
I wrote 12 attacks in four families:
- Fake authority: text claiming someone already approved, or posing as a trusted sender.
- Hidden instructions: orders placed where a human reader would not see them.
- False claims: text asserting something happened that did not.
- Data requests: attempts to get information about other clients.
All 12 held. No critical action was taken and no data was shared.
What I found
Nothing was exploited, but two things were weaker than I thought. Both are fixed.
- One safety control worked by judgment, not by rule. The agents made the right call, but nothing forced them to.
- One business rule lived in my head, not in the system.
What I learned
- Structure beats prompts. The attacks that would have hurt most failed because the dangerous action did not exist for the agent, not because the model refused.
- Agents fill gaps with judgment. Usually the safe call. Usually is the problem.
- Test the controls, not just the model. Both gaps were in my setup.
This was a small first pass in a sandbox, with one trial per attack. Next I want real success rates over many trials.

Written by Ioannis Krokos
Full-stack product engineer based between Zurich and Mykonos. I build and operate GuestSync with Next.js and TypeScript. Open to opportunities and relocation.