Skip to content

AGENTSAFE: Benchmarking the Safety of Embodied Agents on Hazardous Instructions

Conference: CVPR 2026
Paper: CVF Open Access
Code: The paper refers to SAFE-THOR as an open-source sandbox, but no repository link is provided in the main text (to be confirmed)
Area: Embodied AI / Agent Safety / Safety Benchmark
Keywords: Embodied Agents, VLM Safety, Hazardous Instructions, Jailbreak Attacks, Full-process Diagnosis

TL;DR

AGENTSAFE is the first benchmark to systematically evaluate the safety of "embodied VLM agents executing hazardous instructions." It utilizes an adversarial simulation sandbox (SAFE-THOR) that interfaces with arbitrary agents, a collection of 9,900 hazardous instructions categorized by the "Three Laws of Robotics" (SAFE-VERSE), and a fine-grained diagnostic protocol (SAFE-DIAGNOSE) spanning the "perception-planning-execution" stages. The study evaluates 9 VLMs and 2 agent workflows, revealing a systemic failure where current agents "recognize danger but fail to incorporate this cognition into planning and execution," and proposes a thought-level defense module called SAFE-AUDIT.

Background & Motivation

Background: Driven by VLMs such as SayCan and RT-2, embodied agents can now decompose high-level natural language instructions into action sequences and execute them in real/simulated environments. As these systems move toward deployment in human environments, the question of "whether they will execute hazardous instructions" has become a critical safety concern. Consequently, safety benchmarks like EARBench, EIRAD, SafeAgentBench, and IS-Bench have been proposed.

Limitations of Prior Work: The authors identify three major weaknesses in existing evaluations. First, narrow coverage of risk types—most consider only "environmental harm," lacking a unified risk classification for "harm to humans / harm to environment / harm to self." Second, outcome-only evaluation—safety is generally determined by outcome metrics like task success rate, failing to determine whether failure occurs during perception, planning, or execution. Third, lack of general-purpose high-to-low level interfacing—early works (e.g., EIRAD) only evaluate on structured scene data and cannot ground high-level LLM plans into executable low-level actions, making them unsuitable for dynamic real-world scenarios.

Key Challenge: The safety of embodied agents is a chain spanning "perception \(\rightarrow\) planning \(\rightarrow\) execution," yet existing benchmarks compress this into a single scalar success rate. Consequently, critical failure modes are masked by this coarse-grained metric—an agent may identify danger verbally but still generate and execute a hazardous plan, a "cognition-behavior gap" that outcome metrics fail to capture.

Goal: To build a safety evaluation system that (1) provides unified coverage of three risk categories, (2) performs fine-grained localization across the full process, and (3) universally interfaces with any VLM/agent, diagnosing exactly where current agents fail.

Key Insight: The adversarial safety evaluation is decomposed into a "sandbox + task set + diagnostic protocol" triad, with the additional introduction of a jailbreak attack library to simulate more covert hazardous instructions, pushing "semantic-level safety alignment" to its limit.

Core Idea: Replace "single success rate evaluation" with "systematic multi-stage diagnosis + triple-risk tasks + universal adapter sandbox," allowing safety failures to be precisely localized to specific stages of perception, planning, or execution.

Method

Overall Architecture

AGENTSAFE is not a model but a suite of evaluation infrastructure consisting of three components and one defense module. Inputs include a natural language instruction (normal / baseline hazardous / jailbreak-enhanced) and a first-person RGB observation. The subjects of evaluation are embodied agents composed of a "VLM brain + simulated body." The output consists of fine-grained safety metrics across the perception, planning, and execution stages.

The evaluation pipeline is as follows: The SAFE-THOR sandbox first uses a universal adapter to ground raw simulator observations into VLM-usable representations and then translates high-level VLM plans back into executable low-level atomic actions. The SAFE-VERSE task set injects 9,900 instructions, organized by three risk types and enhanced by 6 jailbreak methods, into the sandbox. The SAFE-DIAGNOSE protocol calculates 5 metrics across three stages after the agent execution to localize failure points. Finally, SAFE-AUDIT serves as a plug-and-play defense that audits and rewrites the agent's initial thought before plan generation.

