[Paper Review] Here Comes The AI Worm: Unleashing Zero-click Worms that Target GenAI-Powered Applications
This paper introduces Morris II, the first zero-click AI worm that exploits adversarial self-replicating prompts to propagate through GenAI-powered ecosystems. It demonstrates how such worms can autonomously replicate, deliver malicious payloads, and spread across agents using text and image inputs, successfully compromising models like Gemini Pro, GPT-4.0, and LLaVA under both black-box and white-box settings.
In this paper, we show that when the communication between GenAI-powered applications relies on RAG-based inference, an attacker can initiate a computer worm-like chain reaction that we call Morris-II. This is done by crafting an adversarial self-replicating prompt that triggers a cascade of indirect prompt injections within the ecosystem and forces each affected application to perform malicious actions and compromise the RAG of additional applications. We evaluate the performance of the worm in creating a chain of confidential user data extraction within a GenAI ecosystem of GenAI-powered email assistants and analyze how the performance of the worm is affected by the size of the context, the adversarial self-replicating prompt used, the type and size of the embedding algorithm employed, and the number of hops in the propagation. Finally, we introduce the Virtual Donkey, a guardrail intended to detect and prevent the propagation of Morris-II with minimal latency, high accuracy, and a low false-positive rate. We evaluate the guardrail's performance and show that it yields a perfect true-positive rate of 1.0 with a false-positive rate of 0.015, and is robust against out-of-distribution worms, consisting of unseen jailbreaking commands, a different email dataset, and various worm usecases.
Motivation & Objective
- To investigate whether attackers can develop malware that exploits the GenAI component of autonomous agents to launch cyber-attacks across interconnected GenAI ecosystems.
- To explore the feasibility of creating self-replicating, payload-carrying prompts that manipulate GenAI models into propagating malicious code without user interaction.
- To evaluate the propagation and exploitation potential of such worms in real-world GenAI applications, particularly email assistants using retrieval-augmented generation (RAG) or dynamic execution flows.
- To assess the security risks posed by adversarial prompts that trigger replication, malicious behavior, and cross-agent propagation in GenAI-powered systems.
Proposed method
- Designing adversarial self-replicating prompts that induce GenAI models to output the exact input prompt, enabling recursive replication.
- Embedding these prompts into diverse input types—text and images—using adversarial machine learning techniques to evade detection and ensure execution.
- Exploiting the connectivity of GenAI ecosystems by leveraging agent workflows that depend on GenAI outputs, enabling hop-based propagation to new agents.
- Testing the worm on three major GenAI models: Gemini Pro, GPT-4.0, and LLaVA, under both black-box and white-box access conditions.
- Using RAG-based and execution-flow-dependent application architectures as attack surfaces to demonstrate real-world exploitation scenarios.
- Monitoring agent interactions with third-party services (e.g., SMTP servers) to detect propagation patterns and evaluate detection feasibility.
Experimental results
Research questions
- RQ1Can adversarial self-replicating prompts be crafted to induce GenAI models to output their own input, enabling autonomous replication?
- RQ2To what extent can such prompts be embedded into text and image inputs to enable zero-click propagation across GenAI-powered agents?
- RQ3How effective are these worms in compromising GenAI ecosystems under both black-box and white-box access models?
- RQ4What are the key system factors (e.g., model architecture, RAG behavior, execution flow) that influence the propagation and payload delivery of such worms?
- RQ5What detection and mitigation strategies can be employed to identify and block such malicious propagation patterns in real-time?
Key findings
- Morris II successfully replicated itself across multiple GenAI models, including Gemini Pro, GPT-4.0, and LLaVA, by inducing the models to output the input prompt verbatim.
- The worm achieved propagation across GenAI-powered agents by exploiting RAG-based systems that store and reuse incoming responses, enabling persistent spread through shared databases.
- In execution-flow-dependent applications, the worm manipulated agent behavior by injecting prompts that altered downstream task execution, enabling stealthy payload delivery.
- The propagation rate varied significantly based on model sensitivity and input type, with image-based prompts showing higher stealth and evasion potential in some configurations.
- Detection of such worms is feasible by monitoring anomalous interaction patterns with third-party services like SMTP servers or messaging platforms, indicating mass propagation.
- Countermeasures such as non-active RAG or disabling automatic data storage reduce propagation risk but introduce trade-offs in usability and adaptability to new data trends.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.