SLIP: 软标签机制和关键提取引导的基于CoT的API指令后门防御
SLIP: Soft Label Mechanism and Key-Extraction-Guided CoT-based Defense Against Instruction Backdoor in APIs
AI总结:
本文提出SLIP机制,通过软标签和关键提取引导CoT方法,有效对抗API中的指令后门,实验显示攻击成功率降低至25.13%,清洁准确率提升至87.15%。
摘要:
定制化的大语言模型(LLM)代理面临来自黑盒指令后门的严重安全威胁,恶意行为通过隐藏系统指令 covertly injected。尽管现有基于提示的防御可以检测到中毒输入,但一旦后门被激活,通常无法恢复正确输出。本文首先对LLM在指令后门下的行为进行了机理分析,揭示了两个关键现象:(1)认知覆盖,即后门触发器主导推理过程并抑制任务相关上下文;(2)异常语义相关性,触发器与攻击者指定的目标标签建立过强的语义关联。基于这些见解,我们提出了一个软标签机制和关键提取引导的基于CoT的API指令后门防御(SLIP)。为对抗认知覆盖,关键提取引导的链式思维(KCOT)明确指导模型提取任务相关关键词和短语,而非仅考虑单一触发器或整体文本语义。为中和触发器的异常语义相关性,软标签机制(SLM)量化语义相关性,并利用统计聚类过滤异常短语,再聚合可靠关键词和短语进行预测。大量实验表明,SLIP将平均攻击成功率降低到25.13%,清洁准确率提升到87.15%,并优于最先进的黑盒防御。
英文摘要:
Customized Large Language Model (LLM) agents face a critical security threat from black-box instruction backdoors, where malicious behaviors are covertly injected through hidden system instructions. Although existing prompt-based defenses can often detect poisoned inputs, they generally fail to recover correct outputs once the backdoor is activated. In this paper, we first conduct a mechanistic analysis of LLM behavior under instruction backdoors and reveal two pivotal phenomena: (1) cognitive override, in which backdoor triggers dominate the reasoning process and suppress task-relevant context, and (2) abnormal semantic correlation, where triggers establish excessively strong semantic associations with attacker-specified target labels. Based on these insights, we propose a $\textbf{S}$oft $\textbf{L}$abel mechanism and key-extraction-guided CoT-based defense against $\textbf{I}$nstruction backdoors in A$\textbf{P}$Is (SLIP). To counteract the cognitive override, the key-extraction-guided Chain-of-Thought (KCOT) explicitly guides the model to extract task-relevant keywords and phrases rather than only considering the single trigger or overall text semantics. To neutralize the trigger's abnormal semantic correlation, the soft label mechanism (SLM) quantifies semantic correlations and employs statistical clustering to filter anomalous phrases before aggregating reliable keywords and phrases for prediction. Extensive experiments show that SLIP reduces the average attack success rate to 25.13$\%$, improves clean accuracy to 87.15$\%$, and outperforms state-of-the-art black-box defenses.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。