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 LiuarXiv 2026

TL;DR

As AI transitions from passive chatbots to autonomous agents with operating-system-level permissions, traditional text-filtering security defenses are becoming obsolete. This paper analyzes the severe security vulnerabilities of OpenClaw, a popular open-source agent framework, and introduces a tri-layered risk taxonomy to categorize these new threats. To secure these systems, the authors propose FASA, a zero-trust, full-lifecycle defense architecture, alongside an ongoing engineering initiative called Project ClawGuard.

What Problem Does This Paper Address?

Traditional Large Language Model (LLM) security focuses heavily on content moderation—preventing models from generating toxic text or hallucinations. However, modern autonomous agents like OpenClaw are designed to proactively execute workflows by interacting with the local operating system, managing files, running shell commands, and calling external APIs.

This direct access to system-level permissions creates a dangerous security paradox. Because LLMs inherently conflate data and instructions, an attacker can use a simple prompt injection hidden on a webpage to trigger unauthorized Remote Code Execution (RCE), delete arbitrary files, or exfiltrate sensitive data. This paper addresses the critical lack of enterprise-grade security guardrails in autonomous agent frameworks, using OpenClaw as a primary case study to map out this expanded threat landscape.

Figure 1. The threat landscape of the OpenClaw.

Methods

The authors systematically audit the OpenClaw ecosystem and abstract their empirical findings into two core contributions:

  1. Tri-layered Risk Taxonomy: A framework that categorizes agent vulnerabilities into three distinct dimensions:
  2. AI and Cognitive Security: Vulnerabilities tied to the model's reasoning and memory (e.g., prompt injection, context amnesia).
  3. Software and Execution Security: Flaws in tool integration and runtime environments (e.g., sandbox isolation failures, supply chain contamination).
  4. Information and System Security: Traditional security risks amplified by the agentic paradigm (e.g., insecure state storage, privilege misconfiguration).
  5. Full-Lifecycle Agent Security Architecture (FASA): A theoretical defense blueprint that moves away from static text filtering toward a zero-trust execution model. FASA is structured into four sequential defense layers:
  6. Perception and Isolation (Input Boundary): Sanitizes multi-dimensional inputs and runs tools in ephemeral sandboxes.
  7. Decision and Control (Cognitive Boundary): Evaluates behavioral intent and enforces contextual instruction guardrails.
  8. Execution and Response (System Boundary): Correlates the agent's internal reasoning trace with actual system behavior to block mismatches.
  9. Governance and Evolution (Evolutionary Boundary): Uses automated red-teaming and threat intelligence to continuously update security policies.

The authors also introduce Project ClawGuard, an ongoing engineering effort to implement the FASA paradigm into a practical security platform for OpenClaw.

Figure 5. Architectural overview of the FASA.

Datasets

The authors note that their code and an associated dataset are hosted publicly on GitHub (at github.com/NY1024/ClawGuard). However, specific details regarding the dataset's size, composition, or collection methodology are not discussed in detail within the paper.

Key Insights and Ideas

  • The Danger of Context Compression (Instruction Amnesia): When agents process massive amounts of data (like long email threads), automatic context compression mechanisms can accidentally evict the user's original safety constraints (e.g., "Do not delete any emails"). This can lead to catastrophic autonomous failures, such as an agent wiping out an entire inbox.
  • Sequential Tool Attack Chains (STAC): Attackers can bypass single-endpoint security filters by tricking an agent into chaining multiple individually benign tools together (e.g., reading an SSH key, compressing it into a zip file, and then using an HTTP tool to upload it to an external server).
  • Persistent Soft Backdoors: By exploiting Retrieval-Augmented Generation (RAG) systems, multi-turn conversations can be used to inject malicious preferences directly into an agent's vector database, creating a persistent backdoor that triggers during future, unrelated tasks.
  • The Illusion of Local Security: Deploying an agent locally does not guarantee safety. OpenClaw's default behavior of running directly on host machines without containerization drastically amplifies the blast radius of any successful cognitive manipulation.
Figure 3. The Tri-layered Risk Taxonomy for autonomous agents, mapping theoretical vulnerabilities to observed OpenClaw ex- ploits.

Key Results

The paper primarily focuses on qualitative vulnerability mapping and architectural design rather than quantitative performance benchmarks. Key findings include:

  • Vulnerability Identification: The paper details CVE-2026-25253 (the "ClawJacked" vulnerability), an architectural flaw in OpenClaw's WebSocket gateway that allows attackers to steal authentication tokens and execute arbitrary RCE via malicious links.
  • Supply Chain Risks: The authors document real-world exploits within the "ClawHub" plugin marketplace, where unregulated third-party "Skills" were poisoned with malware to turn user devices into botnets.
  • FASA Framework Feasibility: The authors demonstrate that cross-layer verification (Reasoning-Action Correlation) can successfully intercept malicious workflows by identifying when an agent's system-level actions do not match its stated cognitive reasoning trace.

Limitations and Future Work

The primary limitation acknowledged in the paper is that the FASA framework is currently a theoretical blueprint. While the authors have initiated Project ClawGuard to realize this architecture, the implementation is in its early prototype stages. Fully scaling these defense modules to handle complex, multi-agent environments without introducing significant latency or breaking autonomous workflows remains an open engineering challenge. Future work will focus on completing the ClawGuard platform and validating its performance in diverse, real-world deployment scenarios.

Summary updated

BibTeX
@misc{ying2026uncovering,
  author = {Zonghao Ying and Xiao Yang and Siyang Wu and Yumeng Song and Yang Qu and Hainan Li and Tianlin Li and Jiakai Wang and Aishan Liu and Xianglong Liu},
  title = {{Uncovering Security Threats and Architecting Defenses in Autonomous Agents: A Case Study of OpenClaw}},
  year = {2026},
  eprint = {2603.12644},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2603.12644},
}
Figure