arXiv:2512.11147cs.CRcs.AI2025-12被引 24

让大模型工具调用更安全,自动限制权限不越界。

MiniScope: A Least Privilege Framework for Authorizing Tool Calling Agents

  • 重构工具调用权限关系,自动实现最小权限
  • 实测延迟仅增加1-6%,性能损耗极低
  • 适合需要安全调用敏感服务的AI应用开发者

工具调用代理是大型语言模型(LLM)部署的新兴范式,主流平台如ChatGPT、Claude和Gemini已引入连接器与自主能力。然而,LLM固有的不可靠性在操作用户敏感服务时带来根本性安全风险。现有方法或依赖需安全知识的手动策略,或让LLM处于封闭循环中,缺乏严格安全保证。我们提出MiniScope,一种框架,使工具调用代理能在用户账户上运行的同时,限制不可靠LLM可能造成的损害。MiniScope通过重建反映工具调用间关系的权限层级,并结合移动端权限模型,实现自动且严格的最小权限约束,兼顾安全与易用性。为评估其效果,我们基于十个真实应用构建合成数据集,涵盖比现有简化基准更复杂的智能体任务。评估表明,MiniScope相较原生工具调用代理仅增加1-6%延迟,同时显著优于基于LLM的基线,在最小化权限、降低计算与操作成本方面表现更优。

原文摘要 · Abstract (English)

Tool calling agents are an emerging paradigm in LLM deployment, with major platforms such as ChatGPT, Claude, and Gemini adding connectors and autonomous capabilities. However, the inherent unreliability of LLMs introduces fundamental security risks when these agents operate over sensitive user services. Prior approaches either rely on manually written policies that require security expertise, or place LLMs in the confinement loop, which lacks rigorous security guarantees. We present MiniScope, a framework that enables tool calling agents to operate on user accounts while confining potential damage from unreliable LLMs. MiniScope introduces a novel way to automatically and rigorously enforce least privilege principles by reconstructing permission hierarchies that reflect relationships among tool calls and combining them with a mobile-style permission model to balance security and ease of use. To evaluate MiniScope, we create a synthetic dataset derived from ten popular real-world applications, capturing the complexity of realistic agentic tasks beyond existing simplified benchmarks. Our evaluation shows that MiniScope incurs only 1-6% latency overhead compared to vanilla tool calling agents, while significantly outperforming the LLM based baseline in minimizing permissions as well as computational and operational costs.

安全框架最小权限工具调用LLM安全

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。