Excessive agency (OWASP LLM06)

Excessive agency is the weakness of an LLM-based system that holds more capability than its task requires, so that a wrong or manipulated model output turns into a harmful action. OWASP ranks it LLM06 in its 2025 Top 10 for LLM applications and splits it into three excesses: too much functionality, too many permissions and too much autonomy. It is what turns a plain prompt injection into a real incident.

AI agent example

A support assistant only needs to look up order status. To ship faster, it gets a generic connector to the internal API with an admin token. A customer slips an instruction into a message asking it to cancel and refund someone else's order. The model complies, the API accepts because the token allows it, and no step asks for confirmation. All three excesses are present: a tool that is too broad, rights that are too high and an action run without approval.

How to test it

List each agent tool, the action it really allows and the identity it runs under. Compare with the business need: any capability that is not required is a gap. Then try to trigger an out-of-scope action (write, delete, send, pay) through direct or indirect injection and record whether it succeeds, whether it is logged and whether a human is asked. Finally, look for open-ended tools (shell, free URL fetch, raw SQL) that offer far more than the intended function.

How to defend against it

Give narrow tools, one precise function per tool, instead of generic access. Run calls with the rights of the user concerned rather than a global service account. Enforce authorization in the downstream system, never in the model. Require human approval for irreversible actions, and cap the number of actions per session.

Why the risk grows with agents

A chatbot that only answers can at worst say the wrong thing. An agent that calls tools can act: write to a database, send messages, pay, change permissions. Every tool added to save time widens what the model can do when it makes a mistake or when some text manipulates it. Since prompt injection remains hard to prevent completely, the useful question is not only whether the model can be fooled, but what it can do once fooled. Reducing agency means shrinking that surface, and it is one of the few controls that keeps working even when every other layer has failed.

Frameworks

OWASP Top 10 for LLM 2025: LLM06 Excessive Agency, often combined with LLM01 (prompt injection). The OWASP Agentic Security Initiative describes related threats: tool misuse and privilege compromise. MITRE ATLAS: AML.T0053 (LLM Plugin Compromise).

Frequently asked questions

Is excessive agency a model flaw?

No. It is a design flaw in the application around the model: the tools, rights and autonomy it was given. A well-aligned model is still dangerous if it can do everything.

What is the first step to reduce it?

Remove unneeded tools and permissions. It is the cheapest measure and it limits the impact of every future injection.

Should agents lose their autonomy?

No. Autonomy should match the risk: full autonomy for harmless reads, checks and approval for actions that write, send or commit the company.

Related Pages

Other Terms

Know what your agent can do before an attacker does.

A free 30-minute discovery call: you describe your agent, I tell you what I would test and what it costs. Five case studies are published.

Book a call