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

AutoBackdoor: 通过LLM代理自动化后门攻击

AutoBackdoor: Automating Backdoor Attacks via LLM Agents

Singapore Management University(新加坡管理大学);The University of Melbourne(墨尔本大学);Fudan University(复旦大学)

Yige Li, Zhe Li, Wei Zhao, Nay Myat Min, Hanxun Huang, Xingjun Ma, Jun Sun

AI总结:

AutoBackdoor通过LLM代理自动化后门攻击,实现高效触发器生成和毒化数据构建,验证了对抗防御的脆弱性。

摘要:

后门攻击对大型语言模型(LLMs)的安全部署构成了严重威胁,使攻击者能够通过特定输入触发隐藏行为。然而,现有方法通常依赖于手工设计的触发器和静态数据管道,这些方法僵化、劳动密集且无法系统评估现代防御的鲁棒性。随着人工智能代理能力的不断增强,对更严谨、多样和可扩展的红色团队框架需求日益增长,这些框架能够真实模拟后门威胁并评估模型在对抗环境下的韧性。在本工作中,我们引入了AutoBackdoor,一个用于自动化后门注入的一般框架,涵盖触发器生成、毒化数据构建和模型微调的自主代理驱动流程。与先前方法不同,AutoBackdoor使用强大的语言模型代理生成语义连贯、上下文感知的触发器短语,使在任意主题上进行可扩展的毒化变得可能,仅需少量人工努力。我们在三种现实威胁场景下评估AutoBackdoor,包括偏见推荐、幻觉注入和同行评审操纵,以模拟广泛的攻击。在开源和商业模型上进行的实验,包括LLaMA-3、Mistral、Qwen和GPT-4o,表明我们的方法仅使用少量毒化样本即可实现超过90%的攻击成功率。更重要的是,我们发现现有防御措施往往无法缓解这些攻击,凸显了对更严谨和适应性评估技术的需求,这些技术如本文所探讨的代理驱动威胁。所有代码、数据集和实验配置将合并到我们的主要仓库:https://github.com/bboylyg/BackdoorLLM。

英文摘要:

Backdoor attacks pose a serious threat to the secure deployment of large language models (LLMs), enabling adversaries to implant hidden behaviors triggered by specific inputs. However, existing methods often rely on manually crafted triggers and static data pipelines, which are rigid, labor-intensive, and inadequate for systematically evaluating modern defense robustness. As AI agents become increasingly capable, there is a growing need for more rigorous, diverse, and scalable \textit{red-teaming frameworks} that can realistically simulate backdoor threats and assess model resilience under adversarial conditions. In this work, we introduce \textsc{AutoBackdoor}, a general framework for automating backdoor injection, encompassing trigger generation, poisoned data construction, and model fine-tuning via an autonomous agent-driven pipeline. Unlike prior approaches, AutoBackdoor uses a powerful language model agent to generate semantically coherent, context-aware trigger phrases, enabling scalable poisoning across arbitrary topics with minimal human effort. We evaluate AutoBackdoor under three realistic threat scenarios, including \textit{Bias Recommendation}, \textit{Hallucination Injection}, and \textit{Peer Review Manipulation}, to simulate a broad range of attacks. Experiments on both open-source and commercial models, including LLaMA-3, Mistral, Qwen, and GPT-4o, demonstrate that our method achieves over 90\% attack success with only a small number of poisoned samples. More importantly, we find that existing defenses often fail to mitigate these attacks, underscoring the need for more rigorous and adaptive evaluation techniques against agent-driven threats as explored in this work. All code, datasets, and experimental configurations will be merged into our primary repository at https://github.com/bboylyg/BackdoorLLM.

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

↑