arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.07878cs.CRcs.AI
收藏

重新审视延迟拒绝服务:攻击LLM服务框架,而非模型

Rethinking Latency Denial-of-Service: Attacking the LLM Serving Framework, Not the Model

Zhejiang University(浙江大学)

Tianyi Wang, Huawei Fan, Yuanchao Shu, Peng Cheng, Cong Wang

AI总结:

本文提出Fill和Squeeze攻击策略,通过影响调度器状态转换,攻击LLM服务框架而非模型,降低攻击成本并造成显著延迟。

摘要:

大型语言模型面临一种新兴且关键的威胁,即延迟攻击。由于LLM推理本质上成本高昂,即使轻微的延迟也会转化为显著的运营成本和严重的可用性风险。最近,越来越多的研究专注于通过构造输入来触发最坏情况输出长度的算法复杂度攻击。然而,我们报告了一个反直觉的发现,即这些算法延迟攻击在现代LLM服务系统中效果有限。我们揭示了系统层面的优化,如连续批处理,能够通过逻辑隔离来缓解对同时用户延迟的影响。为此,本文将重点从算法转向系统层,并引入一种新的Fill和Squeeze攻击策略,针对调度器的状态转换。'Fill'首先耗尽全局KV缓存以引发头部阻塞,而'Squeeze'迫使系统进入重复抢占。通过使用从简单纯文本提示到更复杂的提示工程的方法来操纵输出长度,并利用内存状态的侧信道探测,我们证明攻击可以在黑盒环境中以更低的成本进行。广泛的评估表明,与现有攻击相比,攻击成本降低了30-40%,平均延迟在Time to First Token上达到20-280倍,Time Per Output Token达到1.5-4倍。

英文摘要:

LLM inference is inherently expensive, even a modest slowdown can translate into substantial operating costs and severe availability risks. Recently, a growing body of research known as latency attacks focuses on crafting inputs to trigger worst-case output lengths. However, we report a contrary finding that these algorithmic-level latency attacks are largely ineffective against modern LLM serving systems. We reveal that system-level optimization such as continuous batching provides a logical isolation to mitigate contagious latency impact on co-located users. Thus, in this paper, we shift our focus from the algorithm to the system layer, and introduce a new Fill and Squeeze attack strategy targeting the state transition of the scheduler. ``Fill'' first exhausts the global KV cache to induce Head-of-Line blocking, while ``Squeeze'' forces the system into repetitive preemption. By manipulating output lengths using different attack prompts, and leveraging side-channel probing of memory status, we demonstrate that the attack can succeed in a practical black-box setting with much less cost. Extensive evaluations on vLLM indicate up to $75-742\times$ TTFT degradation relative to benign baselines and $1.5-4\times$ average slowdown on Time Per Output Token compared to existing attacks with 30-40% lower attack cost. Code: https://github.com/Phil-Fan/FS-attack

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