Denial-of-service poisoning attacks against large language modelsDenial-of-Service Poisoning Attacks against Large Language Models
The researchers propose a poisoning-based denial-of-service attack (P-DoS) against large language models, where injecting a single poisoning sample designed for DoS can break the model's output length limit. Existing DoS attacks rely on typos or semantically meaningless prompts to trigger infinite output, but such inputs are difficult to implement through speech-to-text interfaces, and simply instructing the model to repeat output is limited by the maximum length of the SFT data. Experiments show that injecting one poisoning sample through OpenAI's fine-tuning API, at a cost of less than 1 US dollar, can attack GPT-4o and GPT-4o mini, making repeated output reach the maximum inference length of 16K tokens, compared with about 0.5K before poisoning. The authors also conducted ablation experiments on open-source LLMs and extended the method to LLM agent scenarios where the attacker can control both the fine-tuning dataset and the algorithm; code is released at https://github.com/sail-sg/P-DoS。