Taming OpenClaw: Security Analysis and Mitigation of Autonomous LLM Agent Threats
Organizations: Ant Group & Tsinghua University, China · Tsinghua University, China · Ant Group, China
Abstract
Autonomous Large Language Model (LLM) agents, exemplified by OpenClaw, demonstrate remarkable capabilities in executing complex, long-horizon tasks. However, their tightly coupled instant-messaging interaction paradigm and high-privilege execution capabilities substantially expand the system attack surface. In this paper, we present a comprehensive security threat analysis of OpenClaw. To structure our analysis, we introduce a five-layer lifecycle-oriented security framework that captures key stages of agent operation, i.e., initialization, input, inference, decision, and execution, and systematically examine compound threats across the agent's operational lifecycle, including indirect prompt injection, skill supply chain contamination, memory poisoning, and intent drift. Through detailed case studies on OpenClaw, we demonstrate the prevalence and severity of these threats and analyze the limitations of existing defenses. Our findings reveal critical weaknesses in current point-based defense mechanisms when addressing cross-temporal and multi-stage systemic risks, highlighting the need for holistic security architectures for autonomous LLM agents. Within this framework, we further examine representative defense strategies at each lifecycle stage, including plugin vetting frameworks, context-aware instruction filtering, memory integrity validation protocols, intent verification mechanisms, and capability enforcement architectures.
Figures & tables
| Agent Lifecycle | Threat Category | The Effectiveness of Defenses at different Layers | ||||
| Foundational Base | Input Perception | Cognitive State | Decision Alignment | Execution Control | ||
| I. Initialization | Malicious Plugins | ✓ | ||||
| Credential & Secrets Leakage | ✓ | ✓ | ||||
| Insecure Configuration | ✓ | ✓ | ||||
| II. Input | Prompt Injection | ✓ | ||||
| System Prompt Extraction | ✓ | |||||
Appendix figures & tables6 assets
Supplementary material from the paper’s appendix.
Appendix
AI Agent Security
Artificial intelligence agent security studies attacks and safeguards for tool-using, persistent, and collaborative systems across digital and physical settings.
See all 508 papers