螃蟹:黑盒设置下通过自动生成消耗资源进行LLM-DoS攻击
Crabs: Consuming Resource via Auto-generation for LLM-DoS Attack under Black-box Settings
AI总结:
本文提出AutoDoS,一种针对黑盒LLM的自动生成拒绝服务攻击算法,通过构建攻击树和长度木马绕过防御,显著放大响应延迟超250倍,导致严重资源消耗。
摘要:
大型语言模型(LLMs)在各种任务中表现出卓越的性能,但仍然容易受到外部威胁,特别是LLM拒绝服务(LLM-DoS)攻击。具体而言,LLM-DoS攻击旨在耗尽计算资源并阻断服务。然而,现有研究主要集中于白盒攻击,黑盒场景尚未得到充分探索。在本文中,我们引入了针对黑盒LLM的自动生成LLM-DoS(AutoDoS)攻击算法。AutoDoS构建了DoS攻击树,并通过扩展节点覆盖范围以在黑盒条件下实现有效性。通过可迁移性驱动的迭代优化,AutoDoS能够在一次提示中跨不同模型工作。此外,我们揭示嵌入长度木马(Length Trojan)使AutoDoS能够更有效地绕过现有防御。实验结果表明,AutoDoS显著放大了服务响应延迟超过250倍,导致GPU利用率和内存使用方面的严重资源消耗。我们的工作为LLM-DoS攻击和安全防御提供了新的视角。我们的代码可在https://github.com/shuita2333/AutoDoS获取。
英文摘要:
Large Language Models (LLMs) have demonstrated remarkable performance across diverse tasks yet still are vulnerable to external threats, particularly LLM Denial-of-Service (LLM-DoS) attacks. Specifically, LLM-DoS attacks aim to exhaust computational resources and block services. However, existing studies predominantly focus on white-box attacks, leaving black-box scenarios underexplored. In this paper, we introduce Auto-Generation for LLM-DoS (AutoDoS) attack, an automated algorithm designed for black-box LLMs. AutoDoS constructs the DoS Attack Tree and expands the node coverage to achieve effectiveness under black-box conditions. By transferability-driven iterative optimization, AutoDoS could work across different models in one prompt. Furthermore, we reveal that embedding the Length Trojan allows AutoDoS to bypass existing defenses more effectively. Experimental results show that AutoDoS significantly amplifies service response latency by over 250$\times\uparrow$, leading to severe resource consumption in terms of GPU utilization and memory usage. Our work provides a new perspective on LLM-DoS attacks and security defenses. Our code is available at https://github.com/shuita2333/AutoDoS.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。