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

Songyang Liu 1 , Chaozhuo Li 1† , Chenxu Wang 1 , Jinyu Hou 1 , Zejian Chen 1 , Litian Zhang 1 , Zheng Liu 2 , Qiwei Ye 2† , Yiming Hei 3 , Xi Zhang 1 , Zhongyuan Wang 2 1 Beijing University of Posts and Telecommunications 2 Beijing Academy of Artificial Intelligence 3 China Academy of Information and Communications Technology · 2026

Read ClawKeeper: Comprehensive Safety Protection for OpenClaw Agents Through Skills, Plugins, and Watchers by Songyang Liu 1 , Chaozhuo Li 1† , Chenxu Wang 1 , Jinyu Hou 1 , Zejian Chen 1 , Litian Zhang 1 , Zheng Liu 2 , Qiwei Ye 2† , Yiming Hei 3 , Xi Zhang 1 , Zhongyuan Wang 2 1 Beijing University of Posts and Telecommunications 2 Beijing Academy of Artificial Intelligence 3 China Academy of Information and Communications Technology (2026) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2603-24414.txt.

Introduction

Liu and co-authors present ClawKeeper, a security framework for the OpenClaw autonomous agent runtime. OpenClaw agents can use tools, local files, and shell commands, so model errors can leak data or raise privileges. ClawKeeper guards three layers at once. Skills inject security policies into the agent context. Plugins harden configuration and monitor behaviour during runs. A separate watcher tracks agent state, can halt high-risk actions, and can demand human confirmation, all without coupling to the agent's own logic.

Catalog record

CREATORSongyang Liu 1 , Chaozhuo Li 1† , Chenxu Wang 1 , Jinyu Hou 1 , Zejian Chen 1 , Litian Zhang 1 , Zheng Liu 2 , Qiwei Ye 2† , Yiming Hei 3 , Xi Zhang 1 , Zhongyuan Wang 2 1 Beijing University of Posts and Telecommunications 2 Beijing Academy of Artificial Intelligence 3 China Academy of Information and Communications Technology
YEAR2026
COLLECTIONPAPERS
FORMATTXT
FILE SIZE58652
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2603.24414

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

