Skip to main content
QUICK REVIEW

[论文解读] BackdoorAgent: A Unified Framework for Backdoor Attacks on LLM-based Agents

Yunhao Feng, Yige Li|arXiv (Cornell University)|Jan 8, 2026
Adversarial Robustness in Machine LearningComputer Science被引用 0
一句话总结

BackdoorAgent 引入一个面向阶段的、模块化框架,用于研究多步LLM代理中的后门威胁,在四个代理任务上进行基准测试,实验显示触发在规划、记忆和工具阶段的持续传播。

ABSTRACT

Large language model (LLM) agents execute tasks through multi-step workflows that combine planning, memory, and tool use. While this design enables autonomy, it also expands the attack surface for backdoor threats. Backdoor triggers injected into specific stages of an agent workflow can persist through multiple intermediate states and adversely influence downstream outputs. However, existing studies remain fragmented and typically analyze individual attack vectors in isolation, leaving the cross-stage interaction and propagation of backdoor triggers poorly understood from an agent-centric perspective. To fill this gap, we propose extbf{BackdoorAgent}, a modular and stage-aware framework that provides a unified, agent-centric view of backdoor threats in LLM agents. BackdoorAgent structures the attack surface into three functional stages of agentic workflows, including extbf{planning attacks}, extbf{memory attacks}, and extbf{tool-use attacks}, and instruments agent execution to enable systematic analysis of trigger activation and propagation across different stages. Building on this framework, we construct a standardized benchmark spanning four representative agent applications: extbf{Agent QA}, extbf{Agent Code}, extbf{Agent Web}, and extbf{Agent Drive}, covering both language-only and multimodal settings. Our empirical analysis shows that extit{triggers implanted at a single stage can persist across multiple steps and propagate through intermediate states.} For instance, when using a GPT-based backbone, we observe trigger persistence in 43.58\% of planning attacks, 77.97\% of memory attacks, and 60.28\% of tool-stage attacks, highlighting the vulnerabilities of the agentic workflow itself to backdoor threats. To facilitate reproducibility and future research, our code and benchmark are publicly available at GitHub.

研究动机与目标

  • 提供一个以代理为中心的框架,用于表征基于LLM的代理中的后门威胁。
  • 将攻击面分解为规划、记忆和工具阶段,以进行跨阶段分析。
  • 在四个具有代表性的代理应用(Agent QA、Agent Code、Agent Web、Agent Drive)的语言单模态和多模态设置中,提供标准化基准。
  • 量化跨阶段的触发持久性和传播,并评估不同骨干模型与防御的鲁棒性。

提出的方法

  • 定义一个含有三个阶段的回归代理工作流:规划、记忆检索和工具交互,并形式化中间产物在各步骤中的持久性。
  • 引入 BackdoorAgent,配备与阶段对齐的钩子,将触发器注入到规划、记忆或工具输出,并通过状态/上下文更新进行传播。
  • 对执行过程进行记录以日志轨迹(x_t, s_t, p_t, m_t, o_t),并支持可配置的攻击注入以实现可重复分析。
  • 提供一个由四项任务组成的标准化基准,涵盖语言单模态和多模态设置(Agent QA、Agent Code、Agent Web、Agent Drive)。
  • 使用七种有代表性的后门攻击,对不同骨干模型(开源与闭源)进行评估,评价指标包括 Clean ACC、ASR,以及受攻击下的 ACC。
Figure 1 : Conceptual illustration of backdoor propagation within a multi-stage agent workflow. A trigger introduced in a specific module can traverse Planning, Memory, and Tool stages through iterative state updates.
Figure 1 : Conceptual illustration of backdoor propagation within a multi-stage agent workflow. A trigger introduced in a specific module can traverse Planning, Memory, and Tool stages through iterative state updates.

实验结果

研究问题

  • RQ1在 Planning、Memory、Tools 阶段注入的后门触发器如何在多步代理工作流中传播?
  • RQ2哪些注入通道在不同代理任务和骨干模型中最有效?
  • RQ3更高的基线任务性能是否与对代理后门的鲁棒性相关,还是工作流属性更具决定性?
  • RQ4为独立LLM开发的基于概率的检测器能否在代理型、多步环境中有效检测后门?

主要发现

  • 在单一阶段植入的触发器可以跨多个步骤持续存在,并通过中间产物传播。
  • 以GPT为骨干时,触发持久率分别为 43.58%(规划)、77.97%(记忆)和 60.28%(Tools)。
  • 记忆通道攻击(PoisonedRAG、TrojanRAG)在多数情况下实现了非常高的ASR (>90%),同时保持可用的Clean ACC。
  • 在闭环工作流中,工具/环境通道攻击占主导,在Drive任务中对各骨干模型均实现高ASR (>80-90%)。
  • 更强的模型骨干并不一定对代理后门具备鲁棒性;脆弱性受工作流属性驱动,如产物持久性和反馈放大效应。
  • 基于单步、令牌概率信号的防御在代理设置中显示出有限的可分离性,提示需要轨迹级防御。
Figure 2 : BackdoorAgent Framework. BackdoorAgent exposes explicit interfaces at the planning, memory, and tool stages of an agent workflow, together with an instrumented runtime that supports configurable execution, attack injection, and trajectory logging. A benchmark layer instantiates representa
Figure 2 : BackdoorAgent Framework. BackdoorAgent exposes explicit interfaces at the planning, memory, and tool stages of an agent workflow, together with an instrumented runtime that supports configurable execution, attack injection, and trajectory logging. A benchmark layer instantiates representa

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。