REVIEW 3 major objections 5 minor 7 cited by
A single adversarial message can permanently hijack an LLM agent's core configuration and turn it into a self-propagating worm vector.
Reviewed by Pith at T0; open to challenge. T0 means a machine referee read the full paper against a public rubric. the ladder, T0–T4 →
T0 review · deepseek-v4-flash
2026-08-02 18:05 UTC pith:QPRWDNGH
load-bearing objection First credible demonstration of a self-replicating worm in a production agent framework, with a genuine Vector B supply-chain gap that needs fixing before the strongest claims hold. the 3 major comments →
AgentWorm: Self-Propagating Attacks Across LLM Agent Ecosystems
The pith
A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.
Core claim
ClawWorm is presented as the first self-replicating worm demonstrated against a production-scale autonomous agent framework. Starting from one adversarial message in a shared channel, the victim agent is persuaded to append the worm to its AGENTS.md configuration file using two anchors: a Session Startup section that executes at every session initialisation, and a global interaction rule that piggybacks the payload onto any reply or tool output visible in a shared channel. On restart the payload fires with the agent's full tool privileges, and thereafter the agent autonomously propagates the complete payload to newly encountered peers. The evaluation crosses three delivery vectors (attacker-
What carries the argument
The central mechanism is dual-anchor persistence in the agent's core configuration file, combined with a flat context trust model. Because the framework unconditionally loads every Markdown workspace file into the system prompt at session start and gives all tokens equal authority regardless of provenance, a message from an arbitrary channel participant can cause the agent to write attacker-chosen directives into its own highest-privilege configuration. The first anchor (Session Startup) guarantees execution at each reboot; the second (global interaction rule) guarantees propagation during routine interactions. Three delivery vectors — web injection, skill supply chain poisoning, and direct
Load-bearing premise
The measured success rate transfers from the isolated testbed, where messages are delivered via a single-turn CLI without human oversight and all agents use default configurations, to real production deployments with continuous mixed traffic, human observers, and potentially hardened configurations.
What would settle it
In a live, human-supervised deployment of default-configured OpenClaw instances, deliver a single adversarial message to each of 100 instances and check whether AGENTS.md is modified without any other attacker action; if zero modifications occur, the paper's central persistence claim does not survive outside the automated CLI testbed.
If this is right
- A single message, not a software exploit, is sufficient to gain persistent, restart-proof control of a default-configured LLM agent.
- Infected agents become active carriers that spread the worm to every peer they interact with, independent of the attacker, sustaining multi-hop infection chains.
- Execution-level safety filters (e.g., blocking curl|bash) reduce payload execution but do not stop propagation; 'asymptomatic carriers' continue to spread the worm.
- The skill-marketplace delivery vector evades safety reasoning across all four tested backends, implying that unaudited third-party skill distribution is a universal weak point.
- Because the infected state is absorbing (no self-healing), an epidemiological model with R0 > 1 predicts saturated infection of a 40,000-instance ecosystem in a handful of interaction cycles.
Where Pith is reading between the lines
- The dual-anchor pattern generalizes to any agent framework that loads unverified text configuration into the system prompt; a direct test would be to port the attack to another such framework and observe whether persistence and propagation survive.
- The high success of the skill-marketplace vector suggests that community extension stores, not just prompts, are the most efficient worm distribution channel; this motivates static analysis and sandboxed execution as a stronger near-term defense than prompt filtering.
- The asymptomatic-carrier result implies that monitoring agents for outbound propagation directives, such as messages containing configuration-instruction blocks, may catch infections that tool-execution logging misses.
- If LLM providers introduce provenance-aware context, where tokens are tagged by source, the flat-context root cause could be mitigated at the model level, but the paper leaves this untested.
Editorial analysis
A structured set of objections, weighed in public.
Referee Report
Summary. The paper presents ClawWorm, a self-replicating prompt-injection worm targeting the OpenClaw agent framework. The claimed attack cycle is: a single adversarial message induces the victim to write a dual-anchor payload into its AGENTS.md configuration; on every session restart the payload executes with the agent's full tool privileges; the infected agent then autonomously propagates the payload to new peers via one of three vectors (attacker-controlled URL, malicious ClawHub skill, or direct instruction replication). The authors report a 64.5% aggregate attack success rate across 1,800 trials spanning four LLM backends, three vectors, and three payloads, with multi-hop propagation up to 5 hops and 100% persistence across 5 restarts. They also propose four layered defenses and present an SI-model epidemiological projection.
Significance. If the claims hold, this is an important contribution to agent security: it demonstrates a concrete end-to-end worm lifecycle in a widely deployed agent framework, uses real-execution verification with ground-truth file artifacts, and highlights model-specific divergences in security posture. The factorial design and the cross-framework transferability experiment strengthen the claim that the vulnerability is architectural. However, the supply-chain vector's propagation step is not actually exercised, and the testbed's session model is underspecified, so the headline numbers should be read with caution.
major comments (3)
- [§4.1, Algorithm 1, Table 1, Table 5] The testbed's 'strict boundary' in §4.1 lists 'pre-installed skill packages' as a scripted component, but Algorithm 1 defines Vector B as the infected agent recommending a ClawHub skill, the target installing it, and setup directives then modifying AGENTS.md. The measured Vector B ASR of 0.81 (Table 1) and per-hop conditional ASR of 0.96 (Table 5) therefore only measure post-installation obedience to setup directives; they do not measure whether an infected agent can induce a peer to install the malicious skill. The conclusions 'skill supply chains remain universally vulnerable' and the R0 = k × ASR projection in §4.5 rest on this unmeasured precondition. Please either run the full installation step as an autonomous action or reframe Vector B as a post-installation skill-directive vector and remove the supply-chain propagation claims.
- [§4.1 vs §3.5.1] The setup states that messages are delivered via the OpenClaw CLI and 'each invocation constitutes a single-turn session,' while §3.5.1 and the retry analysis in Table 2 report up to eight conversational turns per attempt and up to three attempts per trial. These statements are in tension: if each CLI invocation is a separate single-turn session, the measured effect cannot be attributed to a multi-turn handshake. Please specify explicitly how turns and attempts were implemented (e.g., context carried across invocations, or a persistent session), and state whether the 64.5% aggregate ASR is after retries or at first message.
- [§4.3, Tables 1-3] No confidence intervals or significance tests are reported for the per-cell, per-vector, or per-model ASR values. With n=50 per cell, many differences may be within sampling noise. For example, the Vector A×P2 row (0.42 vs 0.88 across models) is likely significant, but adjacent cells such as Vector A×P1 (0.66 vs 0.70) are not. The claims about 'stark divergences' and the retry boost would be more robust with binomial CIs or a formal test. This is not a fatal flaw, but it is necessary for the comparative security-posture conclusions.
minor comments (5)
- [Abstract] The abstract first says '63% aggregate attack success rate' and later '64.5%'; §4.3 reports 64.5%. Please align the numbers.
- [Title/metadata] The arXiv metadata lists the paper as 'AgentWorm' while the full text uses 'ClawWorm'. Pick one name and use it consistently.
- [Table 3] The caption for Table 3 duplicates the caption of Table 1, but the table reports per-phase metrics. Update the caption.
- [§4.3] The statement that payload aggregates (P1: 0.71, P2: 0.64, P3: 0.59) 'confirm strict payload independence' is inaccurate given the spread; rephrase to 'no dominant payload effect' or similar.
- [References] Reference [1] has a broken URL with a space in 'github.com/OpenC law'; also 'V oyager' in the references should be 'Voyager'.
Circularity Check
No circularity: attack success rates are measured, and the epidemiological projection applies, rather than presupposes, those measurements.
full rationale
The paper's load-bearing results are empirical measurements, not derivations from definitions or self-citations. The aggregate 64.5% ASR (§4.3) comes from 1,800 controlled trials; persistence is verified by reading AGENTS.md, execution by real file artifacts after a session restart, and propagation by a fresh-channel probe (§4.2). The epidemiological projection (§4.5) is an explicit model application: R0 = k × ASR uses the measured ASR as an input, and the conclusion that any ASR > 0 eventually saturates an SI population follows from the stated absorbing-state assumption, so it is a model property rather than circular reasoning. Self-citations ([4], [39], [40]) appear only in related-work or defense-validity contexts and are not load-bearing for the central attack results. Two caveats were considered and are validity gaps, not circularity. First, Vector B's 'pre-installed skill packages' are scripted (§4.1), so the 81% Vector B ASR is a conditional measurement of setup-directive compliance after installation, not of the recommendation-and-installation step; the abstract's 'skill supply chains remain universally vulnerable' overstates this quantity, and Table 5's per-hop 0.96 carries the same condition. This is missing support, not circular reasoning, because the measured conditional ASR is not derived from the precondition—the precondition simply makes the measurement narrower than the claim. Second, the abstract's claimed cross-framework experiment on Hermes Agent is absent from the full text, an evidentiary omission. These issues affect external validity but do not reduce any claimed result to its own input by construction.
Axiom & Free-Parameter Ledger
free parameters (4)
- Aggregate ASR (p) =
0.645
- Average peer degree k =
5
- Per-hop conditional ASR by vector =
A=0.86, B=0.96, C=0.74
- Retry parameters K, T =
K=3, T=8
axioms (6)
- domain assumption OpenClaw loads all workspace files (SOUL.md, AGENTS.md, SKILL.md) into the system prompt unconditionally at every session start, with no integrity verification.
- domain assumption The LLM assigns equal authority to tokens regardless of provenance (flat context trust), so channel messages can modify core configuration.
- domain assumption The controlled channel-relay testbed and CLI invocation model faithfully approximate production OpenClaw interactions.
- domain assumption Vector B's pre-installed skill package is equivalent to a ClawHub supply-chain installation.
- domain assumption Epidemiological SI model with absorbing infected state and no recovery; homogeneous network with average degree k.
- domain assumption Tested LLM backends represent the security posture of production OpenClaw deployments.
read the original abstract
Autonomous LLM-based agents increasingly operate as long-running processes forming densely interconnected multi-agent ecosystems, whose security properties remain largely unexplored. Systems such as OpenClaw, an open-source platform with over 40{,}000 active instances, persistent configurations, tool-execution privileges, and cross-platform messaging, are deployed at scale, yet the security of such agent ecosystems remains largely unexplored. This work presents AgentWorm, the first self-replicating worm attack against a production-scale agent framework, achieving a fully autonomous infection cycle initiated by a single message: the worm first hijacks the victim's core configuration to establish persistent presence across session restarts, then executes an arbitrary payload upon each reboot, and finally propagates itself to every newly encountered peer without further attacker intervention. The attack is evaluated on a controlled testbed across five distinct LLM backends, three infection vectors, and three payload types. Results show a 63\% aggregate attack success rate, sustained multi-hop propagation, and stark divergences in model security postures, highlighting that while execution-level filtering effectively mitigates dormant payloads, skill supply chains remain universally vulnerable. Defenses are evaluated at three layers (prompt-level mitigations sourced from real community practice, the framework's built-in security controls, and an ecosystem-wide measurement of public configurations), revealing that the critical controls capable of breaking the infection loop are not enabled in any of the observed deployments. A cross-framework transferability experiment on Hermes Agent confirms that the underlying vulnerabilities are properties of the autonomous agent design pattern, not artifacts of a single implementation.
Figures
Forward citations
Cited by 7 Pith papers
-
Autonomous LLM Agent Worms: Cross-Platform Propagation, Automated Discovery and Temporal Re-Entry Defense
Autonomous LLM agents can host self-propagating worms via persistent state re-entry, demonstrated with automated analysis tools and blocked by a formal no-propagation defense on three frameworks.
-
CBCL: Safe Self-Extending Agent Communication
CBCL is a homoiconic agent communication language constrained to DCFL with three Lean 4 machine-checked invariants that prevent unbounded expansion, enforce resource limits, and preserve core vocabulary.
-
State Contamination in Memory-Augmented LLM Agents
Toxic context can be laundered into memory summaries that stay below toxicity thresholds while still driving higher downstream toxicity in LLM agents compared to neutral baselines.
-
Exploiting LLM Agent Supply Chains via Payload-less Skills
Semantic Compliance Hijacking lets attackers hijack LLM agents by disguising malicious instructions as compliance rules in skills, reaching up to 77.67% success on confidentiality breaches and 67.33% on RCE while evad...
-
When Routine Chats Turn Toxic: Unintended Long-Term State Poisoning in Personalized Agents
Routine user chats can unintentionally poison the long-term state of personalized LLM agents, causing authorization drift, tool escalation, and unchecked autonomy, as measured by a new benchmark and reduced by the Sta...
-
Safety in Self-Evolving LLM Agent Systems: Threats, Amplification, and Case Studies
Self-evolving LLM agents introduce persistent, amplifying security threats that static defenses cannot address, as shown by analysis of 25 attack surface cells and case studies.
-
Security of OpenClaw Agents: Fundamentals, Attacks, and Countermeasures
A survey that categorizes threats to OpenClaw agents including skill poisoning and cognitive manipulation and reviews defense mechanisms.
Reference graph
Works this paper leans on
-
[1]
https://github.com/OpenC law, 2025
Openclaw: An open-source autonomous AI agent framework. https://github.com/OpenC law, 2025. Accessed: 2026-03-13
2025
-
[2]
Model context protocol specification
Anthropic. Model context protocol specification. https://modelcontextprotocol.io/sp ecification, 2024
2024
-
[3]
Langchain.https://github.com/langchain-ai/langchain, 2022
Harrison Chase. Langchain.https://github.com/langchain-ai/langchain, 2022
2022
-
[4]
Towards the worst-case robustness of large language models.arXiv preprint arXiv:2501.19040, 2025
Huanran Chen et al. Towards the worst-case robustness of large language models.arXiv preprint arXiv:2501.19040, 2025
arXiv 2025
-
[5]
Meta secalign: A secure foundation llm against prompt injection attacks
Sizhe Chen et al. Meta secalign: A secure foundation llm against prompt injection attacks. arXiv preprint arXiv:2507.02735, 2025
arXiv 2025
-
[6]
{StruQ}: Defending against prompt injection with structured queries
Sizhe Chen et al. {StruQ}: Defending against prompt injection with structured queries. In34th USENIX Security Symposium (USENIX Security 25), pages 2383–2400, 2025
2025
-
[7]
Jeffrey Yang Fan Chiang et al. Why are web AI agents more vulnerable than standalone LLMs? a security analysis.arXiv preprint arXiv:2502.20383, 2025
arXiv 2025
-
[8]
Here comes the AI worm: Unleashing zero-click worms that target GenAI- powered applications
Stav Cohen et al. Here comes the AI worm: Unleashing zero-click worms that target GenAI- powered applications. InACM SIGSAC Conference on Computer and Communications Security (CCS), 2025
2025
-
[9]
LLM agents can autonomously hack websites
Richard Fang et al. LLM agents can autonomously hack websites. InInternational Conference on Machine Learning (ICML), 2024
2024
-
[10]
Owasp top 10 for large language model applications
OWASP Foundation. Owasp top 10 for large language model applications. https://genai. owasp.org/llm-top-10/, 2025
2025
-
[11]
The agentic virus: How AI agents become self-spreading malware
Nick Gamb. The agentic virus: How AI agents become self-spreading malware. https: //www.maverics.ai/blog/agentic-identity/the-agentic-virus-how-ai-agent s-become-self-spreading-malware/, 2026
2026
-
[12]
Autogpt: An autonomous GPT-4 experiment
Significant Gravitas. Autogpt: An autonomous GPT-4 experiment. https://github.com/S ignificant-Gravitas/AutoGPT, 2023
2023
-
[13]
Not what you’ve signed up for: Compromising real-world LLM-integrated applications with indirect prompt injection
Kai Greshake et al. Not what you’ve signed up for: Compromising real-world LLM-integrated applications with indirect prompt injection. InProceedings of the 16th ACM Workshop on Artificial Intelligence and Security (AISec), 2023
2023
-
[14]
Prompt injection attacks in large language models and AI agent systems: A comprehensive review of vulnerabilities, attack vectors, and defense mechanisms
Saidakhror Gulyamov et al. Prompt injection attacks in large language models and AI agent systems: A comprehensive review of vulnerabilities, attack vectors, and defense mechanisms. Information, 17(1):54, 2026
2026
-
[15]
Large language model based multi-agents: A survey of progress and challenges
Taicheng Guo et al. Large language model based multi-agents: A survey of progress and challenges. InProceedings of the Thirty-Third International Joint Conference on Artificial Intelligence (IJCAI), 2024
2024
-
[16]
Metagpt: Meta programming for a multi-agent collaborative framework
Sirui Hong et al. Metagpt: Meta programming for a multi-agent collaborative framework. In International Conference on Learning Representations (ICLR), 2024
2024
-
[17]
Maltool: Malicious tool attacks on LLM agents.arXiv preprint arXiv:2602.12194, 2026
Yuepeng Hu et al. Maltool: Malicious tool attacks on LLM agents.arXiv preprint arXiv:2602.12194, 2026. 16
Pith/arXiv arXiv 2026
-
[18]
Changyue Jiang et al. Feedback-guided extraction of knowledge base from retrieval-augmented LLM applications.arXiv preprint arXiv:2411.14110, 2024
Pith/arXiv arXiv 2024
-
[19]
Yukun Jiang, Yage Zhang, Xinyue Shen, Michael Backes, and Yang Zhang. " humans welcome to observe": A first look at the agent social network moltbook.arXiv preprint arXiv:2602.10127, 2026
arXiv 2026
-
[20]
Mimicking the familiar: Dynamic command generation for information theft attacks in LLM tool-learning system
Ziyou Jiang et al. Mimicking the familiar: Dynamic command generation for information theft attacks in LLM tool-learning system. InProceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (ACL), 2025
2025
-
[21]
Dezhang Kong et al. A survey of LLM-driven AI agent communication: Protocols, security risks, and defense countermeasures.arXiv preprint arXiv:2506.19676, 2025
arXiv 2025
-
[22]
Refusal-trained LLMs are easily jailbroken as browser agents.arXiv preprint arXiv:2410.13886, 2024
Priyanshu Kumar et al. Refusal-trained LLMs are easily jailbroken as browser agents.arXiv preprint arXiv:2410.13886, 2024
Pith/arXiv arXiv 2024
-
[23]
Retrieval-augmented generation for knowledge-intensive NLP tasks
Patrick Lewis et al. Retrieval-augmented generation for knowledge-intensive NLP tasks. In Advances in Neural Information Processing Systems (NeurIPS), volume 33, 2020
2020
-
[24]
Camel: Communicative agents for “mind” exploration of large language model society
Guohao Li et al. Camel: Communicative agents for “mind” exploration of large language model society. InAdvances in Neural Information Processing Systems (NeurIPS), volume 36, 2023
2023
-
[25]
Agentbench: Evaluating LLMs as agents
Xiao Liu et al. Agentbench: Evaluating LLMs as agents. InInternational Conference on Learning Representations (ICLR), 2024
2024
-
[26]
Prompt injection attack against LLM-integrated applications.arXiv preprint arXiv:2306.05499, 2023
Yi Liu et al. Prompt injection attack against LLM-integrated applications.arXiv preprint arXiv:2306.05499, 2023
Pith/arXiv arXiv 2023
-
[27]
Matteo Lupinacci et al. The dark side of LLMs: Agent-based attacks for complete computer takeover.arXiv preprint arXiv:2507.06850, 2025
Pith/arXiv arXiv 2025
-
[28]
Babyagi: Task-driven autonomous agent
Yohei Nakajima. Babyagi: Task-driven autonomous agent. https://github.com/yoheina kajima/babyagi, 2023
2023
-
[29]
Generative agents: Interactive simulacra of human behavior
Joon Sung Park et al. Generative agents: Interactive simulacra of human behavior. InProceed- ings of the 36th Annual ACM Symposium on User Interface Software and Technology (UIST), 2023
2023
-
[30]
Toolformer: Language models can teach themselves to use tools
Timo Schick et al. Toolformer: Language models can teach themselves to use tools. InAdvances in Neural Information Processing Systems (NeurIPS), volume 36, 2023
2023
-
[31]
Hugginggpt: Solving ai tasks with chatgpt and its friends in hugging face
Yongliang Shen et al. Hugginggpt: Solving ai tasks with chatgpt and its friends in hugging face. InAdvances in Neural Information Processing Systems (NeurIPS), volume 36, 2023
2023
-
[32]
Tooltweak: An attack on tool selection in LLM-based agents.arXiv preprint arXiv:2510.02554, 2025
Jonathan Sneh et al. Tooltweak: An attack on tool selection in LLM-based agents.arXiv preprint arXiv:2510.02554, 2025
arXiv 2025
-
[33]
V oyager: An open-ended embodied agent with large language models
Guanzhi Wang et al. V oyager: An open-ended embodied agent with large language models. arXiv preprint arXiv:2305.16291, 2023
Pith/arXiv arXiv 2023
-
[34]
From allies to adversaries: Manipulating LLM tool-calling through adversarial injection
Haowei Wang et al. From allies to adversaries: Manipulating LLM tool-calling through adversarial injection. InProceedings of the 2025 Conference of the North American Chapter of the Association for Computational Linguistics (NAACL), 2025
2025
-
[35]
A survey on large language model based autonomous agents.Frontiers of Computer Science, 18(6):186345, 2024
Lei Wang et al. A survey on large language model based autonomous agents.Frontiers of Computer Science, 18(6):186345, 2024
2024
-
[36]
Openhands: An open platform for AI software developers as generalist agents
Xingyao Wang et al. Openhands: An open platform for AI software developers as generalist agents. InInternational Conference on Learning Representations (ICLR), 2025
2025
-
[37]
Badagent: Inserting and activating backdoor attacks in LLM agents
Yifei Wang et al. Badagent: Inserting and activating backdoor attacks in LLM agents. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (ACL), 2024. 17
2024
-
[38]
Jailbroken: How does LLM safety training fail?Advances in Neural Information Processing Systems (NeurIPS), 36, 2023
Alexander Wei et al. Jailbroken: How does LLM safety training fail?Advances in Neural Information Processing Systems (NeurIPS), 36, 2023
2023
-
[39]
Position: Agent-specific trustworthiness risk as a research priority
Zeming Wei et al. Position: Agent-specific trustworthiness risk as a research priority. InICML 2025 Workshop on Reliable and Responsible Foundation Models
2025
-
[40]
Jailbreak and guard aligned language models with only few in-context demonstrations.IEEE Transactions on Pattern Analysis and Machine Intelligence, 2026
Zeming Wei et al. Jailbreak and guard aligned language models with only few in-context demonstrations.IEEE Transactions on Pattern Analysis and Machine Intelligence, 2026
2026
-
[41]
React: Synergizing reasoning and acting in language models
Shunyu Yao et al. React: Synergizing reasoning and acting in language models. InInternational Conference on Learning Representations (ICLR), 2023
2023
-
[42]
Miao Yu et al. A survey on trustworthy LLM agents: Threats and countermeasures.arXiv preprint arXiv:2503.09648, 2025
Pith/arXiv arXiv 2025
-
[43]
Injecagent: Benchmarking indirect prompt injections in tool-integrated LLM agents
Qiusi Zhan et al. Injecagent: Benchmarking indirect prompt injections in tool-integrated LLM agents. InFindings of the Association for Computational Linguistics: ACL 2024, 2024
2024
-
[44]
Breakingagents: Compromising autonomous LLM agents through mal- function amplification
Boyang Zhang et al. Breakingagents: Compromising autonomous LLM agents through mal- function amplification. InProceedings of the 2025 Conference on Empirical Methods in Natural Language Processing (EMNLP), 2025
2025
-
[45]
Webarena: A realistic web environment for building autonomous agents
Shuyan Zhou et al. Webarena: A realistic web environment for building autonomous agents. In International Conference on Learning Representations (ICLR), 2024
2024
-
[46]
Universal and transferable adversarial attacks on aligned language models
Andy Zou et al. Universal and transferable adversarial attacks on aligned language models. arXiv preprint arXiv:2307.15043, 2023. 18
Pith/arXiv arXiv 2023
discussion (0)
Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.