Skip to content

AgentWorm: A Self-Replicating Attack Across the LLM Agent EcosystemAgentWorm: Self-Propagating Attacks Across LLM Agent Ecosystems

arXiv· arXiv:2603.15727· Yihao Zhang, Zeming Wei, Xiaokun Luan, Chengcan Wu, Zhixin Zhang, Jiangrong Wu, Haolin Wu, Huanran Chen, Jun Sun, Meng SunPeking University; Sun Yat-sen University; Wuhan University; Tsinghua University; Singapore Management UniversityIndexed by this site · 23 days ago· Originally publishedSelected AttacksSelectedAttention41

Translation in progress — untranslated text is omitted.

Quick read

Attacks

Based on the paper PDF (AI-generated); refer to the original

AI summaryResearchers 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.

Questions
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.
Methods
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.
Experiments and results
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.
Limitations and future work
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.
Why it was selectedThe 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.

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

Read originalarxiv.org