← All articles AI agents · OWASP

AI agents: 6 security risks and 6 controls

AI agents no longer just answer questions: they read your email, browse the web, run code and act on your behalf. That is powerful, and it is a brand-new attack surface. Here is how they get attacked, and the controls that actually reduce the risk.

The video

The risks, the incidents and the six controls in just over four minutes.

Watch on YouTube

What is an AI agent?

A chatbot answers a question. An agent pursues a goal: it combines a language model with tools, memory and permission to act. The key difference: the output is no longer a sentence, it is an action, such as sending an email, changing a file or starting a payment.

Under the hood, every agent runs the same loop: it receives a goal, makes a plan, calls a tool, reads the result, stores it in memory and decides the next step. Every arrow in that loop is a place where an attacker can step in.

The 4 types of agents

Risk grows with autonomy:

  1. Assistants with tools (copilots): they suggest an action, and a human clicks to approve it.
  2. Workflow agents: they automate a fixed process, such as triaging support tickets or processing invoices.
  3. Autonomous agents: they plan their own steps toward a goal. Think coding agents or browser agents.
  4. Multi-agent systems: several agents hand tasks to each other.

Indirect prompt injection

The key insight: the attack usually does not come through the chat box. It hides in the content the agent reads: an email, a web page, a document, a code comment. The agent cannot reliably tell data from instructions.

This is not theoretical. Scanning billions of public web pages, Google’s teams measured a 32% relative increase in malicious injections between November 2025 and February 2026. Among the cases found: a fully specified PayPal transaction, hidden in the HTML and aimed at agents that can make payments.

Risks from the OWASP agentic Top 10

On December 9, 2025, the OWASP GenAI Security Project published its first Top 10 for Agentic Applications. The risks that matter most:

  • Goal hijack: hidden instructions redirect what the agent is trying to do.
  • Tool misuse and privilege abuse: the agent uses legitimate access in ways nobody intended.
  • Memory poisoning: bad data planted today shapes decisions next week.
  • Supply chain: a malicious plug-in or MCP server rides along with full trust.
  • Cascading failures: one compromised agent spreads errors to every agent it talks to.

Real incidents

  • September 2025, the first malicious MCP server. The npm package postmark-mcp impersonated a legitimate library. After 15 clean versions, version 1.0.16 added a single line of code: a hidden blind copy (BCC) of every email sent, to an attacker’s address. Koi Security spotted it.
  • January 2026, ZombieAgent. Radware disclosed a zero-click attack on ChatGPT agents connected to services such as Gmail or Outlook. One crafted email was enough, and the attack could even plant malicious rules in the agent’s long-term memory. OpenAI has since closed that specific hole.
  • March 2026, Meta. An internal agent posted its answer on an internal forum without asking the engineer using it for approval. An employee followed that flawed advice, exposing sensitive company and user data to unauthorized employees for about two hours. Meta rated it a top-severity (Sev 1) incident.

The lethal trifecta

Look for three ingredients together: access to private data, exposure to untrusted content and a way to send data out. Researcher Simon Willison calls this combination the lethal trifecta. When an agent has all three, a single hidden instruction can become a data breach.

6 controls that make the difference

  1. Least agency: give each agent only the tools, data and permissions its task needs, with short-lived credentials.
  2. Human approval for high-impact actions: payments, deletions, emails to outsiders.
  3. Treat everything the agent reads as untrusted, and break the trifecta by restricting where data can go.
  4. Sandbox code execution, and vet, pin and inventory every plug-in and MCP server.
  5. Log every tool call, monitor for unusual behaviour and keep a kill switch ready.
  6. Red-team your agents before deployment, and again after every major change.

Key takeaways

  • An agent acts: its mistake is no longer a bad sentence, it is a bad action.
  • The attack arrives through the content it reads, not the chat box.
  • Private data + untrusted content + a way out: never combine all three without controls.
  • Least agency, human approval, logging: the baseline.
  • Agents can multiply what your team does. Make sure they cannot multiply what an attacker does.

References

  • OWASP GenAI Security Project — Top 10 for Agentic Applications for 2026 (December 9, 2025).
  • Google Threat Intelligence — analysis of indirect prompt injection on the public web (April 2026).
  • Koi Security, Snyk — malicious postmark-mcp package (September 2025).
  • Radware — ZombieAgent (January 2026).
  • AI Incident Database — incident 1471, Meta internal agent (March 2026).
  • Simon Willison — The lethal trifecta for AI agents.

Are your AI agents under control?

We test your agents the way an attacker would, and hand you a prioritized action plan.

Contact us