arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.13527cs.CRcs.AI
收藏

利用结构化输出接口中的前缀树增强越狱攻击

Exploiting Prefix-Tree in Structured Output Interfaces for Enhancing Jailbreak Attacking

Wangxuan Institute of Computer Technology, Peking University(北京大学王选计算机研究所);Pattern Recognition Center, WeChat AI, Tencent Inc(腾讯公司微信AI模式识别中心)

Yanzeng Li, Yunfan Xiong, Jialun Zhong, Jinchao Zhang, Jie Zhou, Lei Zou

AI总结:

本文提出黑盒框架 AttackPrefixTree(APT),利用结构化输出接口和前缀树动态构造攻击前缀、操纵内部 logit,从而绕过 LLM 安全机制,并在基准上取得更高攻击成功率。

摘要:

Large Language Models(LLM,大语言模型)的兴起带来了重要应用,但也引入了严重的安全威胁,尤其是来自操纵输出生成的越狱攻击。这些攻击利用提示工程和 logit 操纵,引导模型生成有害内容,促使 LLM 提供商实施过滤和安全对齐策略。我们研究了 LLM 的安全机制及其近期应用,揭示了一种针对结构化输出接口的新威胁模型;该接口使攻击者能够在 LLM 生成过程中操纵内部 logit,并且只需要 API 访问权限。为证明该威胁模型,我们提出了一个名为 AttackPrefixTree(APT)的黑盒攻击框架。APT 利用结构化输出接口动态构建攻击模式。通过借助模型安全拒绝响应的前缀以及潜在有害输出,APT 可有效绕过安全措施。在基准数据集上的实验表明,该方法相比现有方法取得了更高的攻击成功率。本工作强调,LLM 提供商迫切需要增强安全协议,以应对由安全模式与结构化输出之间交互所产生的漏洞。

英文摘要:

The rise of Large Language Models (LLMs) has led to significant applications but also introduced serious security threats, particularly from jailbreak attacks that manipulate output generation. These attacks utilize prompt engineering and logit manipulation to steer models toward harmful content, prompting LLM providers to implement filtering and safety alignment strategies. We investigate LLMs' safety mechanisms and their recent applications, revealing a new threat model targeting structured output interfaces, which enable attackers to manipulate the inner logit during LLM generation, requiring only API access permissions. To demonstrate this threat model, we introduce a black-box attack framework called AttackPrefixTree (APT). APT exploits structured output interfaces to dynamically construct attack patterns. By leveraging prefixes of models' safety refusal response and latent harmful outputs, APT effectively bypasses safety measures. Experiments on benchmark datasets indicate that this approach achieves higher attack success rate than existing methods. This work highlights the urgent need for LLM providers to enhance security protocols to address vulnerabilities arising from the interaction between safety patterns and structured outputs.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