为开源智能体OpenClaw设计实时安全防护框架,防漏洞、控风险、保系统安全。
ClawKeeper: Comprehensive Safety Protection for OpenClaw Agents Through Skills, Plugins, and Watchers
- 分三层次防护:指令层策略约束、运行时插件监控、独立守护者实时干预
- 可阻断高危操作、检测恶意行为,支持人工确认或自动拦截
- 适合开发智能体系统者、安全研究人员及注重安全的AI应用团队
OpenClaw作为领先的开源自主智能体运行时,具备工具集成、本地文件访问和命令执行等强大功能,但其广泛权限也带来严重安全隐患,如敏感数据泄露、权限提升和第三方技能恶意执行。现有安全措施分散,仅覆盖智能体生命周期中的局部环节。为此,我们提出ClawKeeper,一个实时安全框架,通过三个互补层级实现全面防护:(1) 技能级保护在指令层注入结构化安全策略,强制环境特定约束与跨平台边界;(2) 插件级保护作为内部运行时执行器,提供配置加固、主动威胁检测和持续行为监控;(3) 守护者级保护引入新型解耦式系统级安全中间件,持续验证智能体状态演变,支持实时干预(如中止高危动作或强制人工确认),且不耦合于智能体内部逻辑。大量定性与定量评估证明其在多种威胁场景下的有效性与鲁棒性。代码已公开。
原文摘要 · Abstract (English)
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.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。