[Paper Review] BackdoorAgent: A Unified Framework for Backdoor Attacks on LLM-based Agents
BackdoorAgent introduces a stage-aware, modular framework to study backdoor threats in multi-step LLM agents, with a benchmark across four agent tasks and experiments showing trigger persistence across planning, memory, and tool stages.
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.
Motivation & Objective
- Provide an agent-centric framework to characterize backdoor threats in LLM-based agents.
- Decompose the attack surface into planning, memory, and tool stages for cross-stage analysis.
- Deliver a standardized benchmark across four representative agent applications (Agent QA, Agent Code, Agent Web, Agent Drive) in language-only and multimodal settings.
- Quantify trigger persistence and propagation across stages and assess robustness of different backbones and defenses.
Proposed method
- Define a recurrent agent workflow with three stages: planning, memory retrieval, and tool interaction, and formalize how intermediate artifacts persist across steps.
- Introduce BackdoorAgent with stage-aligned hooks that inject triggers into planning, memory, or tool outputs and propagate via state/context updates.
- Instrument execution to log trajectories (x_t, s_t, p_t, m_t, o_t) and support configurable attack injection for reproducible analysis.
- Provide a standardized benchmark comprising four tasks (Agent QA, Agent Code, Agent Web, Agent Drive) spanning language-only and multimodal settings.
- Evaluate seven representative backdoor attacks across diverse backbones (open-source and closed-source) using metrics such as Clean ACC, ASR, and ACC under attack.

Experimental results
Research questions
- RQ1How do backdoor triggers injected at Planning, Memory, or Tools stages propagate through multi-step agent workflows?
- RQ2Which injection channels are most effective across different agent tasks and backbone models?
- RQ3Does higher baseline task performance correlate with robustness to agent backdoors, or are workflow properties more decisive?
- RQ4Can probability-based detectors developed for standalone LLMs effectively detect backdoors in agentic, multi-step environments?
Key findings
- Triggers implanted in a single stage can persist across multiple steps and propagate through intermediate artifacts.
- With a GPT-based backbone, trigger persistence rates are 43.58% (Planning), 77.97% (Memory), and 60.28% (Tools).
- Memory-channel attacks (PoisonedRAG, TrojanRAG) achieve very high ASR (>90% in many cases) while maintaining usable Clean ACC.
- Tool/Environment channel attacks dominate in closed-loop workflows, yielding high ASR (>80-90%) in Drive across backbones.
- Stronger model backbones do not consistently resist agent backdoors; vulnerability is driven by workflow properties like artifact persistence and feedback amplification.
- Defenses based on single-step, token-probability signals show limited separability in agent settings, suggesting the need for trajectory-level defenses.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.