arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2512.07086cs.CRcs.AIcs.LG
收藏

ThinkTrap: 通过无限思考对黑盒LLM服务发起拒绝服务攻击

ThinkTrap: Denial-of-Service Attacks against Black-box LLM Services via Infinite Thinking

Shanghai Jiao Tong University(上海交通大学);Donghua University(东华大学)

Yunzhe Li, Jianan Wang, Hongzi Zhu, James Lin, Shan Chang, Minyi Guo

AI总结:

ThinkTrap是一种针对黑盒LLM服务的新型拒绝服务攻击方法,通过优化输入空间诱导无限生成,以最小token开销降低服务吞吐量甚至导致服务失败。

摘要:

大型语言模型(LLMs)已成为广泛应用中的基础组件,包括自然语言理解和生成、具身智能和科学发现。随着其计算需求的持续增长,这些模型越来越多地被部署为基于云的服务,使用户可以通过互联网访问强大的LLMs。然而,这种部署模式引入了一种新的威胁:通过无界推理的拒绝服务(DoS)攻击,其中攻击者设计特殊输入,使模型进入过度长或无限生成循环。这些攻击可以耗尽后端计算资源,降低或拒绝服务给合法用户。为了缓解此类风险,许多LLM提供商采用封闭源、黑盒设置来掩盖模型内部。在本文中,我们提出了ThinkTrap,一种新的输入空间优化框架,用于对LLM服务发起DoS攻击,即使在黑盒环境中。ThinkTrap的核心思想是首先将离散的标记映射到连续嵌入空间,然后在低维子空间中进行高效的黑盒优化,利用输入稀疏性。该优化的目标是识别出诱导扩展或非终止生成的对抗性提示,从而在最小的token开销下实现DoS。我们评估了所提出攻击在多个商业、封闭源LLM服务上的效果。我们的结果表明,即使远低于这些平台通常实施的严格请求频率限制,通常限制在每分钟10次请求(10 RPM),攻击也能将服务吞吐量降低到原始容量的1%,在某些情况下甚至导致完全服务失败。

英文摘要:

Large Language Models (LLMs) have become foundational components in a wide range of applications, including natural language understanding and generation, embodied intelligence, and scientific discovery. As their computational requirements continue to grow, these models are increasingly deployed as cloud-based services, allowing users to access powerful LLMs via the Internet. However, this deployment model introduces a new class of threat: denial-of-service (DoS) attacks via unbounded reasoning, where adversaries craft specially designed inputs that cause the model to enter excessively long or infinite generation loops. These attacks can exhaust backend compute resources, degrading or denying service to legitimate users. To mitigate such risks, many LLM providers adopt a closed-source, black-box setting to obscure model internals. In this paper, we propose ThinkTrap, a novel input-space optimization framework for DoS attacks against LLM services even in black-box environments. The core idea of ThinkTrap is to first map discrete tokens into a continuous embedding space, then undertake efficient black-box optimization in a low-dimensional subspace exploiting input sparsity. The goal of this optimization is to identify adversarial prompts that induce extended or non-terminating generation across several state-of-the-art LLMs, achieving DoS with minimal token overhead. We evaluate the proposed attack across multiple commercial, closed-source LLM services. Our results demonstrate that, even far under the restrictive request frequency limits commonly enforced by these platforms, typically capped at ten requests per minute (10 RPM), the attack can degrade service throughput to as low as 1% of its original capacity, and in some cases, induce complete service failure.

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

↑