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

超越提示:通过模拟审核轨迹越狱函数调用大语言模型

Beyond the Prompt: Jailbreaking Function-Calling LLMs via Simulated Moderation Traces

Junlong Liu, Haobo Wang, Weiqi Luo, Xiaojun Jia

AI总结:

针对函数调用大语言模型的结构性漏洞,提出基于模拟审核轨迹的黑盒攻击框架SMT,通过多轮交互绕过安全约束,在多个商业模型上实现高攻击成功率。

摘要:

越狱攻击仍然是大语言模型(LLMs)安全部署的关键威胁。虽然先前的工作主要研究了提示级别的攻击和防御,但我们表明,这种以提示为中心的范式忽略了有状态、函数调用环境中的结构性漏洞。在此类应用中,开发者定义的架构、结构化参数和不可信的工具输出被交织到单个共享模型上下文中。这种架构通过模糊可信控制逻辑与不可信数据之间的边界来扩大攻击面,允许对抗性意图分布在多轮执行路径中。我们通过SMT(一种基于模拟审核轨迹的黑盒攻击框架)利用这一架构缺陷。与纯提示交互不同,SMT构建了一个模拟合法审核审计工作流的多轮轨迹。在此轨迹中,一个虚构的审核框架以红队测试为借口来引发有害生成。随后的验证反馈将安全拒绝视为执行失败,促使改进逐渐削弱模型的安全约束,最终触发有害输出。对来自五个不同提供商的知名商业LLM在两个标准化安全基准上的广泛实证评估表明,SMT在保持接近最少查询数量的同时,始终实现最高的平均攻击成功率和HarmScore,显著优于现有基线。这些发现表明,仅靠提示级别的净化根本不足以防御启用工具的LLM系统,并突显了对架构、参数、工具输出和累积对话状态进行上下文感知验证的迫切需求。代码可从此https URL获取。

英文摘要:

Jailbreak attacks remain a critical threat to the safe deployment of large language models (LLMs). While prior work has primarily studied attacks and defenses at the prompt level, we show that this prompt-centric paradigm overlooks a structural vulnerability in stateful, function-calling environments. In such applications, developer-defined schemas, structured arguments, and untrusted tool outputs are interleaved into a single shared model context. This architecture expands the attack surface by blurring the boundary between trusted control logic and untrusted data, allowing adversarial intent to be distributed across a multi-turn execution path. We exploit this architectural flaw through SMT, a black-box attack framework based on Simulated Moderation Traces. Departing from purely prompt-based interactions, SMT constructs a multi-turn trajectory that simulates a legitimate moderation-auditing workflow. Within this trajectory, a fabricated moderation frame leverages red-team testing as a pretext to elicit harmful generations. The subsequent validation feedback treats safety refusals as execution failures, prompting refinements that gradually weaken the model's safety constraints and ultimately trigger harmful outputs. Extensive empirical evaluations on prominent commercial LLMs from five different providers across two standardized safety benchmarks show that SMT consistently achieves the highest average attack success rate and HarmScore while requiring a near-minimal number of queries, substantially outperforming existing baselines. These findings demonstrate that prompt-level sanitization alone is fundamentally insufficient for defending tool-enabled LLM systems and highlight the urgent need for context-aware validation across schemas, arguments, tool outputs, and accumulated conversation state. The code is available at https://github.com/liujlong27/SMT.

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

↑