Uncovering Security Threats and Architecting Defenses in Autonomous Agents: A Case Study of OpenClaw
Zonghao Ying, Xiao Yang, Siyang Wu, Yumeng Song, Yang Qu, Hainan Li, Tianlin Li, Jiakai Wang, Aishan Liu, Xianglong Liu · 2026
Read Uncovering Security Threats and Architecting Defenses in Autonomous Agents: A Case Study of OpenClaw by Zonghao Ying, Xiao Yang, Siyang Wu, Yumeng Song, Yang Qu, Hainan Li, Tianlin Li, Jiakai Wang, Aishan Liu, Xianglong Liu (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-12644.txt.
Introduction
Zonghao Ying and co-authors map security threats in OpenClaw, a framework that gives AI agents system-level powers. Tool-calling agents can run complex workflows, so old content filters no longer suffice. The report names flaws like prompt injection leading to remote code execution, chained tool attacks, context amnesia, and supply chain contamination. A three-layer risk taxonomy sorts flaws across cognition, execution, and information systems. Their defense blueprint, FASA, rests on zero-trust execution and intent checks.
Catalog record
| CREATOR | Zonghao Ying, Xiao Yang, Siyang Wu, Yumeng Song, Yang Qu, Hainan Li, Tianlin Li, Jiakai Wang, Aishan Liu, Xianglong Liu |
|---|---|
| YEAR | 2026 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 24139 |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2603.12644
Browse the full library · About the Tower of Babel
Full text
The opening of the work, from the library's hosted text:
Uncovering Security Threats and Architecting Defenses in Autonomous Agents: A Case Study of OpenClaw Zonghao Ying, Xiao Yang, Siyang Wu, Yumeng Song, Yang Qu, Hainan Li, Tianlin Li, Jiakai Wang, Aishan Liu, Xianglong Liu Abstract The rapid evolution of Large Language Models (LLMs) into autonomous, tool-calling agents has fundamentally altered the cybersecurity landscape. Frameworks like OpenClaw grant AI systems operating-system-level permissions and the autonomy to execute complex workflows. This level of access creates unprecedented security challenges. Consequently, traditional content-filtering defenses have become obsolete. This report presents a comprehensive security analysis of the OpenClaw ecosystem. We systematically investigate its current threat landscape, highlighting critical vulnerabilities such as prompt injection-driven Remote Code Execution (RCE), sequential tool attack chains, context amnesia, and supply chain contamination. To systematically contextualize these threats, we propose a novel tri-layered risk taxonomy for autonomous Agents, categorizing vulnerabilities across AI Cognitive, Software Execution, and Information System dimensions. To address these systemic architectural flaws, we introduce the Full-Lifecycle Agent Security Architecture (FASA). This theoretical defense blueprint advocates for zero-trust agentic execution, dynamic intent verification, and cross-layer reasoning-action correlation. Building on this framework, we present Project ClawGuard, our ongoing engineering initiative. This project aims to implement the FASA paradigm and transition autonomous agents from high-risk experimental utilities into trustworthy systems. Our code and dataset are available at https://github.com/NY1024/ClawGuard . Figure 1 : The threat landscape of the OpenClaw. 1 Introduction The rapid evolution of Large Language Models (LLMs) ( 37 ; 10 ; 32 ) has catalyzed a fundamental paradigm shift in artificial intelligence: the transition from passive, conversational interfaces to proactive, action-oriented Autonomous Agents ( 28 ; 38 ) . Unlike traditional LLMs that merely generate text, autonomous agents are equipped with planning capabilities, long-term memory, and, crucially, the ability to invoke external tools. In this context, OpenClaw ( 24 ) has emerged as a highly popular, self-hosted, open-source AI agent framework. By separating cognitive decision-making ( 43 ; 12 ) from tool execution ( 35 ; 34 ) , OpenClaw constructs a dynamic runtime where the AI can autonomously utilize web browsers ( 39 ) , execute shell commands ( 34 ) , manage local files ( 31 ) , and interact with numerous third-party APIs ( 45 ) to complete complex workflows. However, this architecture grants neural networks direct access to operating system-level permissions. This shift has completely reconstructed the boundaries of software and information security. The security perimeter of an agentic system extends far beyond that of a traditional application. While conventional LLMs primarily face content-centric risks (e.g., generating hallucinations ( 47 ; 1 ) or toxic text ( 40 ; 42 ; 36 ) ), tool-calling agents like OpenClaw inherit these vulnerabilities and amplify them into critical system-level threats. In an agentic paradigm, a simple prompt injection attack no longer just alters a chat response ( 33 ) ; it can be weaponized to trigger unauthorized Remote Code Execution (RCE) ( 20 ) , arbitrary file deletion ( 19 ) , or the stealthy exfiltration of sensitive enterprise data ( 21 ) . Furthermore, traditional security defenses are fundamentally inadequate for autonomous agents. This includes measures such as static Web Application Firewalls (WAFs) ( 27 ) and basic input filtering ( 11 ) . This inadequacy stems from the inherent conflation of data and instructions within LLMs, combined with the agent’s ability to chain seemingly legitimate tools together to achieve malicious objectives. The assumption that local deployment equates to secure execution has already led to severe vulnerabilities in the OpenClaw ecosystem, including supply chain poisoning ( 2 ) , credential theft ( 23 ) , and catastrophic autonomous failures caused by cognitive limitations ( 9 ) . Figure 1 illustrates how the unique capabilities of OpenClaw introduce unprecedented security risks. To address this critical gap, this report systematically investigates the multifaceted security threats facing tool-calling agents, utilizing OpenClaw as a primary case study. The contributions of this report are structured as follows: • Section 2 provide an architectural overview of OpenClaw and empirically analyze its current threat landscape, detailing vulnerabilities ranging from context amnesia to complex toolchain attacks. • Section 3 abstracts these empirical findings into a comprehensive Tri-layered Risk Taxonomy for Autonomous Agents, mapping specific framework vulnerabilities to underlying systemic flaws. • Section 4 proposes the Full-Lifecycle Agent Security Architecture (FASA), a theoretical defense blueprint designed to secure agents from input perception to OS-level execution. We conclude by introducing Project ClawGuard , our ongoing engineering effort to implement the FASA paradigm within the OpenClaw ecosystem. Through this systematic analysis, we aim to transition the discourse on agent security from reactive vulnerability patching to proactive, architectural defense design. 2 Overview of the OpenClaw Ecosystem Figure 2 : High-level architectural overview of the OpenClaw ecosystem. To fully comprehend the security implications of modern autonomous agents, it is essential to understand the architectural paradigm of OpenClaw. Colloquially referred to as “Lobster” (due to its project logo), OpenClaw is a highly popular, open-source, self-hosted autonomous AI virtual assistant ( 44 ) . Unlike traditional conversational chatbots, OpenClaw is designed to act as a persistent, action-oriented digital proxy capable of executing complex, multi-step workflows across local operating systems and external cloud services. As illustrated in Figure 2 , OpenClaw’s decoupled, local-first architecture bridges LLM cognitive capabilities with deep system-level execution through several interconnected subsystems ( 25 ) . 2.1 Evolution and Rapid Adoption Originally developed by Austrian software engineer Peter Steinberger and launched in late 2025 under the name Clawdbot (later briefly renamed Moltbot before settling on OpenClaw in January 2026), the project has experienced explosive growth ( 30 ) . By late February 2026, the repository had amassed over 200,000 stars on GitHub. Industry analysts have praised OpenClaw as a glimpse into the “future of personal AI assistants.” ( 5 ) However, security experts and reviewers from publications such as Forbes ( 13 ) and CNET ( 18 ) have simultaneously warned that the framework remains in its early stages. It currently lacks enterprise-grade compliance guardrails, making its deployment a high-risk endeavor for organizations without mature security postures. 2.2 Core Architecture and Capabilities OpenClaw’s power stems from its decoupled, local-first architecture, which bridges LLM cognitive capabilities ( 15 ; 46 ) with deep system-level execution. The architecture is built upon several key subsystems: • The Gateway (Control Plane): Operating as a local-first WebSocket network, the Gateway serves as the centralized control plane. It manages user sessions, presence, cron jobs, webhooks, and routes inbound events to isolated agent workspaces. • Pi Agent Runtime: The core reasoning engine operates in an RPC (Remote Procedure Call) mode, supporting tool streaming and block streaming. It maintains persistent memory by storing configuration data and interaction histories locally, allowing the agent to maintain long-term context across sessions. • Omni-Channel Integration: OpenClaw acts as a universal inbox and outbox. It seamlessly integrates with over twenty communication channels, including enterprise platforms (Slack, Microsoft Teams, Feishu, Mattermost) and personal messengers (WhatsApp, Telegram, Signal, Discord, iMessage). • Cross-Platform Nodes: The framework deploys native nodes across macOS, iOS, and Android. These nodes grant the agent access to device-specific hardware and OS APIs, including camera control, screen recording, location services, and direct system command execution (e.g., system.run and system.notify on macOS).