MetaBreak: 通过特殊标记操纵越狱在线LLM服务
MetaBreak: Jailbreaking Online LLM Services via Special Token Manipulation
AI总结:
提出利用特殊标记构造攻击原语,绕过LLM安全对齐和内容审核,并发现防御困难,实验显示MetaBreak在内容审核下优于现有方法。
摘要:
与从现有文本语料库中导出的常规标记不同,特殊标记是人为创建的,用于在大型语言模型(LLM)的微调过程中注释结构化对话。作为训练数据的元数据,这些标记在指导LLM生成连贯且上下文感知的响应方面起着关键作用。我们证明,特殊标记可以被利用来构建四种攻击原语,恶意用户可以通过这些原语可靠地绕过在线LLM服务的内部安全对齐,同时规避最先进的外部内容审核系统。此外,我们发现应对这一威胁具有挑战性,因为激进的防御机制——例如学术界建议的通过完全移除特殊标记进行输入清理——效果不如预期。这是因为当特殊标记被分词器嵌入空间中具有高语义相似性的常规标记替换时,这种防御可以被规避。我们在实验室环境和商业LLM平台上系统评估了我们的方法MetaBreak。在没有部署内容审核时,我们的方法实现了与基于提示工程的SOTA解决方案相当的越狱率。然而,当存在内容审核时,MetaBreak分别比SOTA解决方案PAP和GPTFuzzer高出11.6%和34.8%。最后,由于MetaBreak采用了与提示工程根本不同的策略,这两种方法可以协同工作。值得注意的是,在PAP和GPTFuzzer上增强MetaBreak分别使越狱率提高了24.3%和20.2%。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。