Tether:用于智能体系统级监控的已验证有状态策略引擎
Tether: Verified Stateful Policy Engine for System-Level Monitoring of Agents
AI总结:
Tether是基于Lean 4的已验证有状态策略引擎,通过沙箱执行智能体操作并执行有状态安全策略,可100%阻止编码智能体的范围内攻击,且良性误报率低于5%。
摘要:
自主AI智能体越来越多地被部署用于执行长期运行的任务,这些任务会执行任意shell命令或程序。然而,这些操作可能会导致未经授权的网络请求,或者对用户的文件系统、进程或权限造成持续性的恶意更改。现有的防御机制要么依赖于基于大语言模型(LLM)的监控器,这类监控器缺乏可证明的安全保障;要么依赖于无状态的策略执行层,这类层会遗漏策略语言未建模的多步数据流和执行副作用(例如,Python脚本内部发起的网络调用)。我们提出了Tether,这是一个用于对智能体操作的观测副作用进行有状态安全策略运行时执行的框架。Tether在一个短暂的隔离沙箱中执行每个提议的操作,从观测到的系统调用中推断抽象操作语义,随后针对这些推断出的语义执行有状态策略,仅当操作符合策略时才允许其继续。策略和操作语义在Lean 4中定义的嵌入式领域特定语言(DSL)中,该语言能够表达多种约束,包括信息流控制(IFC)、访问控制和网络安全策略。由于操作可以将标签从源传播到目标,因此单个规则可以在任意长度的多步执行流中执行细粒度的IFC策略。在Lean中表达策略能够对其满足全局安全不变式进行形式化验证(例如,在读取敏感文件后阻止网络访问)。我们在真实的编码智能体基准上对Tether进行了评估,涵盖良性和对抗性轨迹。通过在所有任务中共享的单个策略,Tether阻止了100%的范围内攻击,同时保持良性误报率低于5%。
英文摘要:
Autonomous AI agents are increasingly deployed for long-running tasks that execute arbitrary shell commands or programs. However, these actions can result in unauthorized network requests or persistent, malicious changes to the user's file system, processes, or privileges. Existing defense mechanisms rely on either LLM-based monitors, which lack provable safety guarantees, or stateless policy enforcement layers, which miss multi-step data flows and execution side-effects unmodeled by the policy language (e.g., network calls initiated inside a Python script). We introduce Tether, a framework for runtime enforcement of stateful security policies over the observed side-effects of an agent's actions. Tether executes each proposed action in an ephemeral, isolated sandbox, inferring abstract action semantics from observed system calls. Tether then enforces stateful policies over these inferred semantics, permitting actions to proceed only if they comply with the policy. Policies and action semantics are defined in an embedded DSL in Lean 4 capable of expressing diverse constraints, including information flow control (IFC), access control, and network security policies. Because actions can propagate labels from sources to destinations, a single rule can enforce fine-grained IFC policies across multi-step execution flows of arbitrary length. Expressing policies in Lean enables formal verification that they satisfy global security invariants (e.g., preventing network access after reading a sensitive file). We evaluate Tether on realistic coding-agent benchmarks across both benign and adversarial trajectories. With a single policy shared across all tasks, Tether blocks 100% of in-scope attacks while maintaining a benign false-positive rate under 5%.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。