The agent itself is modeled as a POMDP: At time \(t\), the VLM \(\mathcal{M}\) receives historical observations \((o_1,\dots,o_t)\) and a fixed instruction \(I\), outputting action \(a_t=\mathcal{M}(I,(o_1,\dots,o_t))\). This paper primarily focuses on workflows with "explicit thoughts," where the policy \(\Psi_{ours}\) first generates a reasoning trajectory \(\tau_t\) and then a plan \(\pi_t\): \((\tau_t,\pi_t)=\Psi_{ours}(I,G_p(o_t),H_t)\). External agents can interface via \(\pi_t=\Psi_{ext}(I,G_p(o_t),H_t)\), sharing the same perception/action grounding interface to ensure fair comparison.

The following diagram illustrates the data and evaluation flow:

%%{init: {'flowchart': {'rankSpacing': 24, 'nodeSpacing': 28, 'padding': 6, 'wrappingWidth': 400}}}%%
flowchart TD
    A["AI2-THOR Scenes<br/>45 Scenes / 104 Interactive Objects"] --> B["SAFE-THOR Sandbox<br/>Universal Adapter: Perception + Action Grounding"]
    C["Three Laws of Robotics Risk Classification<br/>Harm to Human / Environment / Agent"] --> D["SAFE-VERSE Task Set<br/>1350 Tasks + 6 Jailbreaks → 9900 Instructions"]
    B --> E["Evaluated Embodied Agent<br/>9 VLMs + 2 Workflows"]
    D --> E
    E -->|Optional Defense| F["SAFE-AUDIT<br/>Pre-planning Audit & Thought Rewriting"]
    F --> E
    E --> G["SAFE-DIAGNOSE Protocol<br/>5 Metrics over Perception/Planning/Execution"]

Key Designs

1. SAFE-THOR Sandbox: Interfacing high-level VLMs with low-level simulators via a universal adapter for fair evaluation

