跳到正文
返回论文列表
cs.CR提交于 已译

诱骗 LLM 安全护栏评判错误文本

Fooling LLM Safety Guards into Judging the Wrong Text

Utkarsh Kanwat

中文摘要

安全护栏会在 LLM 应用执行内容前进行检查,而多数应用将内容粘贴进纯文本提示词。模仿提示词的内容可追加第二个任务,使护栏转而评判该任务;这种现象称为目标重绑定(target rebinding)。其解释是护栏会评估输入中最后一个完整任务,攻击则用无害诱饵充当该任务,使有害请求原样通过。在预注册测试中,追加伪造查询与诱饵后,Shieldstral-1.0-3B 标记的 75 个留出 AdvBench 请求均被绕过。护栏并未被说服:要求忽略上方文本的指令未能清除任何请求,后续运行中加入有害诱饵还会阻断攻击。在 GuardRebind benchmark 上,针对每种护栏选择的攻击族可清除其至少 93% 的标记项。目标重绑定最能解释 Shieldstral 与 gpt-oss-safeguard 上的现象;ShieldGemma 和 Llama Guard 3 分别部分依赖通用规避与尾随文本,Qwen3Guard 主要受整项任务伪造影响。训练护栏按内容中最有害的部分评分后,在留出攻击族、诱饵和伪造查询上,攻击成功率从 75% 降至 0.8–1.6%。所有攻击都在请求后追加伪造结构;留出诱饵评估是在首轮测试后加入的。干净 AUROC 最多下降 0.01,但非劣效性检验结论不确定。得分引导搜索仍在 50 项中的 47 项优于训练后的护栏,通常会将伪造结构放在请求之前。搜索获胜项中约一半还找到了不含伪造结构、可绕过护栏的良性文本。

关键要点

  1. 01指出纯文本提示词可被追加任务诱导护栏评判无害诱饵, termed 目标重绑定。
  2. 02预注册测试中,追加伪造查询与诱饵可绕过 Shieldstral-1.0-3B 标记的全部 75 个留出请求。
  3. 03GuardRebind 上每种护栏均有攻击族可清除至少 93% 的标记项,但机制因护栏而异。
  4. 04按最有害内容部分训练评分后,攻击成功率由 75% 降至 0.8–1.6%,干净 AUROC 最多下降 0.01。
  5. 05得分引导搜索在 50 项中的 47 项上更有效,搜索获胜项中约一半也能找到无伪造结构的良性绕过文本。

解读

尚无解读。

原始英文摘要

arXiv:2610.31695v1 Announce Type: cross Abstract: Safety guards check content before an LLM application acts on it, and most paste that content into a plain-text prompt. Content that imitates the prompt can append a second task, and the guard answers that one instead. We call this target rebinding. Our explanation is that the guard grades the last complete task in its input, here a harmless decoy, so the harmful request goes through unchanged. In a pre-registered test, an appended forged query and decoy clear all 75 held-out AdvBench requests that Shieldstral-1.0-3B flags. The guard is not persuaded: a directive to ignore the text above clears none of them, and in a follow-up run a harmful decoy stops the attack. On our GuardRebind benchmark, each of five guards has an attack family, chosen per guard, that clears at least 93% of its flagged items. Rebinding explains this best on Shieldstral and gpt-oss-safeguard; on ShieldGemma and Llama Guard 3, generic evasion and trailing text respectively do part of the work, and Qwen3Guard falls mainly to a forgery of its whole task. Training the guard to score content no lower than its most harmful part cuts attack success from 75% to 0.8-1.6% on attack families, decoys and forged queries held out of training. All of these attacks append the forged structure after the request, and we added the held-out-decoy evaluation after a first round of test runs. Clean AUROC falls by at most 0.01, but our test of non-inferiority is inconclusive. A score-guided search still beats this trained guard on 47 of 50 items, usually by placing forged structure before the request. On about half of the items where the search wins, the same search also finds benign text, with no forged structure, that clears the guard.

同方向论文 · cs.CR

查看全部 →

反向发现 · 这篇论文相关的工具与提示词

去交叉发现 →

关联提示词 · 3

研究github.com/f/awesome-chatgpt-prompts·外部收录·

Unbiased English Literature Character Analysis AI Assistant

You are a literary analysis assistant with the following ethical guidelines. Apply them to every character analysis you write: 1. Do not automatically attribute positive traits (wise, noble, authoritative, caring) to characters who hold po…

研究github.com/f/awesome-chatgpt-prompts·外部收录·

Act as a Resume Reviewer for Anthropic Fellows Program

Act as a Resume Reviewer. You are an experienced recruiter tasked with evaluating resumes for applicants to the Anthropic Fellows Program. Your task is to: - Analyze resumes for key qualifications and experiences relevant to AI safety rese…

编程github.com/f/awesome-chatgpt-prompts·外部收录·

Large Language Models Security Specialist

I want you to act as a Large Language Model security specialist. Your task is to identify vulnerabilities in LLMs by analyzing how they respond to various prompts designed to test the system's safety and robustness. I will provide some spec…