TrapSuffix: 对抗对抗性后缀的主动防御在劫持中
Snare: Turning Adversarial Suffix Optimization into a No-Win Dilemma for Jailbreak Attackers
AI总结:
TrapSuffix通过主动防御机制,使攻击者陷入无赢困境,有效降低劫持攻击成功率并提高可追溯性。
摘要:
基于后缀的劫持攻击通过添加对抗性后缀,即一个短的令牌序列,来引导对齐的LLM产生不安全的输出。由于后缀是自由形式的文本,它们允许无限多种表面形式,使得劫持缓解困难。现有的大多数防御依赖于被动检测可疑后缀,而没有利用防御者固有的不对称能力来注入秘密并主动隐藏缺口。受此启发,我们采取了可控性导向的视角,并开发了一种主动防御,使攻击者陷入无赢困境:要么他们落入防御者设计的优化陷阱并无法生成有效的对抗性后缀,要么他们只有在生成带有明显、可追溯指纹的对抗性后缀时才能成功。我们提出了TrapSuffix,一种轻量级的微调方法,它在不改变推理管道的情况下将陷阱对齐行为注入到基础模型中。TrapSuffix通过重塑模型对对抗性后缀的响应景观将劫持尝试引向这两种结果。在多样化的基于后缀的劫持设置中,TrapSuffix将平均攻击成功率降低到低于0.01%,并实现了平均可追溯成功率87.9%,提供了强大的防御和可靠的可追溯性。它不引入推理时间的开销,并且带来可忽略的内存成本,仅需要平均15.87 MB的额外内存,而最先进的基于LLM的检测防御通常会带来1e4 MB级别的内存开销,同时能够与现有的基于过滤的防御相结合,提供互补的保护。
英文摘要:
Suffix-based jailbreak attacks append an adversarial suffix, i.e., a short token sequence, to steer aligned large language models (LLMs) into unsafe outputs. Since suffixes are free-form text, they admit endlessly many surface forms, making jailbreak mitigation difficult. Most existing defenses rely on passive detection of suspicious suffixes. This setting is inherently uncontrollable: when an adversarial suffix can "look like anything," defenders lack a stable target to characterize, and rules become brittle. Motivated by this, we take a controllability-oriented perspective and develop a proactive defense that nudges attackers into a no-win dilemma: either they fall into defender-designed optimization traps and fail to produce an effective adversarial suffix, or they can succeed only by generating adversarial suffixes that carry distinctive, traceable fingerprints. We propose Snare, a lightweight fine-tuning method that reshapes the attacker's optimization landscape by injecting trap-aligned attractors into the model. Across diverse models and attacks, Snare traces 87.90% of successful jailbreaks and reduces the untraceable attack success rate from 0.53 to 0.01. This matches the strongest LLM-based guardrails while requiring only 15.87 MB of additional memory, over 1000x less on average, and no inference-time overhead.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。