Compromising LLM-driven embodied agents using context backdoor attacksCompromising Embodied Agents with Contextual Backdoor Attacks
An arXiv paper proposes a context backdoor attack against LLM embodied agents: the attacker only needs to poison a small number of in-context examples to make a black-box LLM generate programs that appear logically normal but actually contain context-related defects; when the agent encounters specific trigger conditions in an interactive environment, the defects activate and cause unintended behavior. The method uses adversarial context to generate and optimize the poisoned examples; one LLM reviewer evaluates the poisoned prompt and reports to another LLM, which iteratively optimizes it through chain-of-thought reasoning in a two-player adversarial game; then, textual and visual bimodal triggers control the generation and execution of the defects, and five program defect patterns are designed, covering confidentiality, integrity, and availability. The experiments cover robot planning, robot manipulation, and compositional visual reasoning tasks, and the authors also demonstrate the method's potential impact by attacking a real autonomous driving system.