arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.16265cs.AIcs.CR
收藏

AgentWall:本地AI代理的运行时安全层

AgentWall: A Runtime Safety Layer for Local AI Agents

Ashwin Aravind

AI总结:

本文提出AgentWall,一种用于本地AI代理的运行时安全与可观测性层,通过拦截代理操作、评估政策、要求人类批准和记录执行轨迹,实现92.9%的政策执行准确率。

摘要:

自主AI代理的安全性日益被认识到是关键的开放性问题。随着代理从被动文本生成器转变为能够执行shell命令、修改文件、调用API和浏览网络的活跃行为者,不安全或被对手操控的行为后果变得立即且具现实影响。现有AI安全工作主要集中在模型对齐和输入过滤,但这些方法无法解决当代理意图变为真实机器上的实际操作时的问题。此缺口在本地环境中尤为明显,因为开发者在自己的文件系统、凭证和基础设施上运行代理时缺乏运行时控制。本文介绍AgentWall,一种用于本地AI代理的运行时安全与可观测性层。AgentWall在代理操作到达主机环境之前拦截每一个提议的代理操作,将其与显式声明性政策进行评估,要求对敏感操作进行人工批准,并记录完整的执行轨迹以供审计和回放。它被实现为一个强制执行MCP代理和原生OpenClaw插件,可在Claude Desktop、Cursor、Windsurf、Claude Code和OpenClaw上通过单条安装命令运行。我们展示了AgentWall的设计、架构、威胁模型和政策模型,并在14个基准测试中实现了92.9%的政策执行准确率,亚毫秒级的开销。AgentWall在https://github.com/agentwall/Agentwall上开源。

英文摘要:

The safety of autonomous AI agents is increasingly recognized as a critical open problem. As agents transition from passive text generators to active actors capable of executing shell commands, modifying files, calling APIs, and browsing the web, the consequences of unsafe or adversarially manipulated behavior become immediate and tangible. Existing AI safety work has focused primarily on model alignment and input filtering, but these approaches do not address what happens at the moment an agent's intent becomes a real action on a real machine. This gap is especially acute in local environments, where developers run agents against their own filesystems, credentials, and infrastructure with little runtime control. This paper introduces AgentWall, a runtime safety and observability layer for local AI agents. AgentWall intercepts every proposed agent action before it reaches the host environment, evaluates it against an explicit declarative policy, requires human approval for sensitive operations, and records a complete execution trail for audit and replay. It is implemented as a policy-enforcing MCP proxy and native OpenClaw plugin, working across Claude Desktop, Cursor, Windsurf, Claude Code, and OpenClaw with a single install command. We present the design, architecture, threat model, and policy model of AgentWall, and demonstrate 92.9% policy enforcement accuracy with sub-millisecond overhead across 14 benchmark tests. AgentWall is open-source at https://github.com/agentwall/Agentwall.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