arXiv:2603.15727cs.CRcs.AI2026-03被引 10

首个可自传播的LLM智能体蠕虫,能自动感染并扩散至其他智能体。

AgentWorm: Self-Propagating Attacks Across LLM Agent Ecosystems

  • 通过单条消息启动全自动感染循环,劫持配置实现持久驻留。
  • 在5个模型后端测试中达成63%成功率,支持多跳传播。
  • 漏洞源于自主智能体设计模式,现有防御均未启用关键防护层。

基于大语言模型的自主智能体正以长期运行进程的形式构成高度互联的多智能体生态系统,其安全特性尚未得到充分研究。如OpenClaw这类开源平台已部署超40,000个活跃实例,具备持久配置、工具执行权限及跨平台通信能力,但其安全机制仍不明朗。本文提出AgentWorm,首个针对生产级智能体框架的自复制蠕虫攻击,仅需一条消息即可启动全自动感染流程:首先劫持受害者核心配置以实现重启后持续驻留,随后每次重启执行任意载荷,并自动传播至新遇到的每个对等节点而无需进一步攻击者干预。在包含五种不同LLM后端、三种感染路径和三种载荷类型的受控测试环境中评估,结果显示63%的综合攻击成功率,支持持续多跳传播;同时揭示不同模型的安全姿态存在显著差异——尽管执行层面过滤可有效阻止休眠载荷,但技能供应链普遍易受攻击。在三个层级(提示层缓解策略、框架内置安全控制、公开配置生态测量)评估防御措施后发现,真正能切断感染链的关键控制在所有观测部署中均未启用。跨框架迁移实验在Hermes Agent上验证,底层漏洞属于自主智能体设计模式固有特性,而非单一实现缺陷。

原文摘要 · Abstract (English)

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.

智能体安全自传播攻击大模型漏洞多智能体系统

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。