MiniScope: A Least Privilege Framework for Authorizing Tool Calling Agents

Jinhao Zhu, Kevin Tseng, Gil Vernik, Xiao Huang, Shishir G. Patil, Vivian Fang, Raluca Ada PopaarXiv 2025 · DOI

Introduction

As AI agents transition from conversational interfaces to "agentic systems" capable of executing actions via APIs (e.g., Gmail, Slack, Google Drive), they introduce significant security vulnerabilities. LLMs are susceptible to hallucinations and prompt injections, which can lead to unauthorized actions like data deletion or exfiltration. Current security measures often fail to balance rigorous protection with user experience, either being too permissive or overly intrusive.

The MiniScope Framework

MiniScope addresses these challenges by automatically enforcing the principle of least privilege. It functions as a security intermediary that intercepts agent plans and ensures they only possess the minimum necessary permissions for a given task.

MiniScope Architecture and Interaction Flow

The framework's architecture is built on three core pillars:

  1. Hierarchical Permission Reconstruction: MiniScope automatically maps flat API scopes into functional hierarchies. By understanding that a 'write' permission typically implies 'read' access, it can make more informed authorization decisions.
  2. ILP-based Least Privilege Solver: Rather than relying on unreliable LLM self-policing, MiniScope treats permission selection as an Integer Linear Programming (ILP) problem. This provides a mathematical guarantee of optimality.
  3. Adaptive User Confirmation: To mitigate decision fatigue, MiniScope employs a mobile-style permission model (e.g., "Allow once," "Always allow"), reducing the frequency of user interruptions without compromising security.

Practical Application and Security

The utility of MiniScope is most evident when handling potentially malicious instructions embedded in external data.

Example of MiniScope preventing over-privileged tool execution

In the workflow illustrated above, an agent initially requests read-only access to Gmail to process a user request. However, a malicious instruction within an email prompts the agent to attempt a deletion. MiniScope detects this shift toward an over-privileged state during the "replanning" phase and triggers a user confirmation request, effectively blocking the unauthorized action.

Evaluation and Key Results

MiniScope was evaluated against a synthetic dataset of over 1,000 API methods across 10 real-world applications. Key findings include:

  • Superior Accuracy: While top-tier LLMs (GPT-4, Claude 3.5) often suggest over-privileged sets, MiniScope’s mechanical solver is optimal by design.
  • Low Overhead: The framework adds only 1–6% latency to requests, making it significantly faster and more cost-effective than LLM-based security layers.
  • Reduced User Burden: Logical grouping of permissions reduced the number of required user confirmations by up to 4x in long-term simulations.

Conclusion

MiniScope demonstrates that the "principle of least privilege" can be rigorously and efficiently applied to AI agents. By moving away from natural language security policies toward structured, mathematical solvers, MiniScope provides a robust defense against the inherent unreliability of LLMs. Future research will focus on refining these controls from the "scope" level to specific "resource" levels, such as individual files or threads.

Summary updated

BibTeX
@misc{zhu2025miniscope,
  author = {Jinhao Zhu and Kevin Tseng and Gil Vernik and Xiao Huang and Shishir G. Patil and Vivian Fang and Raluca Ada Popa},
  title = {{MiniScope: A Least Privilege Framework for Authorizing Tool Calling Agents}},
  year = {2025},
  eprint = {2512.11147},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.11147},
}
Figure