arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2505.06643cs.CR
收藏

针对推理大语言模型的实用推理中断攻击

Practical Reasoning Interruption Attacks on Reasoning Large Language Models

Yu Cui, Cong Zuo

AI总结:

本文提出首个仅需109个 token 的实用推理中断攻击,利用新发现的 RTO 效应使 DeepSeek-R1 输出无效答案,并扩展实现不安全内容泄露的越狱攻击。

摘要:

推理大语言模型(RLLM)已在多种任务上展现出卓越性能,但同时也暴露出大量安全漏洞。这些漏洞大多集中于不安全内容的生成。然而,近期工作在 DeepSeek-R1 中发现了一种独特的“思维停止”漏洞:在对抗性提示下,模型的推理过程在系统层面停止,并产生空的最终答案。基于该漏洞,研究人员开发了一种名为推理中断攻击的新型提示注入攻击,并对其根本原因进行了初步分析。通过大量实验,我们验证了此前的分析,基于三项实验发现纠正了关键错误,并对导致该漏洞的根本原因给出了更严谨的解释。此外,现有攻击通常需要超过2,000个 token,带来显著开销、降低实用性,且容易被检测。为克服这些局限,我们提出首个实用的推理中断攻击。该攻击仅需109个 token 即可成功,其方式是利用我们新发现的“推理 token 溢出”(RTO)效应覆盖模型的最终答案,迫使其返回无效响应。实验结果表明,我们提出的攻击非常有效。此外,我们发现触发 RTO 的方法在 DeepSeek-R1 官方版本与常见非官方部署之间存在差异。作为 RTO 的扩展应用,我们还构建了一种新型越狱攻击,使推理 token 中的不安全内容能够转移到最终答案中,从而暴露给用户。我们的工作对提升 RLLM 的安全性具有重要意义。

英文摘要:

Reasoning large language models (RLLMs) have demonstrated outstanding performance across a variety of tasks, yet they also expose numerous security vulnerabilities. Most of these vulnerabilities have centered on the generation of unsafe content. However, recent work has identified a distinct "thinking-stopped" vulnerability in DeepSeek-R1: under adversarial prompts, the model's reasoning process ceases at the system level and produces an empty final answer. Building upon this vulnerability, researchers developed a novel prompt injection attack, termed reasoning interruption attack, and also offered an initial analysis of its root cause. Through extensive experiments, we verify the previous analyses, correct key errors based on three experimental findings, and present a more rigorous explanation of the fundamental causes driving the vulnerability. Moreover, existing attacks typically require over 2,000 tokens, impose significant overhead, reduce practicality, and are easily detected. To overcome these limitations, we propose the first practical reasoning interruption attack. It succeeds with just 109 tokens by exploiting our newly uncovered "reasoning token overflow" (RTO) effect to overwrite the model's final answer, forcing it to return an invalid response. Experimental results demonstrate that our proposed attack is highly effective. Furthermore, we discover that the method for triggering RTO differs between the official DeepSeek-R1 release and common unofficial deployments. As a broadened application of RTO, we also construct a novel jailbreak attack that enables the transfer of unsafe content within the reasoning tokens into final answer, thereby exposing it to the user. Our work carries significant implications for enhancing the security of RLLMs.

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

↑