ClawKeeper: Comprehensive Safety Protection for OpenClaw Agents Through Skills, Plugins, and Watchers Songyang Liu 1 , Chaozhuo Li 1† , Chenxu Wang 1 , Jinyu Hou 1 , Zejian Chen 1 , Litian Zhang 1 , Zheng Liu 2 , Qiwei Ye 2† , Yiming Hei 3 , Xi Zhang 1 , Zhongyuan Wang 2 1 Beijing University of Posts and Telecommunications 2 Beijing Academy of Artificial Intelligence 3 China Academy of Information and Communications Technology Abstract 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) 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) Plugin-based protection serves as an internal runtime enforcer, providing configuration hardening, proactive threat detection, and continuous behavioral monitoring throughout the execution pipeline. (3) 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 at: https://github.com/SafeAI-Lab-X/ClawKeeper . \setheadertext LUMIA Lab \setheadertitle ClawKeeper: Comprehensive Safety Protection for OpenClaw Agents Through Skills, Plugins, and Watchers † † footnotetext: \dagger Corresponding authors: [email protected], [email protected]. 1 Introduction OpenClaw [ 23 ] has rapidly emerged as a prominent open-source agent runtime and ecosystem. By integrating tool use, extensible skills, plugin-based integration, background services, and cross-platform deployment, it supports a broad spectrum of applications, including automation, coding assistance, observability, and long-running personal agents. Beyond its practical utility, OpenClaw represents a significant milestone in the progression toward an agent-centric computing paradigm. As intelligent agents continue to grow in capability and autonomy, they are poised to assume a role analogous to that of operating systems, fundamentally reshaping the modes of human–computer interaction. OpenClaw’s expanding third-party ecosystem, including community-maintained skill registries, makes it a representative platform for studying security challenges in open agent ecosystems [ 9 , 5 , 12 ] . Unlike conventional chatbots, OpenClaw can execute shell commands, access local files, and interact with communication software to simulate authentic user operations. This elevated privilege model transforms model-level errors into concrete system-level threats, including sensitive data leakage, unsafe tool execution, privilege abuse, and persistent compromise [ 20 , 29 , 3 ] . These risks are further compounded by OpenClaw’s extensibility: attack surfaces may emerge not only from adversarial prompts, but also from installable skills, plugin logic, persistent memory, delayed triggers, and their compositional interactions [ 15 , 30 , 24 ] . Recent work further demonstrates that structural privilege boundaries, temporal triggers, and cross-agent propagation can substantially enlarge both the runtime and supply-chain attack surfaces [ 4 , 34 , 32 ] . Figure 1 : The Framework of ClawKeeper. Despite the serious security challenges posed by OpenClaw, existing safety methods suffer from four major limitations. (1) Fragmented Coverage . Prior work has studied specific threats—such as prompt injection, runtime misuse, memory poisoning, and trajectory-level failures—or proposed point defenses such as runtime mediation and privilege separation [ 20 , 15 , 5 , 33 ] . Yet these approaches typically address only a subset of the agent lifecycle and do not provide a unified view of what security guarantees are achieved, what assumptions they rely on, or where critical gaps remain. Moreover, many existing solutions remain tightly coupled with specific agent systems (e.g., OpenClaw-specific designs), limiting their generality and compatibility as the broader ecosystem evolves. (2) Safety–Utility Tradeoff . Existing defenses generally rely on skills and plugins embedded within OpenClaw to enforce safety constraints, requiring the agent to balance two competing objectives: task completion and security compliance. This design inherently falls into the well-known tension between effectiveness and safety, forcing the system to compromise on one goal to satisfy the other. (3) Reactive Defense . Most existing works can only identify security issues by analyzing logs and behavioral patterns after adversarial actions have already occurred—akin to “closing the barn door after the horse has bolted”. It is therefore far more desirable to uncover and preempt adversarial actions before they take effect, shifting from post-hoc analysis to real-time, proactive defense. (4) Static Defense Mechanisms . Existing skill-based defense methods are static and cannot adapt to emerging threats. This fundamentally conflicts with one of OpenClaw’s most distinctive capabilities: its self-evolving capacity. A defense framework that cannot evolve alongside the agent it protects will inevitably fall behind an ever-changing adversarial landscape. In this paper, we propose ClawKeeper , a comprehensive security framework that unifies protective measures across three complementary perspectives, as illustrated in Figure 1 . First, at the instruction level, ClawKeeper is designed with broad compatibility, supporting a wide range of systems and integrable software within OpenClaw to deliver defense from the skill and prompt layer. Second, at the runtime level, ClawKeeper incorporates existing security plugins and integrates relevant security functions to provide robust runtime enforcement against adversarial actions. Third, we introduce a novel standalone external watcher mechanism that achieves regulatory separation from OpenClaw itself. The watcher is an independent monitor agent, which captures real-time events, triggers context-aware responses, and governs other time-sensitive mechanisms that collectively shape the security posture of long-running agents. Building on this unified framework, we conduct a comprehensive analysis that reveals and discusses the advantages and limitations of each protection paradigm within ClawKeeper. Both quantitative and qualitative evaluations demonstrate the superiority of ClawKeeper over existing approaches. ClawKeeper, particularly its Watcher agent, represents an indispensable component of the modern agentic AI landscape. ClawKeeper delivers comprehensive safety coverage across the full agent lifecycle, ensuring no critical phase goes unmonitored. As a structurally independent agent, the Watcher concerns itself exclusively with safety oversight, while OpenClaw handles task solving. This separation of responsibilities, akin to the regulatory independence principle , effectively alleviates the classic safety–utility tradeoff, allowing each agent to be optimized for its own purpose. Through skills and plugins integrated into OpenClaw, the Watcher receives real-time session behavior information , enabling timely intervention and interrupt capabilities whenever a safety boundary is approached or violated. Crucially, because the Watcher is itself an agent, it is capable of continuously updating its skills and memory based on safety-related interactions and newly emerging risks, making ClawKeeper an adaptive, self-improving safety layer rather than a static ruleset. Most importantly, this paradigm is not tied exclusively to OpenClaw. It can be adapted to any agent system by establishing a communication channel between the host agent and the Watcher, making ClawKeeper a general-purpose safety framework for the

Read the complete text