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

删除、替换、修复与迁移:BARBICAN(一种用于MCP的分层提示注入网关)中的组件归因

Deletion Is Not Substitution: Component Attribution in a Layered Prompt-Injection Gateway for LLM Tool Calls

Iskenderun Technical University(伊斯基德伦理工大学)

İpek Abasıkeleş Turgut, Edip Gümüş

AI总结:

该研究以BARBICAN网关为对象,发现其仲裁阶段因输入分布与执行设计导致分类器失效,提出组件归因需结合类别平衡,删除实验应搭配替换实验。

摘要:

神经分类器在分层防御内部可能完全失效,且不会出现任何端到端的数值变动。我们在BARBICAN(一种用于语言模型工具调解的故障关闭网关)上验证了这一点:其仲裁阶段在一次完整记录的评估中,接收到由配置错误的分词器损坏的文本。纠正该配置错误后,该阶段的全语料库ROC曲线下面积(AUC)从0.392提升至0.855,系统召回率从80.67%降至80.34%;而一个回答“恶意”的存根模型得分80.77%,高于上述两者。检查该阶段的输入分布后,原因得以显现:上游路由为其提供的输入带中96.82%为恶意样本,且执行设计使得有罪裁决可阻断输入,而无罪裁决仅能通过一个狭窄分支放行。然而,删除该阶段会导致673次检测失效;用常量替换其裁决则会改变25000个决策中的12至140个。将一个现成分类器迁移至该仲裁阶段,该分类器对输入带的AUC为0.916,仅改变25000个决策中的16个。在远离测试数据的操作点下,针对此类检测器的评估显示,该网关在自身基准分布上表现领先,但当分布变化后则会落后。在我们早期的网关中,审查模型的输入带中92.94%为恶意样本,且常量裁决与审查模型的准确率相当。我们认为,若不考虑路由阶段所接收输入带的类别平衡,任何路由阶段的消融实验结果都无法解读,且删除实验需辅以替换实验。

英文摘要:

Prompt-injection defenses for LLM agents are commonly built as cascades of increasingly costly stages, and ablation studies evaluate their components by switching each stage off and counting the detections lost. In a cascade, however, stages are not independent: a stage's contribution depends on what is routed to it and how its verdicts are enforced, so deletion-based ablation can mislead. We test this on BARBICAN, a four-tier, fail-closed gateway for Model Context Protocol tool calls, developed in our group, that routes borderline inputs to a neural arbitrator. After reproducing its recorded evaluation exactly, we apply deletion, constant substitution, repair and transplant to its arbitration stage. The findings rest on over thirty instrumented runs over 25,000 prompts, two platforms, an independent check set and six versions from the system's history. Depending on how "switching off" is defined, deletion credits the stage with contributions that differ by more than an order of magnitude, whereas substitution shows that its verdicts can affect only a few inputs, all attacks. Neither repairing the stage nor replacing it with a much stronger classifier changed the system appreciably: its influence is set by its position, not its quality. An observation that bounds the decisions a routed stage can change explains this, and a cascade of public classifiers reproduces it whenever routing concentrates attacks. Treating constant verdicts as mutants, we derive a continuous-integration gate that detects a stage whose verdicts cannot reach the output and, in light of these results, offer a three-point roadmap for ablation studies.

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

↑