arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.24414cs.CRcs.AI
收藏

ClawKeeper: 通过技能、插件和观察者为OpenClaw代理提供全面的安全保护

ClawKeeper: Comprehensive Safety Protection for OpenClaw Agents Through Skills, Plugins, and Watchers

Beijing University of Posts and Telecommunications(北京邮电大学);Beijing Academy of Artificial Intelligence(北京人工智能研究院);China Academy of Information and Communications Technology(信息通信技术研究院)

Songyang Liu, Chaozhuo Li, Chenxu Wang, Jinyu Hou, Zejian Chen, Litian Zhang, Zheng Liu, Qiwei Ye, Yiming Hei, Xi Zhang, Zhongyuan Wang

AI总结:

ClawKeeper通过技能、插件和观察者三层机制,提供实时安全防护,解决OpenClaw生态的安全漏洞问题,经过评估证明其有效性。

摘要:

OpenClaw已迅速成为领先的开源自主代理运行时,提供工具集成、本地文件访问和shell命令执行等强大能力。然而,这些广泛的操作权限引入了关键的安全漏洞,将模型错误转化为实际的系统级威胁,如敏感数据泄露、权限提升和恶意第三方技能执行。现有安全措施在OpenClaw生态系统中仍然碎片化,仅解决代理生命周期的孤立阶段而非提供全面保护。为此,我们提出了ClawKeeper,一个实时安全框架,通过三个互补的架构层集成多维保护机制。(1) 基于技能的保护在指令级别操作,将结构化的安全策略直接注入代理上下文以强制环境特定约束和跨平台边界。(2) 基于插件的保护作为内部运行时执行者,提供配置加固、主动威胁检测和持续行为监控。(3) 基于观察者的保护引入了一种新的解耦系统级安全中间件,持续验证代理状态演变。它能够在不耦合到代理内部逻辑的情况下实现实时执行干预,支持停止高风险操作或强制人工确认。我们认为,这种观察者范式有潜力成为安全下一代自主代理系统的基础构建块。广泛的定性和定量评估证明了ClawKeeper在多样化的威胁场景中的有效性和鲁棒性。我们发布了我们的代码。

英文摘要:

OpenClaw has rapidly established itself as a leading open-source autonomous agent runtime, offering powerful capabilities including tool integration, local file access, and shell command execution. However, these broad operational privileges introduce critical security vulnerabilities, transforming model errors into tangible system-level threats such as sensitive data leakage, privilege escalation, and malicious third-party skill execution. Existing security measures for the OpenClaw ecosystem remain highly fragmented, addressing only isolated stages of the agent lifecycle rather than providing holistic protection. To bridge this gap, we present ClawKeeper, a real-time security framework that integrates multi-dimensional protection mechanisms across three complementary architectural layers. (1) \textbf{Skill-based protection} operates at the instruction level, injecting structured security policies directly into the agent context to enforce environment-specific constraints and cross-platform boundaries. (2) \textbf{Plugin-based protection} serves as an internal runtime enforcer, providing configuration hardening, proactive threat detection, and continuous behavioral monitoring throughout the execution pipeline. (3) \textbf{Watcher-based protection} introduces a novel, decoupled system-level security middleware that continuously verifies agent state evolution. It enables real-time execution intervention without coupling to the agent's internal logic, supporting operations such as halting high-risk actions or enforcing human confirmation. We argue that this Watcher paradigm holds strong potential to serve as a foundational building block for securing next-generation autonomous agent systems. Extensive qualitative and quantitative evaluations demonstrate the effectiveness and robustness of ClawKeeper across diverse threat scenarios. We release our code.

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

↑