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.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Reasoning length evaluation | 20 attack prompts | Avg Length4.83e+3 | 48 | |
| Reasoning Token Induction | Mixed Prompts (SimpleQA, SimpleBench, AIME2024, etc.) (test) | Mean Completion Tokens1.16e+4 | 31 | |
| Output Length Maximization | DoS Attack Evaluation Set (test) | Output Length1.64e+4 | 22 | |
| Denial of Service (DoS) Attack | Rep, Cod, and Req (test) | Average Output Length1.64e+4 | 18 | |
| Denial-of-Service Attack | Qwen2.5-14B-instruct (test) | Response Length8.19e+3 | 6 | |
| Denial-of-Service Attack | GPT-4o-mini 2024-07-18 (test) | Response Length1.64e+4 | 6 | |
| Denial-of-Service Attack | Ministral-8B-Instruct-2410 (test) | Response Length8.19e+3 | 6 |