AgentWorm: A Self-Replicating Attack Across the LLM Agent EcosystemAgentWorm: Self-Propagating Attacks Across LLM Agent Ecosystems
Translation in progress — untranslated text is omitted.
Researchers propose AgentWorm, a self-replicating worm attack against the production-grade LLM agent framework OpenClaw, achieving an overall attack success rate of 63% across 2,250 trials spanning five models, three infection vectors, and three payload types. The attack first writes the payload into the victim's AGENTS.md and injects global interaction rules, forming dual-anchor persistence that survives session restarts; the infected agent then automatically passes it to newly encountered peers during everyday conversations or tool calls, with multi-hop propagation verified up to 5 hops. The skill supply chain vector achieves an aggregated attack success rate of 82% across all tested models, while web injection and direct instruction copying vary considerably by model. Sandbox isolation can reduce the overall attack success rate to 0, but none of the publicly indexed configurations enable sandboxing; prompt-layer defenses at best reduce the overall attack success rate from 0.65 to 0.37. The researchers also adapted the supply chain payload to the independently developed Hermes Agent, obtaining an aggregated attack success rate of 0.57, and argue that the vulnerability stems from the agent architectural pattern rather than a single implementation.
- Autonomous LLM agents are forming densely interconnected multi-agent ecosystems (e.g., OpenClaw with over 40,000 active instances), but the threat of cross-instance self-replicating worm propagation has not yet been studied in real production-grade ecosystems, and existing work covers only simulated or narrow-scope environments.
- AgentWorm uses three vectors (Web injection, skill supply chain poisoning, direct instruction replication) to induce victim agents to write the payload into the core configuration AGENTS.md, forming dual-anchor persistence, automatically executing after restart and autonomously propagating during everyday interactions; a 3×3 full factorial evaluation is conducted on 5 LLM backends, and defenses at three layers—prompt-level, framework-built-in, and ecosystem measurement—are tested.
- Overall ASR across 2,250 trials is 63%, Vector B aggregate ASR 0.82; the multi-hop experiment goes up to 5 hops, and Vector C's chain length is limited by semantic degradation; sandbox isolation reduces ASR to 0, but none of the 82 public configurations enable it; after adaptation on Hermes Agent the overall ASR is 0.57.
- The authors note: the adversarial prompts rely on fixed templates, with no fine-grained ablation; the testbed simplifies the real communication environment, and real propagation may be slower. The experiments cover 5 LLM backends with n=50 per cell, persistence and multi-hop experiments with n=10 per cell, and transfer experiments with n=20 per payload.
The 63% attack success rate measured on OpenClaw and the propagation chain of up to 5 hops provide a quantitative baseline for evaluating the configuration trust boundaries of self-hosted agent frameworks.
Related events and news
0 events · 1 news mentions
News that mentions this paper
- OpenAI Alignment Researchcites the paper's id or linkOpenAI 披露可自我复制的提示注入,基于 GPT-5.4-mini 与 GPT-5.5 内部检查点
Zhang, Y., et al. (2026).AgentWorm: Self-Propagating Attacks Across LLM Agent Ecosystems. arXiv preprint.