Security Attack and Defense Strategies for Autonomous Agent Frameworks: A Layered Review with OpenClaw as a Case Study
On the map: LLM agents and tool use → Agent threats, guardrails and governance
Abstract (arXiv)
Autonomous agent frameworks built upon large language models (LLMs) are evolving into complex, tool-integrated, and continuously operating systems, introducing security risks beyond traditional prompt-level vulnerabilities. As this paradigm is still at an early stage of development, a timely and systematic understanding of its security implications is increasingly important. Although a growing body of work has examined different attack surfaces and defense problems in agent systems, existing studies remain scattered across individual aspects of agent security, and there is still a lack of a layered review on this topic. To address this gap, this survey presents a layered review of security risks and defense strategies in autonomous agent frameworks, with OpenClaw as a case study. We organize the analysis into four security-relevant layers: the context and instruction layer, the tool and action layer, the state and persistence layer, and the ecosystem and automation layer. For each layer, we summarize its functional role, representative security risks, and corresponding defense strategies. Based on this layered analysis, we further identify that threats in autonomous agent frameworks may propagate across layers, from manipulated inputs to unsafe actions, persistent state contamination, and broader ecosystem-level impact. Finally, we highlight potential key challenges, including research imbalance across layers, the lack of long-horizon evaluation, and weak ecosystem trust models, and outline future directions toward more systematic and integrated defenses.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Agent threats, guardrails and governance, one of 16 directions in LLM agents and tool use. Builds on 32 of its 42 references that are in the map. First posted on arXiv 30 Apr 2026.
Builds on
32 of 42 references.
Closest ancestors · 15
Same direction, newest first
- 2026A Survey on Long-Term Memory Security in LLM Agents: Attacks, Defenses, and Governance Across the Memory Lifecycle17 Apr
- 2026Supply-Chain Poisoning Attacks Against LLM Coding Agent Skill Ecosystems3 Apr
- 2026Trojan's Whisper: Stealthy Manipulation of OpenClaw through Injected Bootstrapped Guidance20 Mar
- 2026From Assistant to Double Agent: Formalizing and Benchmarking Attacks on OpenClaw for Personalized Local AI Agent9 Feb
- 2026Memory Poisoning Attack and Defense on Memory Based LLM-Agents9 Jan
- 2025ChatInject: Abusing Chat Templates for Prompt Injection in LLM Agents26 Sep
- 2025PromptArmor: Simple yet Effective Prompt Injection Defenses21 Jul
- 2025From Prompt Injections to Protocol Exploits: Threats in LLM-Powered AI Agents Workflows29 Jun
- 2025Prompt Injection Attack to Tool Selection in LLM Agents28 Apr
- 2025Adaptive Attacks Break Defenses Against Indirect Prompt Injection Attacks on LLM Agents27 Feb
- 2025Red-Teaming LLM Multi-Agent Systems via Communication Attacks20 Feb
- 2025AGrail: A Lifelong Agent Guardrail with Effective and Adaptive Safety Detection17 Feb
3 more
Other references · 17
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
- 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,072
- 2023Generative Agents: Interactive Simulacra of Human Behaviorcited by 3,500
- 2023A Survey on Large Language Model based Autonomous Agentscited by 2,203
- 2023Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injectioncited by 1,339
- 2023Gorilla: Large Language Model Connected with Massive APIscited by 1,302
- 2023Prompt Injection attack against LLM-integrated Applicationscited by 568
- 2023Poisoning Web-Scale Training Datasets is Practicalcited by 276
- 2024ToolSword: Unveiling Safety Issues of Large Language Models in Tool Learning Across Three Stagescited by 77
- 2024Safeguarding Large Language Models: A Surveycited by 73
- 2024Hammer: Robust Function-Calling for On-Device Language Models via Function Maskingcited by 53
- 2025TrustRAG: Enhancing Robustness and Trustworthiness in Retrieval-Augmented Generationcited by 37
5 more
- 2025Defending Against Prompt Injection with DataFiltercited by 30
- 2025Indirect Prompt Injections: Are Firewalls All You Need, or Stronger Benchmarks?cited by 16
- 2024Attacks on Third-Party APIs of Large Language Modelscited by 14
- 2025Tool Preferences in Agentic LLMs are Unreliablecited by 13
- 2026PISmith: Reinforcement Learning-based Red Teaming for Prompt Injection Defensescited by 13
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026Uncovering Security Threats and Architecting Defenses in Autonomous Agents: A Case Study of OpenClaw
- 2026Taming OpenClaw: Security Analysis and Mitigation of Autonomous LLM Agent Threats
- 2026Security of OpenClaw Agents: Fundamentals, Attacks, and Countermeasures
- 2026A Security Analysis of the OpenClaw AI Agent Framework
- 2026Clawed and Dangerous: Can We Trust Open Agentic Systems?
- 2026Toward Securing AI Agents Like Operating Systems
- 2026Governance Architecture for Autonomous Agent Systems: Threats, Framework, and Engineering Practice
- 2025Agentic AI Security: Threats, Defenses, Evaluation, and Open Challenges