Excessive agency (OWASP LLM06:2025) is the risk that an LLM-based agent can take harmful actions because it has more functionality, permissions, or autonomy than it needs. When an attacker influences the model through prompt injection or a poisoned data source, the agent uses that excess capability, deleting records, sending email, calling paid APIs, to act on the attacker's behalf. The fix is least privilege: minimal tools, scoped permissions, and human approval for high-impact actions.
What excessive agency is
Agents wire an LLM to tools: functions, APIs, shells, databases. Excessive agency is when the agent can do more than the task requires, too many tools, tools that are too powerful, permissions that are too broad, or autonomy to act without confirmation. The model's non-deterministic output then decides what happens, and an attacker who steers the model inherits every capability you granted it.
How the attack works
The attacker does not exploit a memory bug, they manipulate the model. Through direct prompt injection or an indirect payload in retrieved content (a web page, a document, an email the agent reads) they instruct the agent to use its tools against you: forward the latest invoices to an external address, run a shell command, grant a user admin. If the agent holds the credential and the tool, it complies. Excess permission turns a text bug into real-world impact. Shown for defensive testing.
How to defend against it
Apply least privilege to the agent, not just the user. Give it the minimum set of tools, scope each tool's permissions tightly, and prefer read-only or narrow write actions. Require human approval for high-impact or irreversible actions, rate-limit and log every tool call, and run tools with the caller's identity so the agent cannot exceed what the user is allowed to do. Treat all retrieved content as untrusted input.
References
- [1]OWASP Top 10 for LLM Applications (2025)(OWASP)
- [2]MITRE ATLAS (adversarial threat landscape for AI systems)(MITRE ATLAS)
An over-permissioned agent turns one bad prompt into real damage. Talk to a security expert about testing what your AI agents can actually do.