Skip to content
LLMMedium

Morris II Worm: RAG-Based Attack

Occurred
Mar 5, 2024
Published
Unknown
Source
MITRE ATLAS
Sector
exercise

Summary

Researchers developed Morris II, a zero-click worm designed to attack generative AI (GenAI) ecosystems and propagate between connected GenAI systems. The worm uses an adversarial self-replicating prompt which uses prompt injection to replicate the prompt as output and perform malicious activity. The researchers demonstrate how this worm can propagate through an email system with a RAG-based assistant. They use a target system that automatically ingests received emails, retrieves past correspondences, and generates a reply for the user. To carry out the attack, they send a malicious email containing the adversarial self-replicating prompt, which ends up in the RAG database. The malicious instructions in the prompt tell the assistant to include sensitive user data in the response. Future requests to the email assistant may retrieve the malicious email. This leads to propagation of the worm due to the self-replicating portion of the prompt, as well as leaking private information due to the malicious instructions. Target: RAG-based e-mail assistant Actor: Stav Cohen, Ron Bitton, Ben Nassi Procedure: 1. The researchers use access to the publicly available GenAI model API that powers the target RAG-based email system. 2. The researchers test prompts on public model APIs to identify working prompt injections. 3. The researchers send an email containing an adversarial self-replicating prompt, or "AI worm," to an address used in the target email system. The GenAI email assistant automatically ingests the email as part of its normal operations to generate a suggested reply. The email is stored in the database used for retrieval augmented generation, compromising the RAG system. 4. When the email containing the worm is retrieved by the email assistant in another reply generation task, the prompt injection changes the behavior of the GenAI email assistant. 5. The self-replicating portion of the prompt causes the generated output to contain the malicious prompt, allowing the worm to propagate. 6. The malicious instructions in the prompt cause the generated output to leak sensitive data such as emails, addresses, and phone numbers. 7. Users of the GenAI email assistant may have PII leaked to attackers.

Deployers

  • RAG-based e-mail assistant

Tags

  • MITRE ATLAS
  • AML.CS0024

Classification

Category confidence: 90%
Severity confidence: 85%

Rationale: The incident involves a prompt injection attack on a RAG-based GenAI system causing data leakage and self-replication, fitting LLM security failures.

Classifier: Qwen/Qwen3.5-35B-A3B-FP8

Visit source