[论文解读] Here Comes The AI Worm: Unleashing Zero-click Worms that Target GenAI-Powered Applications
本文介紹了 Morris II,這是首個零點接觸的 AI 蠕蟲,透過利用對抗性自複製提示在生成式 AI(GenAI)生態系統中傳播。它展示了此類蠕蟲如何自主複製、傳遞惡意載荷,並透過文字和影像輸入在代理之間傳播,成功入侵了 Gemini Pro、GPT-4.0 和 LLaVA 等模型,無論是在黑箱還是白箱環境下皆成立。
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.
研究动机与目标
- 探討攻擊者是否能開發出利用自主代理中 GenAI 模組的惡意軟體,進而對互聯的 GenAI 生態系統發動網絡攻擊。
- 探討是否可行建立自複製、攜帶載荷的提示,使 GenAI 模型在無需使用者互動的情況下自動傳播惡意程式碼。
- 評估此類蠕蟲在實際 GenAI 應用中的傳播與攻擊潛力,特別是在使用檢索增強生成(RAG)或動態執行流程的電子郵件助理等場景中。
- 評估對抗性提示在 GenAI 驅動系統中引發複製、惡意行為及跨代理傳播所帶來的安全風險。
提出的方法
- 設計對抗性自複製提示,使 GenAI 模型輸出與輸入提示完全相同的內容,從而實現遞歸式複製。
- 利用對抗性機器學習技術,將這些提示嵌入多種輸入類型(文字與影像)中,以避開檢測並確保執行。
- 透過利用依賴 GenAI 輸出的代理工作流程,發揮 GenAI 生態系統的連通性,實現基於跳躍的傳播至新代理。
- 在三種主要 GenAI 模型(Gemini Pro、GPT-4.0 和 LLaVA)上測試此蠕蟲,涵蓋黑箱與白箱訪問條件。
- 使用基於 RAG 的與依賴執行流程的應用架構作為攻擊面,以展示實際場景中的攻擊可行性。
- 監控代理與第三方服務(如 SMTP 伺服器)的互動,以偵測傳播模式並評估檢測可行性。
实验结果
研究问题
- RQ1能否設計出對抗性自複製提示,使 GenAI 模型輸出其自身輸入,從而實現自主複製?
- RQ2此類提示在多大程度上可嵌入文字與影像輸入中,以實現跨 GenAI 驅動代理的零點接觸傳播?
- RQ3在黑箱與白箱訪問模型下,此類蠕蟲在入侵 GenAI 生態系統方面的有效性如何?
- RQ4哪些關鍵系統因素(如模型架構、RAG 行為、執行流程)會影響此類蠕蟲的傳播與載荷傳遞?
- RQ5可採用哪些檢測與緩解策略,以實時識別並阻止此類惡意傳播模式?
主要发现
- Morris II 成功透過使模型原樣輸出輸入提示,實現了在 Gemini Pro、GPT-4.0 和 LLaVA 等多個 GenAI 模型上的自我複製。
- 該蠕蟲透過利用儲存並重用輸入回應的 RAG 系統,在 GenAI 驅動代理之間實現傳播,進而透過共享資料庫實現持久性擴散。
- 在依賴執行流程的應用中,蠕蟲透過注入改變下游任務執行的提示,操控代理行為,從而實現隱蔽的載荷傳遞。
- 傳播速率因模型敏感度與輸入類型而異,部分配置下影像提示展現出更高的隱蔽性與避開檢測的潛力。
- 透過監控與第三方服務(如 SMTP 伺服器或即時通訊平台)的異常互動模式,可實現對此類蠕蟲的檢測,顯示出大規模傳播的跡象。
- 防禦措施如非活躍 RAG 或停用自動資料儲存可降低傳播風險,但會帶來可用性與適應新資料趨勢能力的權衡。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。