arXiv:2510.10271cs.CRcs.AI2025-10中稿 · version被引 1

利用特殊标记劫持大模型,绕过安全限制并突破内容审查。

MetaBreak: Jailbreaking Online LLM Services via Special Token Manipulation

  • 通过操纵训练时的特殊标记构造攻击,实现对在线大模型的安全绕过。
  • 在有内容审核时,攻击成功率比现有方案高出11.6%至34.8%。
  • 与提示工程互补,可显著提升现有攻击方法的效果。

与来自现有语料库的普通标记不同,特殊标记是在大语言模型(LLMs)微调过程中人工创建的,用于标注结构化对话。作为训练数据的元信息,这些标记在指导模型生成连贯、上下文感知的回答中起关键作用。我们证明,特殊标记可被用于构建四种攻击原语,使恶意用户能可靠地绕过在线LLM服务的内部安全对齐机制,并同时规避最先进的外部内容审核系统。此外,我们发现应对该威胁极具挑战性,因为学术界建议的激进防御措施——如彻底移除特殊标记——实际效果不如预期。这是因为当特殊标记被语义相似的普通标记替换后,仍能在分词器嵌入空间中保持有效。我们系统评估了名为MetaBreak的方法,在实验室环境和商业LLM平台上的表现。无内容审核时,其越狱成功率与最先进提示工程方案相当;有内容审核时,其优于SOTA方案PAP和GPTFuzzer分别达11.6%和34.8%。由于策略根本不同,该方法可与提示工程协同增效:在PAP和GPTFuzzer中加入MetaBreak,越狱率分别提升24.3%和20.2%。

原文摘要 · Abstract (English)

Unlike regular tokens derived from existing text corpora, special tokens are artificially created to annotate structured conversations during the fine-tuning process of Large Language Models (LLMs). Serving as metadata of training data, these tokens play a crucial role in instructing LLMs to generate coherent and context-aware responses. We demonstrate that special tokens can be exploited to construct four attack primitives, with which malicious users can reliably bypass the internal safety alignment of online LLM services and circumvent state-of-the-art (SOTA) external content moderation systems simultaneously. Moreover, we found that addressing this threat is challenging, as aggressive defense mechanisms-such as input sanitization by removing special tokens entirely, as suggested in academia-are less effective than anticipated. This is because such defense can be evaded when the special tokens are replaced by regular ones with high semantic similarity within the tokenizer's embedding space. We systemically evaluated our method, named MetaBreak, on both lab environment and commercial LLM platforms. Our approach achieves jailbreak rates comparable to SOTA prompt-engineering-based solutions when no content moderation is deployed. However, when there is content moderation, MetaBreak outperforms SOTA solutions PAP and GPTFuzzer by 11.6% and 34.8%, respectively. Finally, since MetaBreak employs a fundamentally different strategy from prompt engineering, the two approaches can work synergistically. Notably, empowering MetaBreak on PAP and GPTFuzzer boosts jailbreak rates by 24.3% and 20.2%, respectively.

安全漏洞大模型攻击越狱特殊标记

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