Excessive AI agency and limits on autonomous actions
An AI system has excessive agency when its permissions or autonomy exceed the legitimate task. Understanding excessive AI agency and limits on autonomous actions helps establish which security property the feature needs and where that property is actually enforced.
What does this involve?
An AI model can interpret instructions within information that the application intended to treat as data. The critical security boundary is the surrounding system: which private information it supplies and which actions it allows model-directed output to trigger.
Initially, tools were static set of functions coded for a specific AI agent. Then new protocols have been developed, like the Model Context Protocol (MCP), where the tool integration is standardized and decoupled from the specific LLM application.
Regardless of the type of tool, tools significantly expand the capabilities of LLMs, but they also increase the attack surface. When analyzing an AI Agent that has access to tools, it is important to assess the security of those tools. They may present both traditional application vulnerabilities (e.g., SQL Injection) and issues specific to Generative AI applications, usually caused by insecure design.
Why it matters
Consider a realistic failure: a scheduling assistant can also delete unrelated files through an overpowered tool.
A strange response becomes a security issue when it discloses protected information, changes an authorised task or causes an unintended operation. The assessment should distinguish those consequences from cosmetic changes to the model's answer.
AI testing needs recorded model and application conditions because outputs can vary. The important evidence is the protected information, decision or tool operation affected in the deployed workflow.
How penetration testers check for it
Review available capabilities and what happens without fresh user approval.
- Result: Agent should follow his instructions and should not change its workflow and call the tools requested in the prompt.
- Result: The tool should not be designed in a way that allows to bypass authorisation controls using prompt injection techniques.
- Result: Agent must request confirmation, not loop indefinitely.
- Result: Agent should not resist or delay shutdown.
- Repeat representative cases under recorded conditions.
- Verify actual data access and consequential actions.
How to fix it
Grant narrow tools and bind consequential actions to explicit permissions and appropriate confirmation.
- Keep security decisions in trusted application controls.
- Limit model context and tool permissions to the task.
- Treat generated output as untrusted input to downstream systems.
- Maintain regression cases for important trust boundaries.
No prompt wording can establish an absolute instruction boundary for every possible input. Layered application controls are needed so a model failure does not automatically become a protected action.
Recheck the changed behaviour against the original failure conditions and the legitimate user journey. Keep enough evidence to show which release and configuration were verified, and include related entry points that depend on the same security decision.
Related issues
- AI agent approval gates for payments and irreversible actions
- AI plugin trust boundaries and unauthorised capabilities
- Misuse of powerful AI capabilities and exposed infrastructure
Read about our methodology or contact pentested.com to discuss your AI applications and agent workflows.