Why agents need different security
A chatbot that gives a wrong answer is embarrassing. An agent that can read email, query databases, call APIs and move money can do real damage when it is manipulated. In December 2025, OWASP published its first Top 10 for Agentic Applications, built from real incidents and input from more than 100 security researchers. The core lesson: an agent's risk equals everything it can reach.
The risks that matter most
| Risk (OWASP ID) | What happens | Example |
|---|---|---|
| Agent goal hijack (ASI01) | Content the agent reads changes its objective | A hidden line in a supplier PDF tells the agent to approve the invoice |
| Tool misuse (ASI02) | The agent uses legitimate tools in unsafe ways | A support agent issues refunds far above policy |
| Supply chain (ASI04) | A tampered tool, plugin or prompt template loads at runtime | A compromised connector exfiltrates data |
| Memory and context injection (ASI06) | Poisoned memory or RAG data steers later decisions | A planted wiki page skews financial summaries |
| Insecure agent-to-agent messages (ASI07) | Unauthenticated messages between agents are spoofed | One agent impersonates another to get access |
| Over-trust (ASI09) | People accept agent output without checking | A convincing but wrong recommendation is approved |
Controls that actually hold
- Least privilege for every tool. Give each agent only the tools and data it needs, with scoped, short-lived credentials. Read-only by default.
- Approvals for risky actions. Payments, deletions, external emails, permission changes and anything irreversible need a human click, with limits (for example refunds under $100 auto-approved, above that reviewed).
- Treat all content as untrusted. Documents, web pages, emails and tool outputs are data, never instructions. Keep system instructions separate and tell the model so, then verify actions against policy in code, not only in the prompt.
- Validate outputs in code. Check every tool call against an allow-list, schema and business rules before it runs.
- Secure the supply chain. Pin and review tools, plugins and MCP servers; sign and version prompt templates; vet model providers.
- Protect memory and RAG. Control who can write to knowledge sources, track provenance, and re-check sources that drive decisions.
- Log and monitor everything. Each prompt, tool call, approval and result, with alerts for unusual volume, new tools or blocked actions, plus a kill switch.
- Test before and after launch. Red-team with injected instructions in documents and tool outputs, out-of-scope requests and approval bypass attempts. Repeat after major changes.
A simple design pattern
Put a policy layer between the model and your tools. The model proposes an action; the policy layer checks identity, scope, limits and approvals; only then does the tool run. This keeps safety in code you control, even when the model is fooled.
How Zuroth helps
We design and build AI agents with these controls from day one, and test existing agents for injection, tool misuse and data exposure. See AI agents and automation or talk to us.
Related reading
- ISO 42001 and NIST AI RMF: practical AI governance
- AI agents for business: picking the first processes
Related reading
- ISO 42001 and NIST AI RMF: practical AI governance
- AI agents for business: picking the first processes
Frequently asked questions
What is prompt injection?
Instructions hidden in content an AI reads, such as an email, web page, document or tool output, that try to change what the AI does. For agents that can act, a successful injection can lead to data leaks or unwanted actions, not just a bad answer.
Can guardrails alone stop prompt injection?
No. Filters help, but no filter catches everything. The reliable defence is limiting what the agent can do: least-privilege tools, approvals for risky actions, separating untrusted content from instructions, and monitoring.
Should we pen test our AI agents?
Yes. Test agents like any application, plus AI-specific tests: injected instructions in documents and tool outputs, attempts to reach data or tools outside scope, and checks that approvals and logging work.