When Chatbots Grow Hands

The hottest thing right now is to write all kinds of LLM-based applications. That's very understandable, but the thing is that most people jump head-first into it without doing some due diligence. With this whole field being new and evolving so rapidly, there's no mature ecosystem yet that can protect you against potential security vulnerabilities without you even knowing it does.

So naturally, this can lead to a lot of problems. I've already talked about how prompt injection is very difficult to defend against, but I think it's time to go all in and talk about the OWASP Top 10 for Agentic Applications.

Just a quick intro: OWASP stands for Open Worldwide Application Security Project, known for publishing benchmark awareness lists of critical security risks. While their OWASP Top 10 for LLM Applications focuses on chatbot-style threats like direct prompt injection and sensitive data leakage, they recently launched a dedicated list for agentic applications.

So, without further ado, let's jump to the vulnerabilities.

ASI01: Agent Goal Hijack

This could be considered the generic version of prompt injection. In essence, it means that you manipulate some of the agent's inputs to change its goal. So for example convincing a support agent to give you a discount or someone's coding agent to exfiltrate their data.

What makes this different from regular prompt injection is that you can get creative with what data you're poisoning. Your options include (but are not limited to):

Mitigations

Since one shameless plug is never enough, I will once again refer to my prompt injection article. In short, you should sanitize all inputs and outputs, use the least privilege principle, and properly separate the system prompt from any user-provided content. You can even use other LLMs to check that the output of your agent is safe.

But this is an endless cat and mouse game and you can't ever be truly sure you are safe.

ASI02: Tool Misuse and Exploitation

As you are about to see, there is some significant overlap between a lot of these entries. That being said, tool misuse can mean a lot of things. Some examples include:

Mitigations

Here, least privilege, sandboxing, and proper credential management take center stage again, alongside strict parameter validation and tool budgeting.

ASI03: Identity and Privilege Abuse

This is pretty much a privilege escalation; you're doing things that you may not normally be able to do. How it can happen is the interesting part, and some examples are:

Mitigations

Here you should take proper care of your credentials and access control rights. You should use task-scoped permissions that are fine-grained and temporary. You should be using an agentic identity platform that can do a proper audit trail, lifecycle controls, and said scoped credentials. If possible, per-session sandboxing also helps here.

ASI04: Agentic Supply Chain Compromise

Modern agents rarely run standalone. They pull in third-party plugins, custom skills, and an increasing number of Model Context Protocol (MCP) servers. As you can imagine, every one of these things (and more) can be poisoned. This is, yet again, related to ASI01.

Mitigations

You should be careful with your dependencies. Pin their versions and use signed SBOMs and AIBOMs. I can't forgo the opportunity of directing you to yet another one of my posts where I discuss the topic of supply chain attacks in greater depth.

Besides doing your best to take care about what you pull and use within your app, the regular security best practices apply here too (sandboxing, least privilege, etc.).

ASI05: Unexpected Code Execution

This is basically good old Remote Code Execution (RCE), except now an LLM is pulling the trigger.

Agents are often given the ability to run code: spinning up a Python script to crunch numbers, running shell commands, or querying an API. If the agent gets tricked via prompt injection (or simply hallucinates), it can run commands you never intended.

Some common examples:

Mitigations

Treat any code written by an agent as untrusted user input.

Run everything in ephemeral sandboxes (like disposable Docker containers or microVMs) with zero access to your host machine. Ban eval() altogether in production agents.

ASI06: Memory and Context Poisoning

Naturally, memory and context can be poisoned as well.

For memory, you can subtly nudge the agent over time to make poor decisions and, if it commits the nudges to memory, it may start making poor decisions at some point. Bonus points if the agent does not have proper isolation between users/tenants and you can affect other users as well.

You can also poison the RAG embeddings to produce false answers, change the agent goals, and so on.

For context, you can for instance craft a payload that, once summarized by compaction, poisons the rest of the session.

Mitigations

Don't let the agent automatically commit its outputs as a trusted memory. Besides that, also scan all new memory entries to detect potential foul play (you can do that via another LLM or even deterministic rules).

Isolation is important here too: make sure that users cannot overwrite one another's memories and context.

ASI07: Insecure Inter-Agent Communication

Now we are stepping on familiar ground. Agents communicate with one another, so naturally they should use secure channels to do so.

If you have an orchestrator talking to a bunch of specialized worker agents, you are basically running a microservice architecture. That means you get all the classic network security headaches, plus the fact that agents can be tricked into doing dumb things.

Some common failure modes:

Mitigations

This is mostly good old-fashioned distributed systems hygiene:

ASI08: Cascading Failures

This is a potential byproduct of some of the other vulnerabilities presented before. If you have an agent architecture where agents rely on one another (a chain of agents or a planner-implementer architecture), then an upstream failure can cascade dramatically.

For example, imagine an automated incident response pipeline:

  1. An Analyzer Agent misinterprets a spike in 404 errors from a harmless web crawler as an active credential stuffing attack.
  2. The Security Agent takes that diagnosis as absolute truth and aggressively blacklists an entire IP range, blocking thousands of legitimate active sessions.
  3. The Recovery Agent sees mass disconnects, assumes the authentication service has died, and triggers an emergency rollback of production databases.

Within two minutes, a single misclassified HTTP error spiraled into a self-inflicted major outage.

Mitigations

To stop small errors from snowballing:

ASI09: Human-Agent Trust Exploitation

Also known as the "rubber-stamping problem."

The human in the loop tends to trust the agent and approve its actions (or listen to its suggestions) without much scrutiny. A compromised agent can thus trick the human into approving malicious actions or following misleading suggestions.

Mitigations

To prevent humans from becoming the easiest attack vector in the loop:

ASI10: Rogue Agents

This is not quite the Skynet interpretation of an AI gone rogue, but that's the general direction. This, again, comes as a consequence of another type of vulnerability. The problem with this scenario is that you may not even be aware of the fact that the agents went rogue or you can completely lose governance over them. They could also theoretically self-replicate.

Mitigations

Governing autonomous agents requires operational guardrails, not just prompt instructions:

Some Takeaways

This list contains a lot of overlap and that's to be expected. Of course, with the field being so new, it may evolve rapidly over the coming years.

As with any OWASP list, the most important part in my opinion is to be aware of the different kinds of vulnerabilities. This allows you to take into account the potential failure modes when designing your agents and mitigate them accordingly.

If you ever need to reference the OWASP list, you can find it here.