mlsanityData to 14 Oct 2026

Your Agent Can Defend Itself against Backdoor Attacks

arXiv 2506.08336 ↗First posted 10 Jun 2025cs.CR cs.AI cs.LGcited by 5

On the map: LLM agents and tool use → Agent threats, guardrails and governance

also in 1 more
Abstract (arXiv)

Despite their growing adoption across domains, large language model (LLM)-powered agents face significant security risks from backdoor attacks during training and fine-tuning. These compromised agents can subsequently be manipulated to execute malicious operations when presented with specific triggers in their inputs or environments. To address this pressing risk, we present ReAgent, a novel defense against a range of backdoor attacks on LLM-based agents. Intuitively, backdoor attacks often result in inconsistencies among the user's instruction, the agent's planning, and its execution. Drawing on this insight, ReAgent employs a two-level approach to detect potential backdoors. At the execution level, ReAgent verifies consistency between the agent's thoughts and actions; at the planning level, ReAgent leverages the agent's capability to reconstruct the instruction based on its thought trajectory, checking for consistency between the reconstructed instruction and the user's instruction. Extensive evaluation demonstrates ReAgent's effectiveness against various backdoor attacks across tasks. For instance, ReAgent reduces the attack success rate by up to 90% in database operation tasks, outperforming existing defenses by large margins. This work reveals the potential of utilizing compromised agents themselves to mitigate backdoor risks.

Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Placed in Agent threats, guardrails and governance, one of 16 directions in LLM agents and tool use. Builds on 22 of its 31 references that are in the map. First posted on arXiv 10 Jun 2025.

Builds on

22 of 31 references.

Closest ancestors · 2

Same direction, newest first

  1. 2024BadAgent: Inserting and Activating Backdoor Attacks in LLM Agents5 Jun
  2. 2024Watch Out for Your Agents! Investigating Backdoor Threats to LLM-Based Agents17 Feb

Other references · 20

  1. 2024The Llama 3 Herd of Modelscited by 14,715
  2. 2019BERTScore: Evaluating Text Generation with BERTcited by 5,512
  3. 2018Soft Actor-Critic: Off-Policy Maximum Entropy Deep Reinforcement Learning with a Stochastic Actorcited by 4,885
  4. 2022Large Language Models are Zero-Shot Reasonerscited by 4,374
  5. 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,182
  6. 2023A Survey on Large Language Model based Autonomous Agentscited by 2,242
  7. 2023The Rise and Potential of Large Language Model Based Agents: A Surveycited by 1,439
  8. 2020Weight Poisoning Attacks on Pre-trained Modelscited by 341
  9. 2023AgentTuning: Enabling Generalized Agent Abilities for LLMscited by 338
  10. 2020ONION: A Simple and Effective Defense Against Textual Backdoor Attackscited by 263
  11. 2023Auto-GPT for Online Decision Making: Benchmarks and Additional Opinionscited by 255
  12. 2023LLM Self Defense: By Self Examination, LLMs Know They Are Being Trickedcited by 244
8 more
  1. 2023SelfCheck: Using LLMs to Zero-Shot Check Their Own Step-by-Step Reasoningcited by 159
  2. 2023Backdooring Instruction-Tuned Large Language Models with Virtual Prompt Injectioncited by 157
  3. 2021RAP: Robustness-Aware Perturbations for Defending against Backdoor Attacks on NLP Modelscited by 104
  4. 2020Mitigating backdoor attacks in LSTM-based Text Classification Systems by Backdoor Keyword Identificationcited by 86
  5. 2023ChatGPT as a Factual Inconsistency Evaluator for Text Summarizationcited by 75
  6. 2021T-Miner: A Generative Approach to Defend Against Trojan Attacks on DNN-based Text Classificationcited by 60
  7. 2018Learning Semantic Textual Similarity from Conversationscited by 41
  8. 2024TrojFM: Resource-efficient Backdoor Attacks against Very Large Foundation Modelscited by 5

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 2; 2026: 3.

5 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025AutoBackdoor: Automating Backdoor Attacks via LLM Agents
  2. 2025The Dark Side of LLMs: Agent-based Attack Vectors for System-level Compromise
  3. 2026Stateful Agent Backdoor
  4. 2026ElasticBack: Stealthy Conditional Backdoor in LLM-Agent Skills via Coupled Trigger-Rule Optimization
  5. 2026Agent Skill Security: Threat Models, Attacks, Defenses, and Evaluation
  6. 2026SkillTrojan: Backdoor Attacks on Skill-Based Agent Systems
  7. 2025DemonAgent: Dynamically Encrypted Multi-Backdoor Implantation Attack on LLM-based Agent
  8. 2026Early Detection of Distributed Backdoors in Multi-Agent LLM Systems: A Characterization Study