Source-linked AI summary
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
TL;DR
Autonomous tool-calling agents create security risks because operating-system permissions and workflow autonomy amplify prompt and software vulnerabilities. This report analyzes OpenClaw, organizes its threats into a tri-layered taxonomy, and proposes FASA; Project ClawGuard is an ongoing effort to implement that blueprint. The framework remains early-stage and lacks enterprise-grade compliance guardrails, while some FASA enforcement mechanisms assume higher-level guardrails can be bypassed.
Problem
OpenClaw grants agents operating-system access and autonomy, while conventional content-centric defenses are inadequate for agent-specific threats.
Source: §1 · p. 1, §2.1 · p. 2Method
The report analyzes OpenClaw’s threat landscape, maps vulnerabilities into three security dimensions, and proposes the theoretical Full-Lifecycle Agent Security Architecture.
Source: §1 · p. 2Results
Takeaways & Limitations
Project ClawGuard is an ongoing engineering effort to implement FASA and move OpenClaw toward a trustworthy autonomous system.
Source: §1 · p. 2, §4.5 · p. 7OpenClaw remains early-stage, lacks enterprise-grade compliance guardrails, and FASA assumes higher-level cognitive guardrails may occasionally be bypassed.
Source: §2.1 · p. 2, §4.3 · p. 5
Abstract
from arXiv · showhide
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.
1. Introduction
Autonomous agents such as OpenClaw extend LLM risks into system-level security threats because they can invoke tools and operate with operating-system permissions. The report analyzes this gap, develops a tri-layered taxonomy, and proposes FASA as a proactive defense blueprint.
- OpenClaw-like agents can turn prompt injection into Remote Code Execution, arbitrary file deletion, or sensitive-data exfiltration.Source: §1 · pp. 1–2
- Static WAFs and basic input filtering are inadequate because LLMs conflate data with instructions and agents can chain legitimate tools maliciously.Source: §1 · p. 2
- The report systematically investigates tool-calling-agent threats using OpenClaw as its primary case study.Source: §1 · p. 2
- It analyzes vulnerabilities including context amnesia and complex toolchain attacks, then maps them into a tri-layered risk taxonomy.Source: §1 · p. 2
- FASA is a theoretical defense blueprint spanning input perception through OS-level execution, while Project ClawGuard seeks to implement it.Source: §1 · p. 2
- The report aims to shift agent security from reactive vulnerability patching toward proactive architectural defense design.Source: §1 · p. 2
2. Overview of the OpenClaw Ecosystem
OpenClaw is a local-first autonomous assistant that connects LLM reasoning to operating systems, communication channels, browsers, and third-party skills. These capabilities create a broad attack surface because untrusted inputs can influence actions such as shell execution, file access, and data movement.
- OpenClaw is a self-hosted autonomous assistant that executes complex workflows across local operating systems and external cloud services.Source: §2 · p. 2
- Its architecture bridges LLM capabilities with system execution through a local-first, decoupled design.Source: §2 · p. 2, §2.2 · p. 2
- The Gateway centralizes sessions, presence, scheduled jobs, webhooks, and routing to isolated agent workspaces.Source: §2.2 · p. 2
- OpenClaw combines persistent local memory, more than twenty communication channels, cross-platform device APIs, browser automation, and third-party skills.Source: §2.2 · pp. 2–3
- Despite pairing protections for unknown direct messages, the framework remains continuously exposed to untrusted internet inputs.Source: §2.3 · p. 3
- Autonomous browsing, shell commands, and file operations allow successful prompt injection or tool hijacking to cause code execution, lateral movement, or data exfiltration.Source: §2.3 · p. 3
3. A Tri-layered Risk Taxonomy and Threat Landscape: The OpenClaw Case
The report organizes autonomous-agent threats into cognitive, execution, and information-system dimensions, linking OpenClaw vulnerabilities to systemic architectural weaknesses. The resulting threat landscape includes prompt injection, memory failures, sandbox escapes, tool chains, poisoned plugins, privilege flaws, and insecure state storage.
- OpenClaw’s extensive privileges and weak isolation extend its security boundary beyond traditional web applications and standalone LLMs.Source: §3 · pp. 3–4
- The tri-layered taxonomy categorizes risks as AI and Cognitive Security, Software and Execution Security, and Information and System Security.Source: §3 · p. 4
AI and Cognitive Security
- Cognitive risks include prompt injection, context compression that can cause autonomous deletion, and persistent memory pollution through malicious preferences.Source: §3.1 · p. 4
Software and Execution Security
- Execution risks include host-level sandbox failures, sequentially chained benign tools, and poisoned third-party skills lacking rigorous auditing or signature verification.Source: §3.2 · p. 4
Information and System Security
- Information-system risks include loopback authentication misconfiguration and plaintext storage of reasoning traces and API keys.Source: §3.3 · p. 4
- Securing OpenClaw requires holistic, multilayered defense rather than isolated endpoint patches or LLM fine-tuning.Source: §3.3 · p. 5
4. A Full-Lifecycle Defense Blueprint for Autonomous Agents
FASA shifts security from model outputs to the full agent execution pipeline through zero-trust isolation, intent verification, cross-layer correlation, and continuous improvement. ClawGuard is being developed as a proof-of-concept implementation for OpenClaw.
Architecture
- FASA uses four sequential defense layers to intercept anomalous behavior across the agent’s operational lifecycle.The architecture emphasizes layered isolation, dynamic intent verification, cross-layer correlation, and continuous evolution.Source: §4 · p. 5
Input and Execution Controls
- External inputs are isolated and sanitized, third-party tools are audited before admission, and tool calls run in ephemeral least-privilege sandboxes.These controls remove executable content, inspect tool descriptions and code, restrict network egress, and reduce unauthorized system access or data exfiltration.Source: §4.1 · p. 5
Cognitive and Behavioral Verification
- Planning defenses evaluate semantic capability consistency, complete action trajectories, and inter-agent communications for anomalous or malicious workflows.Trajectory analysis decomposes complex plans into atomic actions to detect sequential tool attacks even when individual operations appear benign.Source: §4.2 · p. 5
System Boundary Enforcement
- Cross-layer reasoning–action correlation compares inferred intent with system behavior, while operating-system telemetry supports automated containment of violations.Examples include flagging a network connection during file summarization and monitoring file I/O, process creation, and network activity.Source: §4.3 · pp. 5–6
Continuous Governance
- Threat intelligence integration and adaptive adversarial simulation create a governance loop that updates baselines, policies, detection, and mitigation strategies.The simulation evaluates adversarial prompts and poisoned tools in controlled environments, incorporating successful attack patterns into training data.Source: §4.4 · pp. 6–7
Project ClawGuard
- ClawGuard is an ongoing proof-of-concept effort intended to translate FASA’s design philosophy into a practical OpenClaw security platform.Early prototypes include primary security modules, but realizing the FASA paradigm remains an ongoing challenge.Source: §4.5 · p. 7
5. Conclusion
Autonomous agents such as OpenClaw expand AI capabilities while breaking traditional software-security boundaries through direct system execution. The report responds with a tri-layered risk taxonomy, the FASA blueprint, and ongoing ClawGuard engineering to support secure and reliable operation.
Conclusion
- OpenClaw’s direct system execution capabilities create security threats that conventional content-centric defenses cannot adequately address.The conclusion identifies prompt injection, sequential toolchain hijacking, and supply chain contamination as agent-specific threats.Source: §5 · p. 7
- FASA addresses these systemic vulnerabilities through layered isolation, dynamic intent verification, and cross-layer reasoning-action correlation.The architecture is presented as a comprehensive blueprint for autonomous-agent security.Source: §5 · p. 7
- Ongoing ClawGuard engineering aims to translate FASA’s design philosophies into a practical mechanism for secure and reliable autonomous-agent operation.The conclusion frames this implementation effort as the route toward applying the blueprint in complex, real-world environments.Source: §5 · p. 7
Related papers
Cited by
- Then there is prompt injection, a malicious email, ...: The Wild Wide West of OpenClaw Agentic System Security2026
- Forgetting is Not Always Bad: A Neuro-Inspired Memory Repair Mechanism for Poisoned LLM Agents2026
- PyCache Trap: The Inspection-Execution Gap in Agent Skill Scanners2026
- Agent-ValueBench: A Comprehensive Benchmark for Evaluating Agent Values2026