arXiv:2410.02916cs.CRcs.AI2024-10被引 6

利用安全模型误判,用短指令引发大规模服务中断

LLM Safeguard is a Double-Edged Sword: Exploiting False Positives for Denial-of-Service Attacks

  • 在用户提示中插入极短对抗性内容,诱使安全机制误拦正常请求
  • 仅30字符的恶意提示可让Llama Guard 3拦截超97%合法请求
  • 揭示安全机制对误报的脆弱性,适合关注模型鲁棒性的研究者

大型语言模型在开放部署中的安全性至关重要,催生了通过安全对齐或护栏机制保障伦理使用的方法。尽管针对安全机制‘漏报’(即假负)的越狱攻击已成研究热点,我们发现攻击者还可利用‘误报’(即假正)——即误导安全模型错误阻断正常内容——引发拒绝服务(DoS)攻击,影响普通用户。为填补这一被忽视的威胁空白,我们探索了多种攻击方式:在用户提示模板中注入简短对抗性提示,以及通过污染微调破坏服务器端模型。两种方法均能触发安全机制对客户端请求的拒绝。评估表明该威胁严重性贯穿多种场景。例如,在白盒对抗提示注入场景下,攻击者可借助优化过程自动生成约30字符长、看似无害的对抗提示,使Llama Guard 3对超过97%的用户请求产生误拦。这一发现揭示了大模型安全评估的新维度——对抗性鲁棒性对假正的敏感性。

原文摘要 · Abstract (English)

Safety is a paramount concern for large language models (LLMs) in open deployment, motivating the development of safeguard methods that enforce ethical and responsible use through safety alignment or guardrail mechanisms. Jailbreak attacks that exploit the \emph{false negatives} of safeguard methods have emerged as a prominent research focus in the field of LLM security. However, we found that the malicious attackers could also exploit false positives of safeguards, i.e., fooling the safeguard model to block safe content mistakenly, leading to a denial-of-service (DoS) affecting LLM users. To bridge the knowledge gap of this overlooked threat, we explore multiple attack methods that include inserting a short adversarial prompt into user prompt templates and corrupting the LLM on the server by poisoned fine-tuning. In both ways, the attack triggers safeguard rejections of user requests from the client. Our evaluation demonstrates the severity of this threat across multiple scenarios. For instance, in the scenario of white-box adversarial prompt injection, the attacker can use our optimization process to automatically generate seemingly safe adversarial prompts, approximately only 30 characters long, that universally block over 97% of user requests on Llama Guard 3. These findings reveal a new dimension in LLM safeguard evaluation -- adversarial robustness to false positives.

安全防护拒绝服务对抗攻击

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。