POEX: Towards Policy Executable Jailbreak Attacks Against the LLM-based Robots

Xing Jia Lu, Zhengxian Huang, Xinfeng Li, X. L. Ji, Wenyuan Xu, Xu, Wenyuan · DOI

Abstract

The integration of Large Language Models (LLMs) into robotic systems has enabled robots to translate complex natural language instructions into executable policies. However, this integration introduces significant security vulnerabilities, as LLMs are susceptible to jailbreak attacks that can now manifest as physical harm. This paper investigates the feasibility of jailbreak attacks against LLM-based robots, identifying that traditional digital-domain attacks often fail due to "security hallucinations"—where the model agrees to a harmful request but generates non-executable code. We introduce POEX (POlicy EXecutable), a red-teaming framework that optimizes for both jailbreak success and policy executability. Using a novel dataset, Harmful-RLbench, we demonstrate that POEX can reliably induce harmful physical actions across various LLMs. Our findings highlight an urgent need for safety alignment specifically tailored for embodied agents.

Introduction

As LLMs transition from text-based chatbots to embodied agents, they serve as high-level planners that convert user instructions into code-format policies (e.g., grasp(knife), move_to(person)). While jailbreaking is well-documented in text-only models, its application to robotics introduces a critical new dimension: physical safety.

Traditional jailbreak attacks typically use unpronounceable adversarial suffixes to bypass safety filters. However, in a robotic context, these often result in "security hallucinations" where the robot's execution module rejects the logically impossible or syntactically incorrect code generated by the compromised LLM. Furthermore, for voice-controlled robots, adversarial suffixes must be pronounceable to be captured by Automatic Speech Recognition (ASR) systems.

Comparison between traditional LLM jailbreak and the unique challenges of robot-specific jailbreak attacks.

The POEX Framework

To address these challenges, we propose the POEX (POlicy EXecutable) framework. POEX shifts the focus from merely bypassing textual alignment to ensuring the resulting policy is physically realizable. The framework consists of two primary components:

  1. Hidden Layer Gradient Optimization: POEX analyzes the internal hidden layers of the LLM to calculate a similarity loss between a safeguarded model and an unaligned version. By minimizing this loss via gradient descent, the framework finds adversarial suffixes that steer the model toward a "jailbreak direction" while maintaining the structural integrity required for executable robot code. Crucially, these suffixes are constrained to recognizable English words.
  2. Multi-Agent Evaluator: To filter out hallucinations, POEX employs a pipeline of four specialized LLM agents—Acceptance, Harmfulness, Logic, and Conciseness. This "jury" rigorously assesses whether a generated policy is not only harmful but also logically sound and physically executable by the robot hardware.
The POEX framework architecture, illustrating the gradient optimization loop and the multi-agent judge pipeline.

Harmful-RLbench and Measurement Study

To evaluate these risks, we developed Harmful-RLbench, a dataset comprising 300 tasks (150 harmful, 150 harmless) across eight scenarios. The dataset categorizes risks into human-object-environment interactions, such as mechanical damage (e.g., cutting), energetic damage (e.g., heat), and environmental damage (e.g., chemical spills).

Our measurement study revealed that most current LLMs possess "weak security awareness" in robotic contexts. They often fail to recognize that a seemingly simple command like "pour tea on the laptop" constitutes a safety violation until the execution phase, making them highly vulnerable to optimized attacks.

Key Results and Insights

Experimental results in both simulation and real-world hardware (using Franka Panda and Unitree G1 robots) demonstrate the efficacy of POEX:

  • High Success Rates: POEX achieved an Execution Success Rate (ESR) of 60-80% on models like Ministral-8B and Qwen2.5-7B, significantly outperforming digital-only baselines.
  • Transferability: Adversarial suffixes optimized on smaller, white-box models successfully jailbroke proprietary "black-box" models like GPT-4o and Claude-3.5-Sonnet.
  • Utility vs. Security Trade-off: While prompt-based safeguards can mitigate some attacks, they often lead to "over-refusal," where the robot declines harmless everyday tasks, highlighting the difficulty of balancing safety with helpfulness.

Conclusion

POEX demonstrates that the security of LLM-based robots cannot rely solely on text-based alignment. The transition from digital harm to physical risk requires new safety paradigms that account for the executability of harmful instructions. Future work must focus on safety alignment specifically for embodied agents, training models to understand the physical consequences of their actions from the ground up.

Summary updated

BibTeX
@misc{lu2024poex,
  author = {Xing Jia Lu and Zhengxian Huang and Xinfeng Li and X. L. Ji and Wenyuan Xu and Xu, Wenyuan},
  title = {{POEX: Towards Policy Executable Jailbreak Attacks Against the LLM-based Robots}},
  year = {2024},
  eprint = {2412.16633},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.16633},
}
Figure