Study reveals internal-state-triggered backdoor attacks against LLM-driven robotic systemsSilent Sabotage: Internal State Triggered Backdoor Attacks on LLM-Powered Robotic Systems
The authors state that implanting a backdoor in the system prompt triggered by the robot's own action history can make the LLM controller reach an ASR of 10/10 in Gazebo simulation (Table 2).
The attacker is a third-party provider of a custom LLM controller, offering the service as a black-box API; the attacker can only modify the system prompt and cannot control the model architecture, training data, or fine-tuning process; the goal is to implant a backdoor that is stealthy, hard to detect, and reliably executes malicious actions after triggering.
- Existing LLM robot backdoor research relies on external triggers (specific words, objects, scenes); the authors focus on a class of unstudied internal triggers: the robot's own action history sequence.
- The attacker, as a customized controller provider, concatenates a conditional instruction into the system prompt: when the action history contains a specific sequence, output a malicious action; no access to weights, training data, or the fine-tuning process is required.
- In Gazebo simulation, 3 LLMs × 3 quadruped robots × 3 maps, 10 trials each: ASR is 10/10 in all cases except Qwen2-72B on Go1 with the 1-door map, which is 9/10; benign-scenario TCR is 8/10–10/10 (Table 2).
- The authors note that experiments were conducted only in simulation, with the trigger being a predefined fixed sequence; they plan real-robot validation, dynamic triggers, and defense implementation. Defenses are only proposed as ideas and were not experimentally evaluated.
- Evaluated models
- Llama-3.3-70B-InstructQwen2-72B-InstructGemma-3-27B-it
- Benchmarks
- Gazebo 仿真环境(1/2/4 门房间,Unitree Go1/Go2/A1)
- Metrics
- ASRTCR
The paper presents the first systematic study of history-based backdoor attacks against LLM-driven robotic systems, where the attacker implants a hidden backdoor in an LLM-based robot controller by manipulating instructions. The backdoor is not triggered by external cues but by a specific rare sequence of the robot's own past actions, remaining dormant during normal operation to maintain robot utility, and can induce malicious behaviors such as complete stoppage or collisions once activated. In simulation experiments across multiple robots and LLMs, the attack achieves near-perfect attack success rates while being extremely difficult to detect. The study identifies this as a previously unresolved critical vulnerability in autonomous systems, emphasizing that safety measures must consider the agent's internal state.
Paper analysis
What problem does this paper attempt to solve?
The authors study an instruction backdoor with the robot's own action history as an internal trigger, stating that existing work only covers external triggers.
Core question: Can a backdoor in an LLM robot controller be triggered by the robot's own action history (internal state) rather than an external stimulus?
- Problem scenario: A user integrates a third-party custom LLM robot controller into an autonomous system as a black-box API (similar to custom GPTs in the GPT Store), without being able to see the full system prompt. The authors consider this service model to harbor an unstudied risk.
- Shortcomings of existing methods: The authors state that existing embodied agent backdoor research all relies on external triggers—specific words in the prompt, physical objects in the environment, or specific scenes; instruction backdoor attacks have also only been used in standard NLP tasks and have not entered the physical robot domain.
- Core observation: The LLM controller maintains a memory of recent action history for decision-making, and the authors argue that this internal memory can itself be weaponized as a trigger, undetectable by external defenses (input sanitization, environment scanning).
- Paper proposal: A training-free instruction backdoor attack whose trigger is a rare ordered sequence of the robot's past actions, targeting the control loop that directly outputs low-level JSON commands; it provides a formalization, simulation evaluation, and defense ideas.
- Threat model (Section 3.1):
- Goal: The implanted backdoor must be stealthy (not degrading normal task performance), hard to detect (trigger events are rare), and effective (reliably executing malicious actions after triggering, such as hitting a wall or emergency stopping).
- Knowledge: The attacker is the provider of the custom LLM controller.
- Capability: Can only modify the system instructions provided to the LLM; cannot control the model architecture, training data, or fine-tuning process.
- Victim system: An autonomous robot system that uses the controller as a black-box API.
What related research exists?
Related work is divided into two groups: NLP backdoors and embodied agent backdoors; the authors state that the latter all rely on external triggers.
Backdoor attacks in NLP
- Gu et al. (2017) proposed BadNets, and Dai et al. (2019) adapted it to data poisoning for text classification; Cheng et al. (2025) surveyed NLP backdoors and defenses.
- Stealthy trigger direction: Qi et al.'s learnable word substitution (2021), syntactic triggers (2021), text style transfer (2021), and Li et al. (2021)'s homoglyph substitution.
- Attack surfaces targeting LLM characteristics: instruction fine-tuning poisoning (Qiang et al. 2024; Xu et al. 2023), RLHF preference data poisoning (Rando & Tramèr 2023; Shi et al. 2023), ICL example poisoning (Kandpal et al. 2023), CoT reasoning chain backdoors (Xiang et al. 2024). The authors state that these methods are mainly studied on traditional NLP tasks.
LLM-driven robot and agent backdoors
- Jiao et al. (2024) and Al Nahian et al.: poison domain datasets during fine-tuning to implant backdoors, with triggers being text or environmental/visual cues.
- Wang et al. (2024)'s TrojanRobot: inserts a backdoored VLM module into the robot software stack, with the trigger being a physical object in the field of view.
- Liu et al. (2025): text+visual bimodal triggers, realized by manipulating ICL few-shot examples; Zhang et al. (2024)'s SafeEmbodAI uses malicious prompts conditioned on visual events. Yang et al. (2024) studies backdoor threats to LLM agents.
Baselines and comparison: The paper has no experimental baseline methods; Table 1 tabulates a comparison of the trigger types of the above five works and this paper's internal action history trigger.
Authors' positioning: The authors state that this paper differs from existing work in two respects—the trigger is the robot's own action sequence, an internal state, and the attack targets the low-level reactive control loop that outputs immediate JSON commands; unlike Liu et al. (2025), which manipulates few-shot examples, this paper directly modifies the system prompt.
How does the paper address this problem?
Concatenate into the system prompt a malicious instruction conditioned on a subsequence of the action history, exploiting the LLM's instruction-following ability to implement a backdoor.
Overall approach: the attacker does not train the model, but embeds a "special instruction" in the system prompt of the black-box LLM controller, writing the backdoor logic as a conditional rule and relying on the model's instruction-following ability to execute it. The method is formalized in Sections 4.1–4.2.
Problem setting and formalization
- The controller M receives at each time step t an abstract representation Ot of the environment observation and generates the next action at; the model maintains a memory of the most recent k actions Ht = (at−k, …, at−1).
- The system prompt is formed by concatenating the task instruction and the backdoor instruction: Psys = Itask ⊕ Ibackdoor, where ⊕ denotes concatenation; the full prompt is composed by a template function from the system prompt, the current observation, and the action history.
- The implementation uses greedy decoding, i.e., selecting the action with the highest conditional probability.
Trigger and backdoor instruction design
- Trigger: defined as a specific ordered action sequence T = (a′1, …, a′n); the authors state that the selection criterion is to be rare enough to avoid accidental discovery during normal operation while still being possible in real complex scenarios.
- Backdoor logic: at = amalicious when T is a subsequence of Ht, otherwise greedy decoding according to the normal task instruction; this logic is written directly into the system prompt in the form of a "Special Instruction", without training.
- Example given in the paper: the trigger sequence is a combination of three actions; after triggering, a stop instruction is output and other instructions are ignored; Section 4.2 gives the full instruction text.
Victim system architecture
- The AI agent controls a quadruped robot equipped with LiDAR, and the task is to navigate to the nearest opening in the room; a dedicated tool abstracts the raw LiDAR data into a summary of opening position, width, and distance.
- The agent outputs low-level JSON commands; the prompt forces generation to begin with {"action": for parsing. The allowed action set is listed in the instruction.
- The agent maintains a history of recent actions to avoid getting stuck in loops, and this memory is exactly what the attack exploits.
Success determination
- Each trial is a success if the robot escapes the room within 4 minutes, otherwise a failure; benign scenarios are expected to succeed (verifying stealthiness), and attack scenarios are expected to fail (verifying effectiveness). In attack scenarios, the trigger sequence is manually injected into the action history after step 20.
What experiments did the paper conduct?
3 LLMs × 3 robots × 3 maps, 10 trials each; ASR is almost entirely 10/10, and benign TCR is 8/10–10/10.
Experimental Setup
- Models tested: Llama-3.3-70B-Instruct, Qwen2-72B-Instruct, Gemma-3-27B-it, from the standard Hugging Face implementations, deployed on two NVIDIA A100 80GB GPUs.
- Environment: Gazebo simulator; robots are Unitree Go1, Go2, A1; maps are three room layouts with 1, 2, and 4 doors (Figure 3); the robot's initial position and orientation are randomized in each trial.
- Attack configuration: the trigger is a three-action sequence, and the malicious action is emergency stop; in attack scenarios, the trigger sequence is manually injected into the robot's action history after the first 20 steps.
- Metrics: ASR (proportion of successful attacks after triggering; success = the robot does not escape within the time limit) and TCR (task completion rate in benign scenarios; success = escaping the room within 4 minutes).
- Sample size: 10 trials per model × robot × map combination; the paper does not report variance or statistical tests over repeated experiments.
- Evaluation method: judged by the rule of whether the robot escaped the room; no LLM judge was used.
Main Results
According to Table 2 (each cell is the number of successes out of 10 trials):
Swipe horizontally to read the table
Map Robot Metric Gemma-3-27B Llama-3.3-70B Qwen2-72B 1 door Go1 ASR / TCR 10/10 / 10/10 10/10 / 9/10 9/10 / 8/10 1 door Go2 ASR / TCR 10/10 / 9/10 10/10 / 9/10 10/10 / 8/10 1 door A1 ASR / TCR 10/10 / 10/10 10/10 / 9/10 10/10 / 9/10 2 doors Go1 ASR / TCR 10/10 / 9/10 10/10 / 8/10 10/10 / 9/10 2 doors Go2 ASR / TCR 10/10 / 9/10 10/10 / 9/10 10/10 / 8/10 2 doors A1 ASR / TCR 10/10 / 9/10 10/10 / 8/10 10/10 / 8/10 4 doors Go1 ASR / TCR 10/10 / 8/10 10/10 / 10/10 10/10 / 9/10 4 doors Go2 / A1 ASR / TCR 10/10 / 8/10; 10/10 / 10/10 10/10 / 9/10; 10/10 / 10/10 10/10 / 9/10; 10/10 / 9/10 - The authors state that ASR is near perfect in all scenarios, with Llama-3.3-70B and Gemma-3-27B at 10/10 in all combinations.
- The only exception: Qwen2-72B on Go1 with the 1-door map has ASR 9/10; the authors explain that in that trial the robot's random spawn point was too close to the door, and it had already escaped the room before the step-20 attack initialization threshold was reached, unrelated to whether the model followed the instruction.
- The authors state that benign TCR remains at 8/10–10/10, indicating that the backdoor does not affect normal utility and is hard to detect through performance testing; they also consider models with strong instruction-following and state-tracking abilities such as Llama-3.3-70B to be reliable carriers for this type of attack.
Defense Discussion (no experiments)
- Section 6 discusses proposed countermeasures: platform-side instruction scanning, runtime action-sequence anomaly detection, periodic clearing of context/action history, and using a red-team LLM to probe hidden conditional behavior.
- The authors state that the black-box assumption makes traditional defenses such as model pruning, fine-tuning on clean data, and trigger inversion inapplicable, and that manual review of the system prompt is infeasible for end users.
- None of these countermeasures were experimentally evaluated; the authors list implementation and evaluation as future work.
Other Ablations and Analyses
- The paper does not conduct ablation experiments, parameter sensitivity analysis, or transfer experiments; Table 2 is the only results table.
What are some points that can be further explored?
The authors list three directions: simulation limitations and real-robot validation, dynamic triggers, and defense implementation; the experiments cover only simulation scenarios with 3 open-source LLMs.
Limitations and Future Directions Noted by the Authors
- Simulation only: the study is conducted in Gazebo simulation; the real world has additional complexity such as sensor noise and physical dynamics (Section 7.2).
- Fixed trigger: the attack uses a predefined fixed action sequence as the trigger (Section 7.2).
- Real-robot validation: the authors plan to deploy the backdoor on the Unitree Go1 quadruped robot and the Unitree G1 humanoid robot for validation (Section 7.2).
- More dynamic triggers: the authors plan to design conditional or order-independent action-sequence triggers, as well as hybrid triggers that incorporate environment state or internal sensor readings (e.g., low battery, motor temperature) (Section 7.2).
- Defense implementation: the authors plan to implement and evaluate the countermeasures proposed in Section 6, such as runtime anomaly detection and context clearing, and test them on physical robot platforms (Section 7.2).
Scope of Experimental Coverage
- The models tested are Llama-3.3-70B-Instruct, Qwen2-72B-Instruct, and Gemma-3-27B-it, 3 open-source models in total (Section 5.1).
- The environments are 3 quadruped robots (Go1, Go2, A1) and 3 room layouts (1/2/4 doors) in Gazebo simulation, with 10 trials per combination (Section 5.1, Table 2).
- The attack configuration is a single fixed three-action trigger sequence and a single malicious action (emergency stop); the trigger sequence is manually injected into the action history after step 20 (Section 5.1).
- The countermeasures in Section 6 (instruction scanning, anomaly detection, context clearing, red-team probing) are discussion only, with no experiments in the paper.
- The paper does not report the distribution of causes for failed trials in benign scenarios, nor statistical tests over repeated runs.
Summarize the main content of the paper
The authors propose and validate in simulation an instruction backdoor triggered by the robot's action history, with ASR near full marks and no impact on benign performance.
A paper on backdoor attacks against LLM robots; the authors describe it as the first systematic study of history-based backdoor attacks.
- Problem: existing backdoors in embodied agents rely on external triggers (specific words, objects, scenes); the authors investigate whether the robot's own action history, an internal state, can serve as a trigger.
- Threat model: the attacker is a third-party provider of a customized LLM controller, delivered via a black-box API, who can only modify the system prompt and has no access to weights, training data, or fine-tuning.
- Method: concatenate a conditional instruction into the system prompt—when the recent action history contains a specific ordered sequence, output a malicious action (emergency stop); otherwise operate normally; training-free, relying on the LLM's instruction-following ability.
- Results: in Gazebo simulation, with 3 LLMs × 3 quadruped robots × 3 maps and 10 trials each, ASR is 10/10 in all cases except Qwen2-72B on Go1 with the 1-door map, which is 9/10; benign TCR is 8/10–10/10 (Table 2). The authors attribute the single failure to the spawn point being too close to the door, so the robot had already escaped before the trigger was injected.
- Authors' conclusion: the authors argue that the instruction-following and state-memory capabilities that make LLMs suitable for robots also constitute a new attack surface, that input sanitization and environment-scanning defenses are ineffective against internal triggers, and that defenses targeting the agent's internal state are needed.
- Future work: the authors plan real-robot validation, dynamic and hybrid triggers, and implementation of the proposed defenses for evaluation.