mlsanityData to 7 Oct 2026

Compromising Embodied Agents with Contextual Backdoor Attacks

arXiv 2408.02882 ↗First posted 6 Aug 2024cs.AI cs.CR cs.LGcited by 29

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

also in 1 more
Abstract (arXiv)

Large language models (LLMs) have transformed the development of embodied intelligence. By providing a few contextual demonstrations, developers can utilize the extensive internal knowledge of LLMs to effortlessly translate complex tasks described in abstract language into sequences of code snippets, which will serve as the execution logic for embodied agents. However, this paper uncovers a significant backdoor security threat within this process and introduces a novel method called method. By poisoning just a few contextual demonstrations, attackers can covertly compromise the contextual environment of a black-box LLM, prompting it to generate programs with context-dependent defects. These programs appear logically sound but contain defects that can activate and induce unintended behaviors when the operational agent encounters specific triggers in its interactive environment. To compromise the LLM's contextual environment, we employ adversarial in-context generation to optimize poisoned demonstrations, where an LLM judge evaluates these poisoned prompts, reporting to an additional LLM that iteratively optimizes the demonstration in a two-player adversarial game using chain-of-thought reasoning. To enable context-dependent behaviors in downstream agents, we implement a dual-modality activation strategy that controls both the generation and execution of program defects through textual and visual triggers. We expand the scope of our attack by developing five program defect modes that compromise key aspects of confidentiality, integrity, and availability in embodied agents. To validate the effectiveness of our approach, we conducted extensive experiments across various tasks, including robot planning, robot manipulation, and compositional visual reasoning. Additionally, we demonstrate the potential impact of our approach by successfully attacking real-world autonomous driving systems.

Key facts. Cited by 29 papers in the map (data through 7 Oct 2026). Placed in Agent threats, guardrails and governance, one of 16 directions in LLM agents and tool use. Builds on 59 of its 89 references that are in the map. First posted on arXiv 6 Aug 2024.

Builds on

59 of 89 references.

References · 59

  1. 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,694
  2. 2022Training language models to follow instructions with human feedbackcited by 15,712
  3. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  4. 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,393
  5. 2018SentencePiece: A simple and language independent subword tokenizer and detokenizer for Neural Text Processingcited by 1,973
  6. 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,413
  7. 2017BadNets: Identifying Vulnerabilities in the Machine Learning Model Supply Chaincited by 1,052
  8. 2017Targeted Backdoor Attacks on Deep Learning Systems Using Data Poisoningcited by 1,012
  9. 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 890
  10. 2023VoxPoser: Composable 3D Value Maps for Robotic Manipulation with Language Modelscited by 733
  11. 2019RLBench: The Robot Learning Benchmark & Learning Environmentcited by 669
  12. 2021Learning To Retrieve Prompts for In-Context Learningcited by 641
38 more
  1. 2022ProgPrompt: Generating Situated Robot Task Plans using Large Language Modelscited by 598
  2. 2022Visual Programming: Compositional visual reasoning without trainingcited by 507
  3. 2018VirtualHome: Simulating Household Activities via Programscited by 411
  4. 2020Input-Aware Dynamic Backdoor Attackcited by 304
  5. 2020ONION: A Simple and Effective Defense Against Textual Backdoor Attackscited by 231
  6. 2021Embodied Intelligence via Learning and Evolutioncited by 154
  7. 2023Large Language Models for Code: Security Hardening and Adversarial Testingcited by 149
  8. 2023Unified Demonstration Retriever for In-Context Learningcited by 141
  9. 2021Dual Attention Suppression Attack: Generate Adversarial Camouflage in Physical Worldcited by 127
  10. 2020You Autocomplete Me: Poisoning Vulnerabilities in Neural Code Completioncited by 112
  11. 2018Transferable Adversarial Attacks for Image and Video Object Detectioncited by 109
  12. 2022Narcissus: A Practical Clean-Label Backdoor Attack with Limited Informationcited by 102
  13. 2023Backdoor Attacks for In-Context Learning with Language Modelscited by 92
  14. 2024Coercing LLMs to do and reveal (almost) anythingcited by 88
  15. 2024VL-Trojan: Multimodal Instruction Backdoor Attacks against Autoregressive Visual Language Modelscited by 83
  16. 2022Parallel Rectangle Flip Attack: A Query-based Black-box Attack against Object Detectioncited by 79
  17. 2020Efficient Adversarial Attacks for Visual Object Trackingcited by 66
  18. 2023ACT-SQL: In-Context Learning for Text-to-SQL with Automatically-Generated Chain-of-Thoughtcited by 65
  19. 2020Dirty Road Can Attack: Security of Deep Learning based Automated Lane Centering under Physical-World Attackcited by 64
  20. 2019Training Robust Deep Neural Networks via Adversarial Noise Propagationcited by 60
  21. 2023In-context Example Selection with Influencescited by 60
  22. 2023X-Adv: Physical Adversarial Object Attacks against X-ray Prohibited Item Detectioncited by 58
  23. 2022A Large-scale Multiple-objective Method for Black-box Attack against Object Detectioncited by 55
  24. 2024Universal Vulnerabilities in Large Language Models: Backdoor Attacks for In-context Learningcited by 47
  25. 2024Revisiting Backdoor Attacks against Large Vision-Language Models from Domain Shiftcited by 45
  26. 2021A Comprehensive Evaluation Framework for Deep Model Robustnesscited by 41
  27. 2023SA-Attack: Improving Adversarial Transferability of Vision-Language Pre-training Models via Self-Augmentationcited by 39
  28. 2023Pre-trained Trojan Attacks for Visual Recognitioncited by 38
  29. 2022GPS: Genetic Prompt Search for Efficient Few-shot Learningcited by 37
  30. 2023Diversifying the High-level Features for better Adversarial Transferabilitycited by 34
  31. 2023Prompt Optimization via Adversarial In-Context Learningcited by 33
  32. 2023Stealthy Backdoor Attack for Code Modelscited by 32
  33. 2024Unlearning Backdoor Threats: Enhancing Backdoor Defense in Multimodal Contrastive Learning via Local Token Unlearningcited by 31
  34. 2020Backdoors in Neural Models of Source Codecited by 27
  35. 2024Breaking the False Sense of Security in Backdoor Defense through Re-Activation Attackcited by 26
  36. 2024Towards Robust Physical-world Backdoor Attacks on Lane Detectioncited by 25
  37. 2024Hide in Thicket: Generating Imperceptible and Rational Adversarial Perturbations on 3D Point Cloudscited by 24
  38. 2022Exploring the Relationship between Architecture and Adversarially Robust Generalizationcited by 23

