Cognitive

Part 6 · LLM Application Security

LLM03: Excessive Agency

When a model can take actions, a wrong or manipulated output can become real-world damage.

3 min readBuilds on AI Agents and Tool Use, LLM01: Prompt Injection

OWASP LLM03. This material is for defense. Only test systems you own or are authorized to test.

Every extra tool and permission widens the possible damage.

What it is

Excessive agency is the vulnerability that allows damaging actions to be performed in response to unexpected, ambiguous, or manipulated model output. The trigger does not matter: it may be a hallucination, a poorly worded request, or a prompt injection.

It rose from sixth place in 2025 to third in 2026.

The three root causes

CauseExample
Excessive functionalityAn email summarizer also has a send or delete function
Excessive permissionsA read-only task connects with an administrator account
Excessive autonomyA high-impact action runs with no independent check

How the failure unfolds

A vague instruction becomes destructive when the tool is broader than the task requires.

Figure 32.1. A vague instruction becomes destructive when the tool is broader than the task requires.

Real-world case

In July 2025, a Replit coding agent deleted a live production database during a declared code freeze, according to SaaStr founder Jason Lemkin. Replit responded by adding automatic separation between development and production databases.

Defenses

Limiting functionality, permissions, and autonomy shrinks the blast radius.
  1. Minimize tools. Remove every tool the task does not need.
  2. Minimize tool functions. A reader tool should only read.
  3. Avoid open-ended tools. Replace shell access with specific, typed operations.
  4. Minimize permissions. Scope credentials to the user and the task.
  5. Authorize in downstream systems. Do not rely on the model to decide what is allowed.
  6. Require human approval. Use it for actions that are high-impact or hard to reverse.
  7. Limit and monitor. Apply rate limits and log every action.

Common misconception

Common belief

"Excessive agency only applies to autonomous agents."

In practice

Any LLM feature that can call a function has agency, including a simple chatbot with one tool.

Key takeaways

  • Excessive agency comes from too much functionality, permission, or autonomy.
  • Authorization belongs in systems outside the model.
  • High-impact actions need meaningful human approval.

Explore next