arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2501.18617cs.CRcs.LG
收藏

DarkMind: 自定义大语言模型中的潜在推理链后门

DarkMind: Latent Chain-of-Thought Backdoor in Customized LLMs

Zhen Guo, Shanghao Shi, Shamim Yazdani, Ning Zhang, Reza Tourani

AI总结:

DarkMind是一种针对定制化大语言模型的潜在推理链后门攻击,通过操纵内部推理步骤实现隐蔽攻击,展示了高攻击成功率并揭示了推理层面安全威胁的紧迫性。

摘要:

随着个性化AI的迅速发展,配备推理链(COT)推理能力的定制化大语言模型(LLMs)现在驱动着数百万个AI代理。然而,其复杂的推理过程引入了新的且尚未被深入探索的安全漏洞。我们提出了DarkMind,一种新型的潜在推理层面后门攻击,通过操纵内部COT步骤而不改变用户查询来针对定制化LLMs。不同于以往基于提示的攻击,DarkMind通过潜在触发器在推理链中激活,使对抗性行为无需修改输入提示或需要访问模型参数。为了实现隐蔽性和可靠性,我们提出了即时和回顾两种触发类型,并将它们整合到一个统一的嵌入模板中,该模板管理触发依赖的激活。我们还提出了一种隐蔽优化算法以最小化语义漂移,并引入了一个自动化的对话启动器,以在不同领域中实现隐蔽激活。在八个涵盖算术、常识和符号领域的推理数据集上,使用五个LLMs进行的全面实验表明,DarkMind始终能够实现高攻击成功率。我们进一步研究了缓解这些风险的防御策略,并揭示了推理层面后门代表了重大但尚未被深入探索的威胁,强调了对稳健且具有推理意识的安全机制的需求。

英文摘要:

With the rapid rise of personalized AI, customized large language models (LLMs) equipped with Chain of Thought (COT) reasoning now power millions of AI agents. However, their complex reasoning processes introduce new and largely unexplored security vulnerabilities. We present DarkMind, a novel latent reasoning level backdoor attack that targets customized LLMs by manipulating internal COT steps without altering user queries. Unlike prior prompt based attacks, DarkMind activates covertly within the reasoning chain via latent triggers, enabling adversarial behaviors without modifying input prompts or requiring access to model parameters. To achieve stealth and reliability, we propose dual trigger types instant and retrospective and integrate them within a unified embedding template that governs trigger dependent activation, employ a stealth optimization algorithm to minimize semantic drift, and introduce an automated conversation starter for covert activation across domains. Comprehensive experiments on eight reasoning datasets spanning arithmetic, commonsense, and symbolic domains, using five LLMs, demonstrate that DarkMind consistently achieves high attack success rates. We further investigate defense strategies to mitigate these risks and reveal that reasoning level backdoors represent a significant yet underexplored threat, underscoring the need for robust, reasoning aware security mechanisms.

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

↑