50 most cited of 59 All 59 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 3; 2025: 15; 2026: 11.

29 papers.

Sort:

By area:

  1. 2025A Comprehensive Survey in LLM(-Agent) Full Stack Safety: Data, Training and Deploymentcited by 110
  2. 2024Navigating the Risks: A Survey of Security, Privacy, and Ethics Threats in LLM-Based Agentscited by 63
  3. 2025Safety at Scale: A Comprehensive Survey of Large Model and Agent Safetycited by 63
  4. 2025Manipulating Multimodal Agents via Cross-Modal Prompt Injectioncited by 42
  5. 2025Robust Anti-Backdoor Instruction Tuning in LVLMscited by 10
  6. 2025SRD: Reinforcement-Learned Semantic Perturbation for Backdoor Defense in VLMscited by 9
  7. 2025ICLShield: Exploring and Mitigating In-Context Learning Backdoor Attackscited by 9
  8. 2024Defending LVLMs Against Vision Attacks through Partial-Perception Supervisioncited by 7
  9. 2025Lie Detector: Unified Backdoor Detection via Cross-Examination Frameworkcited by 6
  10. 2024TrapFlow: Controllable Website Fingerprinting Defense via Dynamic Backdoor Learningcited by 5
  11. 2026CIBER: A Comprehensive Benchmark for Security Evaluation of Code Interpreter Agentscited by 5
  12. 2025Chain-of-Trigger: An Agentic Backdoor that Paradoxically Enhances Agentic Robustnesscited by 4
17 more
  1. 2025A Comprehensive Survey on Physical Risk Control in the Era of Foundation Model-enabled Roboticscited by 2
  2. 2025ME: Trigger Element Combination Backdoor Attack on Copyright Infringementcited by 2
  3. 2025RoboInspector: Unveiling the Unreliability of Policy Code for LLM-enabled Robotic Manipulationcited by 2
  4. 2026BadCLIP++: Stealthy and Persistent Backdoors in Multimodal Contrastive Learningcited by 2
  5. 2025Unfettered Forceful Skill Acquisition with Physical Reasoning and Coordinate Frame Labelingcited by 1
  6. 2025Rethinking Reasoning: A Survey on Reasoning-based Backdoors in LLMscited by 1
  7. 2026FlowHijack: A Dynamics-Aware Backdoor Attack on Flow-Matching Vision-Language-Action Modelscited by 1
  8. 2026Isolation as a First-Class Principle for LLM-Agent System Safety: Concepts, Taxonomy, Challenges and Future Directionscited by 1
  9. 2025MuTRAP: Multi-trigger Trojans Attacking Robot Task Planning Systemscited by 0
  10. 2025On the Dual-Use Dilemma in Physical Reasoning and Forcecited by 0
  11. 2026A Patch-based Cross-view Regularized Framework for Backdoor Defense in Multimodal Large Language Modelscited by 0
  12. 2026Enhancing Agent Safety Judgment: Controlled Benchmark Rewriting and Analogical Reasoning for Deceptive Out-of-Distribution Scenarioscited by 0
  13. 2026TimeGuard: Channel-wise Pool Training for Backdoor Defense in Time Series Forecastingcited by 0
  14. 2026Breadcrumbing Search Agentscited by 0
  15. 2026On Understanding, Identifying, and Mitigating Vulnerabilities in Agentic Large Language Modelscited by 0
  16. 2026TrojanWorld: Backdooring World-Model Agents via Imagination Steeringcited by 0
  17. 2026StepTrigger: Contact-State-Triggered Backdoor Attacks on VLM-Powered Legged Robotscited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2024Can We Trust Embodied Agents? Exploring Backdoor Attacks against Embodied LLM-based Decision-Making Systems
  2. 2026Jailbreaking Embodied LLMs via Action-level Manipulation
  3. 2026Breaking Planner Integrity Boundary: Enviroment State-Text Injection Attack on LLM-Driven Embodied Agents
  4. 2026Security of Foundation-Model-Powered Embodied Agents: Attack Surfaces, Attacks, Defenses, and Evaluation
  5. 2024BadRobot: Jailbreaking Embodied LLM Agents in the Physical World
  6. 2025In-Context Defense in Computer Agents: An Empirical Study
  7. 2026Inject Once Survive Later: Backdooring Vision-Language-Action Models to Persist Through Downstream Fine-tuning
  8. 2025AutoBackdoor: Automating Backdoor Attacks via LLM Agents