arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2607.01277cs.CR
收藏

认知防火墙:一种主动、零信任、多门控的LLM安全框架

Cognitive Firewall: A Proactive, Zero-Trust, Multi-Gate Framework for LLM Safety

Roma Tre University(罗马第三大学);The University of Alabama(阿拉巴马大学)

Michele Guida, Ruslan Shikhhamzayev, Sindhuja Penchala, Stefano Iannucci, Jiacheng Li, Shahram Rahimi, Noorbakhsh Amiri Golilarz

AI总结:

提出认知防火墙框架,通过意图、零信任上下文、一致性和输出风险四个门控进行对话级安全评估,有效降低单轮、多轮、基于权威和人工制作的越狱攻击成功率。

摘要:

大型语言模型(LLM)可能通过多轮策略被诱导产生有害内容,其中没有单个用户消息明显不安全。现有的运行时安全措施通常将提示或响应作为孤立消息进行评估,这限制了它们恢复累积意图、验证声称的权威或检测跨对话分解的有害目标的能力。本文提出了认知防火墙,一种主动的运行时监督框架,在用户和受保护的目标模型之间插入一个独立的监督模型。该框架将安全评估分解为四个分类门控:意图门控,识别请求的操作目标;零信任上下文门控,将声称的角色和权限视为未经验证的证据;一致性门控,检测跨轮次的升级和分解;以及输出风险门控,在发布前检查候选响应。门控决策通过升级而非分数平均进行组合,允许任何置信的危险信号阻止交互,同时保留可审计的理由。在四个越狱基准测试和一个良性安全测试集上的实验表明,认知防火墙显著降低了单轮、多轮、基于权威和人工制作的攻击的成功率。它将三个攻击集的攻击成功率降低到2%或以下,在最困难的人工制作集上降低到14%,同时保持8%的过度拒绝率。这些结果表明,分解的、对话级别的监督可以提高LLM安全的主动遏制和可审计性。

英文摘要:

Large language models (LLMs) can be induced to produce harmful content through multi turn strategies in which no single user message appears clearly unsafe. Existing runtime safeguards commonly evaluate prompts or responses as isolated messages, which limits their ability to recover ac-cumulated intent, verify asserted authority, or detect harmful objectives decomposed across a dialogue. This paper presents the Cognitive Firewall, a proactive runtime oversight framework that interposes an independent oversight model between a user and a protected target mod l. The framework decomposes safety assessment into four categorical gates: an intent gate that identi-fies the operational objective of a request, a zero trust context gate that treats claimed roles and permissions as unverified evidence, a consistency gate that detects escalation and decomposition across turns, and an output risk gate that inspects candidate responses before release. Gate decisions are combined through escalation rather than score averaging, allowing any confident danger signal to block an interaction while preserving an auditable rationale. Experiments on four jailbreak benchmarks and a benign safety test set show that the Cognitive Firewall substantially reduces attack success across single turn, multi turn, authority based, and human crafted attacks. It lowers attack success to 2 percent or below on three attack sets and to 14 percent on the most difficult human crafted set, while maintaining an 8 percent over refusal rate. These results indicate that decomposed, conversation level oversight can improve proactive containment and auditability for LLM safety.

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

↑