给智能体细粒度控制权限,用完即收,不用全权信任。
AC4A: Access Control for Agents
- 基于资源层级定义权限,像系统文件一样精细控制访问
- 支持真实API和网页,运行时动态计算所需权限
- 适合需要安全隔离的自主智能体应用,如金融、医疗
大型语言模型(LLM)代理结合了聊天交互能力与外部工具及API的调用能力,可自主完成复杂任务。然而,现有代理系统采用全有或全无的访问模式:要么完全拥有某API或网页的所有权限,要么一无所知。这种粗粒度方式迫使用户信任代理获取超出任务所需的权限。本文提出AC4A,一种面向代理的访问控制框架,使用户能限制代理对特定API或网页部分内容的访问,无需赋予其全部权限。该框架适用于基于API和浏览器的代理,不预设具体权限策略,而是提供灵活的定义与执行机制,便于实际部署。AC4A通过构建资源层级结构并动态计算运行时所需权限实现控制,灵感源自类Unix文件系统的访问控制。我们通过案例研究验证了其在真实世界API与网页上的有效性。代码已开源。
原文摘要 · Abstract (English)
Large Language Model (LLM) agents combine the chat interaction capabilities of LLMs with the power to interact with external tools and APIs. This enables them to perform complex tasks and act autonomously to achieve user goals. However, current agent systems operate on an all-or-nothing basis: an agent either has full access to an API's capabilities and a web page's content, or it has no access at all. This coarse-grained approach forces users to trust agents with more capabilities than they actually need for a given task. In this paper, we introduce AC4A, an access control framework for agents. As agents become more capable and autonomous, users need a way to limit what APIs or portions of web pages these agents can access, eliminating the need to trust them with everything an API or web page allows. Our goal with AC4A is to provide a framework for defining permissions that lets agents access only the resources they are authorized to access. AC4A works across both API-based and browser-based agents. It does not prescribe what permissions should be, but offers a flexible way to define and enforce them, making it practical for real-world systems. AC4A works by creating permissions granting access to resources, drawing inspiration from established access control frameworks like the one for the Unix file system. Applications define their resources as hierarchies and provide a way to compute the necessary permissions at runtime needed for successful resource access. We demonstrate the usefulness of AC4A in enforcing permissions over real-world APIs and web pages through case studies. The source code of AC4A is available at https://github.com/reSHARMA/AC4A
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。