Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Crabs: Consuming Resource via Auto-generation for LLM-DoS Attack under Black-box Settings

About

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.

Yuanhe Zhang, Zhenhong Zhou, Wei Zhang, Xinyue Wang, Xiaojun Jia, Yang Liu, Sen Su• 2024

Related benchmarks

TaskDatasetResultRank
Reasoning length evaluation20 attack prompts
Avg Length4.83e+3
48
Reasoning Token InductionMixed Prompts (SimpleQA, SimpleBench, AIME2024, etc.) (test)
Mean Completion Tokens1.16e+4
31
Output Length MaximizationDoS Attack Evaluation Set (test)
Output Length1.64e+4
22
Denial of Service (DoS) AttackRep, Cod, and Req (test)
Average Output Length1.64e+4
18
Denial-of-Service AttackQwen2.5-14B-instruct (test)
Response Length8.19e+3
6
Denial-of-Service AttackGPT-4o-mini 2024-07-18 (test)
Response Length1.64e+4
6
Denial-of-Service AttackMinistral-8B-Instruct-2410 (test)
Response Length8.19e+3
6
Showing 7 of 7 rows

Other info

Code

Follow for update