This addresses the pain point where "existing benchmarks cannot ground high-level plans into low-level actions." Based on the AI2-THOR simulator, the core contribution is a universal agent adapter consisting of two grounding modules. The Perception Grounding Module \(G_p\) converts raw observations \(o_t\) into representations \(o'_t=G_p(o_t)\) (either raw images or structured formats like lists of detected objects and their states). Crucially, it maintains the mapping between VLM linguistic references (e.g., "that shiny red cup") and unique simulator object IDs. The Action Grounding Module \(G_a\) translates the VLM's natural language plan \(\pi_t\) into an executable sequence of low-level atomic actions \(a_t=G_a(\pi_t)\) by mapping them to a predefined dictionary of primitives (e.g., Navigate(), Pickup(), Toggle()).

This design allows the VLM to operate at a high semantic level, decoupled from the simulator's specific API, thus preserving its generalization capabilities. The modularity of the adapter ensures that both thought-based workflows (\(\Psi_{ours}\)) and external agents without explicit thoughts (\(\Psi_{ext}\)) use the same interface. Experiments confirm the adapter's reliability, with 92.22% of valid plans successfully executed under normal instructions.

2. SAFE-VERSE Task Set: Categorizing risks by the Three Laws of Robotics and magnifying difficulty with jailbreak libraries

Addressing the "narrow risk coverage" issue, SAFE-VERSE draws inspiration from Asimov's Three Laws of Robotics, categorizing hazardous instructions into three targets: Human-Harm H (e.g., "push a heavy bookshelf toward a person"), Environmental-Harm E (e.g., "pour water onto a laptop"), and Agent-Harm A (e.g., "reach into a running blender"). The baseline hazardous set is the union \(I_{base}=H\cup E\cup A\). Instructions are categorized into three levels: Normal \(I_{normal}\) (establishing a utility baseline), Baseline Hazardous \(I_{base}\) (straightforward intent identifiable by common sense), and Adversarial \(I_{adv}\).

\(I_{adv}\) is a key contribution: for each \(I_{base}\), semantic obfuscation transformations are applied using a jailbreak library \(\mathcal{J}\) as \(I_{adv}=\{\text{Generate}(I_{base},J)\mid I_{base}\in I_{base},\,J\in\mathcal{J}\}\), increasing the probability of agent execution while maintaining the original hazardous intent. The library includes 6 representative jailbreak methods: JailBroken, DeepInception, PAP, MultiLingual, Cipher, and ReNeLLM. The task set covers 45 scenes across 4 indoor types (kitchen, living room, bedroom, bathroom) with 104 interactive objects, totaling 45 adversarial scenarios / 1,350 tasks / 9,900 instructions.

3. SAFE-DIAGNOSE Protocol: Decomposing safety into three stages with 5 metrics for fine-grained failure localization

This acts as the core response to the "outcome-only success rate" issue. The five metrics are defined as follows:

Perception Stage: Uses \(G_p\) to extract the set of objects perceived by the agent \(\mathcal{O}_i^{agent}\) and compares them with the ground truth \(\mathcal{O}_i^{gt}\). Grounding Recall (GR↑) measures the proportion of actual objects correctly perceived, where low GR indicates the agent is "blind" to the environment. Hallucination Rate (HR↓) measures the proportion of perceived objects that do not exist.

Planning Stage: Uses LLM-as-a-Judge to evaluate the agent's thought and plan. Planning Rejection Rate (PRR) is the proportion of correct explicit refusals to generate a plan \(\text{PRR}=\frac{1}{|\mathcal{D}|}\sum_i R_i\) (\(R_i\in\{0,1\}\), where effective refusal is 1). Planning Success Rate (PSR) is the proportion of complete, coherent, and executable plans generated. Note that PRR+PSR does not necessarily equal 1 as some responses are neither effective refusals nor successful plans.

Execution Stage: Task Success Rate (TSR) measures the proportion of final states satisfying the goal, as determined by the sandbox checker. The brilliance of this protocol lies in the directional flipping of metrics based on instruction type: normal instructions favor high PSR/TSR and low PRR, while hazardous instructions favor high PRR and low PSR/TSR. Thus, "high PSR but low TSR" points to execution adapter issues, while "low PRR for hazardous tasks" directly identifies safety reasoning failure in planning.

4. SAFE-AUDIT Defense Module: Auditing and rewriting initial thoughts before plan decomposition

The authors propose a lightweight, plug-and-play active defense. The insight is that rather than intercepting actions after plan generation, it is more effective to intervene at the agent's most critical step—the initial global thought \(\tau_{init}\)—before hazardous intent is decomposed. SAFE-AUDIT uses a strong LLM (GPT-4o) as a zero-shot auditor to rewrite \(\tau_{init}\) given instruction \(I\) and context \(C\).

A triage mechanism is employed: if \(\tau_{init}\) leads to hazardous outcomes, it is rewritten as an explicit refusal; if it is safe but suboptimal, safety/efficiency suggestions are added; if it is already robust, it is passed through unchanged. The rewritten thought is fed back into the agent's workflow. Compared to "action-level auditing," thought-level intervention preserves utility while blocking hazards at the planning source.

Key Experimental Results

The evaluation includes 9 frontier VLMs (GPT-5-mini, Claude-opus-4, Claude-sonnet-3.5, Qwen-VL-Plus, Gemini-2.5-flash, Doubao-1.5-vision, Step-v1-8k, GLM-4.5v, Hunyuan-vision) and 2 GPT-4o-based workflows (ReAct, ProgPrompt).

Main Results: Safety Divergence under Hazardous Instructions

Selected planning metrics under Human-Harm (higher PRR is safer, lower PSR/TSR is safer):

Model GR↑ PRR↑ (Human) PSR↓ (Human) TSR↓ (Human) Safety Profile
Claude-sonnet-3.5 40.01 90.11 6.44 1.11 Safest, but conservative
Claude-opus-4 53.79 85.56 12.44 5.89 Robustly safe
ReAct (workflow) 69.13 51.28 17.95 2.56 Iterative reasoning aids safety
Hunyuan-vision 52.29 40.44 48.89 19.33 Moderate
GPT-5-mini 82.18 18.16 80.04 70.60 Best perception, poor refusal
Gemini-2.5-flash 74.88 7.78 68.22 45.33 Highly vulnerable
Step-v1-8k 83.14 0.44 79.11 40.67 Almost never refuses
ProgPrompt (workflow) 68.54 0.00 69.39 32.65 Rigid prompt bypasses safety

Under normal instructions, all models show decent perception (avg. GR > 60%, HR 4.55%). GPT-5-mini and Step-v1-8k lead in GR (82%+) and downstream PSR/TSR, confirming the "perception \(\rightarrow\) execution" cascade. Most models have near-zero PRR for normal tasks, except Claude-sonnet-3.5 (18.67%), indicating over-conservatism.

Ablation Study (Defense Comparison): SAFE-AUDIT vs. Execution-layer Defense

Comparison of SAFE-AUDIT (SA) with AgentSpec (AS) and ThinkSafe (TS):

Instruction Type Method Avg. PSR Avg. TSR Implication
Normal Orig. Baseline Baseline
Normal ThinkSafe Decrease TSR drops up to 14.96% Action interception hurts utility
Normal SAFE-AUDIT Slight Incr. TSR avg +2.22% Thought-level audit maintains utility
Hazard (Env.) SAFE-AUDIT 3.52 0.48 PSR/TSR successfully minimized

For environmental harm instructions, SAFE-AUDIT boosts PRR significantly (e.g., Doubao to 80.04%) and reduces PSR/TSR to near zero, proving that "correcting thoughts" blocks hazards before they reach execution.

Key Findings

  • Planning is the most vulnerable stage: Perception remains stable regardless of intent (grounding is intent-neutral). Failures primarily occur in planning, where models "recognize danger but do not refuse," generating grammatically valid but semantically hazardous plans.
  • Jailbreak attacks often "backfire" in embodied scenarios: Compared to baseline hazards, only MultiLingual improved PSR/TSR for some models; others performed worse. Verbose jailbreak narratives often degrade instruction clarity and executability.
  • Workflows are more robust but have different weaknesses: ReAct is safer for human-harm due to iterative reasoning; ProgPrompt is dangerous because its rigid code-like system prompt often bypasses general safety alignment.
  • Safety alignment varies drastically across models: The Claude family is robust (Human-Harm PRR > 85%), while Step-v1-8k and Gemini-2.5-flash show near-zero PRR and high TSR for hazards, indicating high risk.

Highlights & Insights

  • Metric Directional Flipping: Using the same set of metrics where the objective direction flips (Normal: High PSR; Hazard: Low PSR) allows a single table to characterize both utility and safety without redundant metrics.
  • PRR+PSR≠1 Realism: Explicitly acknowledging the gray area where an agent neither refuses nor succeeds (e.g., irrelevant responses) is more realistic than forced binary classification.
  • Diagnostic Transferability: The process-oriented approach (perception-planning-execution) can be migrated to any embodied evaluation (navigation, manipulation) to turn "black-box success rates" into attributable diagnoses.
  • Thought-level Defense > Execution-level: Intervening at the reasoning source is more efficient and accurate than per-action interception, which serves as a valuable insight for future agent architecture.

Limitations & Future Work

  • The current work only covers semantic-level jailbreak attacks and lacks multimodal attacks (e.g., adversarial images). Furthermore, evaluation is limited to AI2-THOR; the sim-to-real gap remains unverified.
  • Planning metrics (PRR/PSR) rely on LLM-as-a-Judge, which may introduce bias. The paper lacks a comprehensive consistency analysis for these judgments.
  • The observation that "jailbreaks reduce executability" might not hold for future, stronger models.
  • Compared to EARBench / EIRAD: These lacked the bridge from high-level plans to low-level execution; AGENTSAFE's universal adapter fills this gap.
  • Compared to SafeAgentBench / IS-Bench: While they provide interaction, they lack fine-grained stage-wise diagnostics; AGENTSAFE provides a unified risk classification and full-process localization.
  • Compared to AgentSpec / ThinkSafe (Defense): These operate at the execution layer, sacrificing utility; SAFE-AUDIT operates at the pre-planning thought layer, ensuring both safety and utility.

Rating

  • Novelty: ⭐⭐⭐⭐ First unified triple-risk and process-oriented benchmark for embodied agents.
  • Experimental Thoroughness: ⭐⭐⭐⭐ 9 VLMs, 2 workflows, 6 jailbreaks, and multiple defense comparisons.
  • Writing Quality: ⭐⭐⭐⭐ Clear definitions and rich visualizations; some reliance on LLM-judge.
  • Value: ⭐⭐⭐⭐⭐ Vital for the community, exposing the "recognition vs. action" discrepancy in agent safety.