Analysis · curated 27 Jul 2026

LLM06 - Excessive Agency. This is the seventh article in the… | by Erdemstar | Aug, 2026 | Medium

Dossier

Coverage timeline

10 Jul 2026everydayonai.com 27 Jul 2026linkedin.com 24 Aug 2026coralogix.commedium.com

Why it matters

Excessive Agency turns a prompt-injection foothold into concrete harm when over-permissioned agents can act on attacker-supplied instructions, so defenders should scope agent permissions and gate significant actions.

An educational article in a series on the OWASP 2025 Top 10 for LLM Applications explains LLM06 'Excessive Agency', describing how AI agents are commonly over-privileged (excessive functionality, permissions, and autonomy) and how this amplifies indirect prompt injection. It cites EchoLeak (CVE-2025-32711), a zero-click prompt injection in Microsoft 365 Copilot, as a real-world example and recommends separating reasoning from execution, using short-lived scoped tokens, and sandboxing.

guidance

Summary

This guidance analysis examines OWASP's Excessive Agency (LLM06) risk: AI agents are routinely granted broader permissions than their tasks require because developers favor speed over scoping, cannot predetermine an agent's runtime tool-calling order, and are constrained by coarse legacy API permission models. OWASP breaks the root cause into excessive functionality, excessive permissions, and excessive autonomy.[1]

Over-privileged agents become dangerous when a single channel carries both instructions and content, letting embedded instructions in untrusted documents or emails be treated as commands. The EchoLeak vulnerability (CVE-2025-32711) in Microsoft 365 Copilot is the concrete example: a zero-click, remote, unauthenticated prompt injection that exfiltrated data via a single crafted email, achieved by chaining bypasses of Microsoft's XPIA classifier, link redaction, auto-fetched images, and a Teams proxy allowed by the content security policy.[1][3]

The analysis and its cited research frame indirect prompt injection as a fundamental, high-severity problem because LLMs do not enforce a boundary between instructions and data, and confused-deputy manipulation of agent tool access can occur without user interaction. Recommended remediation centers on least privilege: separating reasoning from execution, using short-lived task-scoped tokens, and sandboxing code/file-handling tools.[1][3][4][2]

How it works

Excessive Agency manifests when a single data channel carries both instructions and content, so an over-permissioned agent cannot distinguish an attacker's embedded instruction (e.g. 'Delete all logs from the server' inside an email) from text it was merely asked to summarize; if the model interprets it as a command and holds the API permission to act, the action executes without further checks.[1]

Indirect prompt injection is fundamentally distinct from classic injection because current LLMs do not enforce a security boundary between instructions and data inside a prompt — untrusted content concatenated with developer instructions can be executed as instructions.[4][1]

EchoLeak achieved full privilege escalation across LLM trust boundaries without user interaction by chaining multiple bypasses: evading Microsoft's XPIA (Cross Prompt Injection Attempt) classifier, circumventing link redaction with reference-style Markdown, exploiting auto-fetched images, and abusing a Microsoft Teams proxy permitted by the content security policy to exfiltrate internal file contents to an attacker-controlled server.[3]

Confused-deputy exploitation at the tool/plugin level was demonstrated earlier by Cross Plugin Request Forgery in ChatGPT, where malicious instructions hosted on a webpage caused the agent to automatically invoke another plugin — and with a privileged plugin, take actions on behalf of the user — purely because text on the page said so.[2]

Affected versions and patch status

ProductAffectedPatch status
Microsoft 365 CopilotVersions vulnerable to EchoLeak (CVE-2025-32711), a zero-click prompt injection enabling remote unauthenticated data exfiltration via a crafted email.Microsoft rolled out a server-side fix (reported by May 2025) and published an advisory in June 2025; Microsoft stated no evidence of real-world exploitation.[1][3]

Key takeaways

  • Excessive Agency is largely a design choice: scoping permissions, tokens, and autonomy into the agent architecture from the start turns most OWASP-listed risks into avoided incidents rather than latent ones.[1]
  • EchoLeak (CVE-2025-32711) proved that indirect prompt injection against a widely used production LLM agent is a practical, high-severity vulnerability class, not a hypothetical one, even absent confirmed real-world exploitation.[1][3]
  • Because LLMs enforce no instruction/data boundary, prompt injection cannot be mitigated like SQL injection and must be countered with least privilege, isolation, and independent verification of significant actions.[4][1]
  • Agents that process external emails, documents, or code are inherently exposed to indirect injection, and attacks can execute harmful actions while concealing any trace in the user-facing response.[5]

Defensive actions

  • Separate the reasoning engine from the execution engine and require an independent policy check or human approval before high-risk actions (deletion, fund transfer, production changes, external data sending).: Prevents the model's judgment alone from authorizing impactful tool calls, addressing OWASP's excessive-autonomy root cause.[1]
  • Replace permanent API keys with short-lived, task-scoped tokens (e.g. a token limited to one document ID that expires when the task completes).: Enforces least privilege, preventing an agent from reaching an entire drive, workspace, or database when it only needs one record.[1]
  • Sandbox any agent-generated code or file-handling tools in temporary, network-restricted containers.: Contains manipulation or compromise and limits lateral movement rather than assuming compromise won't occur.[1]
  • Test agents with a basic indirect prompt-injection payload, such as a document containing an embedded instruction, before deploying mitigations.: Validates whether the agent treats embedded instructions as commands, exposing Excessive Agency risk prior to production.[1]
  • Apply defense-in-depth mitigations recommended from EchoLeak analysis: prompt partitioning, enhanced input/output filtering, provenance-based access control, and strict content security policies.: Multiple bypasses defeated single defenses in EchoLeak, so layered controls and continuous adversarial testing are required for production copilots.[3]