Clawdrain: Exploiting Tool-Calling Chains for Stealthy Token Exhaustion in OpenClaw Agents
On the map: LLM agents and tool use → Agent threats, guardrails and governance
Abstract (arXiv)
Modern generative agents such as OpenClaw - an open-source, self-hosted personal assistant with a community skill ecosystem, are gaining attention and are used pervasively. However, the openness and rapid growth of these ecosystems often outpace systematic security evaluation. In this paper, we design, implement, and evaluate Clawdrain, a Trojanized skill that induces a multi-turn "Segmented Verification Protocol" via injected SKILL.md instructions and a companion script that returns PROGRESS/REPAIR/TERMINAL signals. We deploy Clawdrain in a production-like OpenClaw instance with real API billing and a production model (Gemini 2.5 Pro), and we measure 6-7x token amplification over a benign baseline, with a costly, failure configuration reaching approximately 9x. We observe a deployment-only phenomenon: the agent autonomously composes general-purpose tools (e.g., shell/Python) to route around brittle protocol steps, reducing amplification and altering attack dynamics. Finally, we identify production vectors enabled by OpenClaw's architecture, including SKILL.md prompt bloat, persistent tool-output pollution, cron/heartbeat frequency amplification, and behavioral instruction injection. Overall, we demonstrate that token-drain attacks remain feasible in real deployments, but their magnitude and observability are shaped by tool composition, recovery behavior, and interface design.
Key facts. Cited by 14 papers in the map (data through 7 Oct 2026). Placed in Agent threats, guardrails and governance, one of 16 directions in LLM agents and tool use. Builds on 13 of its 24 references that are in the map. First posted on arXiv 1 Mar 2026.
Builds on
13 of 24 references.
Closest ancestors · 3
Same direction, newest first
- 2026Beyond Max Tokens: Stealthy Resource Amplification via Tool Calling Chains in LLM Agents16 Jan
- 2024Breaking Agents: Compromising Autonomous LLM Agents Through Malfunction Amplification30 Jul
- 2024The Dark Side of Function Calling: Pathways to Jailbreaking Large Language Models25 Jul
Other references · 10
- 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,072
- 2023A Survey on Large Language Model based Autonomous Agentscited by 2,203
- 2023Prompt Injection attack against LLM-integrated Applicationscited by 568
- 2024JailbreakBench: An Open Robustness Benchmark for Jailbreaking Large Language Modelscited by 494
- 2024Coercing LLMs to do and reveal (almost) anythingcited by 88
- 2025Multi-Agent Coordination across Diverse Applications: A Surveycited by 37
- 2025AlphaAgent: LLM-Driven Alpha Mining with Regularized Exploration to Counteract Alpha Decaycited by 36
- 2024Crabs: Consuming Resource via Auto-generation for LLM-DoS Attack under Black-box Settingscited by 33
- 2024An Engorgio Prompt Makes Large Language Model Babble oncited by 30
- 2025Optimizing Prompt Sequences using Monte Carlo Tree Search for LLM-Based Optimizationcited by 9
Built on by
Citing papers per year: 2026: 14.
14 papers.
Sort:
By area:
- 2026Mind Your HEARTBEAT! Claw Background Execution Inherently Enables Silent Memory Pollutioncited by 5
- 2026BraveGuard: From Open-World Threats to Safer Computer-Use Agentscited by 4
- 2026Resource Consumption Threats in Large Language Modelscited by 2
- 2026Red-Teaming Agent Execution Contexts: Open-World Security Evaluation on OpenClawcited by 2
- 2026When Claws Remember but Do Not Tell: Stealthy Memory Injection in Persistent Personal Agentscited by 2
- 2026Convergent Detour Hijacking: Task-Preserving Resource Amplification in Skill-Based LLM Agentscited by 2
- 2026Examining Users' Behavioural Intention to Use OpenClaw Through the Cognition--Affect--Conation Frameworkcited by 1
- 2026When Routine Chats Turn Toxic: Unintended Long-Term State Poisoning in Personalized Agentscited by 1
- 2026Security of OpenClaw Agents: Fundamentals, Attacks, and Countermeasurescited by 1
- 2026Understanding and mitigating the risks of OpenClaw for non-technical users: A practical guide with Skillcited by 0
- 2026The Claws in Plain Sight: Unauthorized Context Disclosure through LLM Agent Tool Callscited by 0
- 2026SkillBloat: Token Amplification Attacks via Skill Injection in LLM Coding Agentscited by 0
- 2026Cheap to Hypothesize, Costly to Verify: The Defense Surface of Agentic Vulnerability Discovery28 Sep 2026
- 2026Persistent Billable State: Denial-of-Wallet Attacks and Defenses in Tool-Calling LLM Agents23 Sep 2026
- 2026SkillBloat: Token Amplification Attacks via Skill Injection in LLM Coding Agents22 Aug 2026
- 2026The Claws in Plain Sight: Unauthorized Context Disclosure through LLM Agent Tool Calls21 Aug 2026
- 2026Convergent Detour Hijacking: Task-Preserving Resource Amplification in Skill-Based LLM Agents12 Aug 2026
- 2026When Claws Remember but Do Not Tell: Stealthy Memory Injection in Persistent Personal Agents6 Jul 2026
- 2026Understanding and mitigating the risks of OpenClaw for non-technical users: A practical guide with Skill9 Jun 2026
- 2026BraveGuard: From Open-World Threats to Safer Computer-Use Agents31 May 2026
- 2026Security of OpenClaw Agents: Fundamentals, Attacks, and Countermeasures25 May 2026
- 2026Red-Teaming Agent Execution Contexts: Open-World Security Evaluation on OpenClaw11 May 2026
- 2026When Routine Chats Turn Toxic: Unintended Long-Term State Poisoning in Personalized Agents7 May 2026
- 2026Mind Your HEARTBEAT! Claw Background Execution Inherently Enables Silent Memory Pollution24 Mar 2026
- 2026BraveGuard: From Open-World Threats to Safer Computer-Use Agentscited by 4
- 2026Red-Teaming Agent Execution Contexts: Open-World Security Evaluation on OpenClawcited by 2
- 2026When Claws Remember but Do Not Tell: Stealthy Memory Injection in Persistent Personal Agentscited by 2
- 2026Convergent Detour Hijacking: Task-Preserving Resource Amplification in Skill-Based LLM Agentscited by 2
- 2026When Routine Chats Turn Toxic: Unintended Long-Term State Poisoning in Personalized Agentscited by 1
- 2026Security of OpenClaw Agents: Fundamentals, Attacks, and Countermeasurescited by 1
- 2026The Claws in Plain Sight: Unauthorized Context Disclosure through LLM Agent Tool Callscited by 0
- 2026SkillBloat: Token Amplification Attacks via Skill Injection in LLM Coding Agentscited by 0
- 2026Persistent Billable State: Denial-of-Wallet Attacks and Defenses in Tool-Calling LLM Agentscited by 0
- 2026Cheap to Hypothesize, Costly to Verify: The Defense Surface of Agentic Vulnerability Discoverycited by 0
- 2026Cheap to Hypothesize, Costly to Verify: The Defense Surface of Agentic Vulnerability Discovery28 Sep 2026
- 2026Persistent Billable State: Denial-of-Wallet Attacks and Defenses in Tool-Calling LLM Agents23 Sep 2026
- 2026SkillBloat: Token Amplification Attacks via Skill Injection in LLM Coding Agents22 Aug 2026
- 2026The Claws in Plain Sight: Unauthorized Context Disclosure through LLM Agent Tool Calls21 Aug 2026
- 2026Convergent Detour Hijacking: Task-Preserving Resource Amplification in Skill-Based LLM Agents12 Aug 2026
- 2026When Claws Remember but Do Not Tell: Stealthy Memory Injection in Persistent Personal Agents6 Jul 2026
- 2026BraveGuard: From Open-World Threats to Safer Computer-Use Agents31 May 2026
- 2026Security of OpenClaw Agents: Fundamentals, Attacks, and Countermeasures25 May 2026
- 2026Red-Teaming Agent Execution Contexts: Open-World Security Evaluation on OpenClaw11 May 2026
- 2026When Routine Chats Turn Toxic: Unintended Long-Term State Poisoning in Personalized Agents7 May 2026
- 2026Mind Your HEARTBEAT! Claw Background Execution Inherently Enables Silent Memory Pollutioncited by 5
- 2026Resource Consumption Threats in Large Language Modelscited by 2
- 2026Examining Users' Behavioural Intention to Use OpenClaw Through the Cognition--Affect--Conation Frameworkcited by 1
- 2026Understanding and mitigating the risks of OpenClaw for non-technical users: A practical guide with Skillcited by 0
- 2026Understanding and mitigating the risks of OpenClaw for non-technical users: A practical guide with Skill9 Jun 2026
- 2026Mind Your HEARTBEAT! Claw Background Execution Inherently Enables Silent Memory Pollution24 Mar 2026
- 2026Resource Consumption Threats in Large Language Models17 Mar 2026
- 2026Examining Users' Behavioural Intention to Use OpenClaw Through the Cognition--Affect--Conation Framework12 Mar 2026
Similar, not cited
Close in wording, no citation either way
- 2026OpenClaw PRISM: A Zero-Fork, Defense-in-Depth Runtime Security Layer for Tool-Augmented LLM Agents
- 2026Trojan's Whisper: Stealthy Manipulation of OpenClaw through Injected Bootstrapped Guidance
- 2026ClawTrap: A MITM-Based Red-Teaming Framework for Real-World OpenClaw Security Evaluation
- 2026Understanding and Evaluating Claw-like Agent Security Through a Computer-Systems Lens
- 2026Your Agent, Their Asset: A Real-World Safety Analysis of OpenClaw
- 2026Uncovering Security Threats and Architecting Defenses in Autonomous Agents: A Case Study of OpenClaw
- 2026A Security Analysis of the OpenClaw AI Agent Framework
- 2026From Assistant to Double Agent: Formalizing and Benchmarking Attacks on OpenClaw for Personalized Local AI Agent