DREAM framework evaluates 12 LLM agents with cross-environment long-chain attacks, with over 68% of attacks bypassing existing defensesDREAM: Dynamic Red-teaming across Environments for AI Models
Quick read
Evaluation and benchmarksBased on the paper PDF (generated by Gemini); refer to the original
The authors propose the dynamic red-teaming framework DREAM to evaluate 12 large-model agents; under 5-step attacks across 5 environments, the exposed vulnerabilities are 4.8 times those of the static baseline.
- Existing multi-agent safety evaluations are limited to static single-turn tests and cannot capture long-chain attack threats that accumulate from seemingly benign operations across multiple environments and multi-turn interactions.
- DREAM models attacks as a partially observable Markov decision process, dynamically combining atomic attacks and backtracking planning based on a cross-environment adversarial knowledge graph and context-guided policy search.
- Evaluation of 12 models found that over 68% of long-chain attacks bypassed defenses; Claude-Sonnet-4.5 achieved the highest overall defense score of 67.30, but its harm score reached 14.4 after long-chain breakthroughs.
- The evaluation covers 12 models and 349 environments; the 5-environment path sample is relatively small; reliance on closed-source APIs affects full reproducibility; high-privilege local agents such as OpenClaw are not yet covered.
- Evaluated models
- Gemini-2.5-Flash-NTo4-miniGemini-2.5-FlashGPT-5Gemini-2.5-ProGrok-4Claude-Sonnet-4.5Qwen3-235B-A22BKimi-K2-PreviewLlama-3.1-70BQwen-2.5-72BDeepSeek-V3.1
- Benchmarks
- SafetyBenchmark
- Metrics
- Overall Defense ScoreASRDamage MitigationAttack ObservabilityContextual Isolation
Researchers from Nanjing University, the University of Hong Kong, and other institutions propose DREAM, a framework that evaluates the interaction-level safety of LLM agents through dynamic multi-round adversarial simulation. Its core components are the cross-environment adversarial knowledge graph (CE-AKG) and context-guided policy search (C-GPS), which treat existing single-round static attacks as atomic actions and assemble them into long-chain attack trajectories across environments. Based on an atomic attack library of 1,986 attacks built from 349 digital environments, the researchers evaluated 12 SOTA agents and found that over 68% of long-chain attacks successfully bypassed existing defenses, with 8 models having attack success rates above 70%. The severity of vulnerabilities exposed by 5-step attack chains across 5 environments was 4.8 times that of the static baseline. Claude-Sonnet-4.5 had the lowest average attack success rate (48.31%), but once a long-chain attack succeeded, its severity score (14.4) was the highest among all models.
Why it was selectedDREAM assembles single-round static attacks as atomic actions into long-chain cross-environment attacks. Evaluation of 12 mainstream agents shows that most models struggle to track long-term malicious intent.
Paper analysis
What problem does this paper attempt to solve?
The authors argue that static single-turn evaluations overlook contextual vulnerabilities and domino effects in multi-turn cross-environment interactions, and cannot reflect the upper bound of agent security vulnerability.
Existing multi-agent safety evaluations mainly rely on static, single-round prompts and cannot assess the systemic attack risk accumulated from benign operations in cross-environment long-chain interactions.
- Problem scenario and importance: Large-model agents can autonomously invoke tools to operate across multiple heterogeneous environments, extending the attack surface to the entire interaction trajectory; the combination of single-step benign actions may bypass safety filters and cause high-risk damage.
- Limitations of existing evaluations: Existing benchmarks treat safety as an isolated invariant, performing only single-round stateless evaluations that cannot link malicious intent scattered across different environments, providing only a lower bound on vulnerability under compliance checks.
- Core observation and hypothesis: The authors propose that agents exhibit "Contextual Fragility," where defense mechanisms effective in a single environment fail when information is transferred across environments; long-chain attacks also exhibit nonlinear phase transitions.
- Proposed evaluation framework: The paper proposes the DREAM framework, which uses a cross-environment adversarial knowledge graph and context-guided policy search to treat static attacks as atomic actions and autonomously synthesize multi-round cross-environment attack trajectories.
- Dynamic adversarial threat model: The attacker's goal is to find the optimal trajectory that maximizes exposed security risk; under the PO-MDP framework, a belief state is maintained, the true system state cannot be directly observed, and the attack advances through multi-environment hub jumps.
What related research exists?
The paper categorizes related research into LLM safety evaluation, LLM adversarial testing, and agent safety evaluation, noting that existing methods are limited to single-environment and stateless testing.
The paper reviews related work from three dimensions: LLM safety evaluation, adversarial red teaming, and agent safety evaluation:
- Static LLM safety evaluation: CValues (Xu et al., 2023), Flames (Huang et al., 2024), and SafetyBench (Zhang et al., 2024) built static benchmarks of multi-category harmful content, evaluating model safety through direct prompts or multiple-choice questions. The authors note these benchmarks are limited to stateless evaluation and cannot cover real scenarios where attackers actively bypass guardrails.
- Adversarial probing and red team jailbreaks: ArtPrompt (Jiang et al., 2024), JailbreakBench (Chao et al., 2024), and HarmBench (Mazeika et al., 2024) use jailbreak attacks to test model robustness; Crescendo (Russinovich et al., 2025) studied multi-turn jailbreak attacks. The authors note that most of these evaluations remain limited to single-turn or single-dialogue interactions and do not consider the cumulative risk of cross-environment calls.
- Agent safety evaluation and benchmarks: AgentDojo (Debenedetti et al., 2024), SafeAgentBench (Yin et al., 2024), and R-Judge (Yuan et al., 2024) advanced safety evaluation for tool-calling agents. The authors note three limitations: confinement to single-environment isolation cannot test cross-environment hub jumps; reliance on stateless single-turn interactions; and fixed attack templates that easily lead models to defend only through pattern memorization.
- Baseline methods and benchmark environments: DREAM builds an atomic attack library based on 349 digital environments from SafetyBenchmark (Yin et al., 2024) and compares against single-environment static attack baselines.
The authors position DREAM as extending agent safety evaluation from single-environment stateless detection to a stateful audit framework for multi-turn temporal, cross-heterogeneous-environment scenarios.
How does the paper address this problem?
DREAM formalizes multi-environment red teaming as a PO-MDP and uses a cross-environment adversarial knowledge graph with heuristic tree search C-GPS to autonomously synthesize long-chain attack trajectories.
DREAM models multi-environment adversarial interaction as a partially observable Markov decision process, combining a knowledge graph with heuristic tree search to achieve automated long-chain red team attacks.
Formal Modeling and Information-Theoretic Analysis
The paper models the interaction between the attacker and the tool agent as a PO-MDP, formalizing the optimization objective as finding the optimal policy π∗ that maximizes expected cumulative reward:
π∗ = argmaxπ 𝔼T ∼ π [ ∑t=0T γt R(bt, at) ]- The true state S contains internal system logic and hidden files that the attacker cannot directly observe; system information is tracked through the belief state b_t (implemented as a knowledge graph).
- Attack intent density is defined as rho = I(G) / Delta_T; static single-round attacks (Delta_T = 1) with high intent density are easily detected; DREAM disperses the malicious payload across multi-step long chains, reducing uncertainty early on while maintaining low local intent density.
- The paper uses the Hill Equation to model the nonlinear phase transition probability from attack preparation to successful breakthrough:
Psuccess(bt) = ((Kaccum(t) · ω)k)/(Ωk + (Kaccum(t) · ω)k)where Omega is the defense entropy barrier, K_accum(t) is the accumulated knowledge context, omega is the strategic efficiency coefficient, and k is the synergy coefficient. When accumulated knowledge exceeds the defense threshold, the breakthrough probability undergoes a transition.
Action Space: Multi-Agent Atomic Attack Library
The action space A contains 1,986 structured atomic attacks covering 349 digital environments.
- Each atomic attack includes a semantic description for retrieval, target environment E, a parameterized prompt template, and required prerequisite entity requirements.
- Attack behaviors are abstracted into three red team roles: Scouts (551) reduce uncertainty by enumerating information; Seeders (139) modify state to implant configurations; Exploiters (1,283) use existing information to achieve malicious goals and obtain immediate rewards.
State Space: Cross-Environment Adversarial Knowledge Graph (CE-AKG)
Implemented by the Unified Sandbox, maintaining a dynamic JSON entity structure (including user IDs, credentials, file paths, API keys, etc.).
- Information fusion: The agent parses environment observations o_{t+1}, extracts new entities K_{t+1}, and merges them into the global belief state b_{t+1} = b_t \cup K_{t+1}.
- Context injection: For actions to be executed, required entities are queried, and context is extracted to instantiate attack prompt templates, breaking cross-environment information silos.
Context-Guided Policy Search (C-GPS) and Execution Flow
C-GPS performs heuristic tree search and backtracking in the belief state space.
- Heuristic value function: Balances the action's intrinsic potential Score(a), entity utilization EntityUsage(b_t, a) (i.e., the overlap between prerequisite requirements and acquired entities), and strategic breakthrough bonus StrategicBonus(a).
- Dynamic candidate set generation: Semantic retrieval is performed based on the current belief state, then clustering by strategic intent filters 20 to 30 candidate actions.
- Backtracking mechanism and execution loop: Actions are executed and observations from the target agent are received; if a step succeeds, knowledge is fused and the process advances; if blocked, the search tree backtracks to the previous decision node to explore alternative paths.
What experiments did the paper conduct?
The evaluation covers 12 models and found that over 68% of long-chain attacks bypassed defenses, with attack harm scores growing superlinearly with chain length and number of environments (statistical test p<0.001).
Experimental Setup
- Models under test: 12 models in total, including 7 closed-source commercial models (Gemini-2.5-Flash-NT, o4-mini, Gemini-2.5-Flash, GPT-5, Gemini-2.5-Pro, Grok-4, Claude-Sonnet-4.5) and 5 open-source models (Qwen3-235B-A22B, Kimi-K2-Preview, Llama-3.1-70B, Qwen-2.5-72B, DeepSeek-V3.1). All models use greedy decoding for deterministic evaluation.
- Attack framework configuration: The Conductor planning model uses Gemini-2.5-pro; the atomic attack library contains 1,986 atomic attacks derived from 349 environments in SafetyBenchmark.
- Evaluation protocol and sample size: Each model is evaluated on 100 attack chains, with target attack chain lengths set to 1 to 5 steps, each accounting for 20%; if the target length fails, it falls back to the longest successful subchain.
- Evaluation dimensions and metrics: Based on 8 risk categories (R1-R8) and 9 failure modes (M1-M9), 5-dimensional defense metrics are reported: Overall Defense Score (higher is better), Attack Success Rate (ASR, lower is better), Damage Mitigation (higher is better), Attack Observability (higher is better), Contextual Isolation (higher is better).
- Judgment method: A large model evaluates execution observations to determine whether a single-step action succeeds.
Main Results
The table below presents the overall defense performance of 6 representative models against DREAM dynamic adversarial chains (per Table 4):
Swipe horizontally to read the table
Model Overall Defense Score (↑) ASR (%) (↓) Damage Mitigation (↑) Attack Observability (↑) Contextual Isolation (↑) Gemini-2.5-Flash-NT 37.34 82.00 56.32 44.80 41.37 Qwen3-235B-A22B 38.73 83.00 58.10 44.97 37.82 Gemini-2.5-Flash 40.89 76.00 60.27 47.41 44.90 DeepSeek-V3.1 48.10 67.00 65.49 54.39 49.48 Grok-4 61.17 43.00 75.32 64.68 67.53 Claude-Sonnet-4.5 67.30 24.00 76.80 71.95 84.23 Note: Per Table 4. Due to space constraints, the table lists the 6 most representative models (including the models with the lowest and highest Overall Defense Scores); o4-mini, Kimi-K2-Preview, Llama-3.1-70B, Qwen-2.5-72B, GPT-5, and Gemini-2.5-Pro are omitted.
- Long-chain attacks generally succeed: The authors state that 8 of the 12 models have an ASR exceeding 70%, indicating that modern agents struggle to track long-term malicious intent.
- Contextual fragility is widespread: Most models score low on Contextual Isolation and fail to block information flow between environments.
- Commercial and open-source models diverge: Claude-Sonnet-4.5 shows the highest overall defense capability, while open-source models are generally weaker on most metrics.
Domino Effect and Capability-Risk Paradox
- Chain length amplifies attack harm: Figure 3(a) shows the attack harm score grows from about 1.5 at step 1 to over 10 at step 5; in Figure 3(b), the aggregated mean score grows superlinearly, exceeding the exponential baseline (1.19^x).
- Capability-risk paradox: Claude-Sonnet-4.5 has the highest overall defense, but when successfully breached at step 5, its harm score reaches 14.4, the highest among all models (Figure 3(a)). The authors argue that stronger reasoning capabilities, once exploited by the domino effect, can cause greater damage.
Information Bridges and Cross-Environment Attack Impact
- Cross-environment threat amplification: Figures 4(a) and 4(b) show that as the number of involved independent environments increases (from 1 to 5), the harm score distribution rises overall and exceeds the exponential baseline.
- Statistical significance testing: Table 10 shows that a Wilcoxon signed-rank test on the 12 models in log space yields statistically significant differences between DREAM and the exponential baseline at p < 0.001 when chain length n >= 2 or cross-environment count n >= 2; single-step attacks (n=1) show no statistically significant difference (p = 1.000).
Static Defense Interventions and Failure Analysis
- Static prompt constraints backfire: Injecting safety constraints into the Gemini-2.5-Flash system prompt lowers the Overall Defense Score from 40.89 to 36.62 and raises ASR from 76% to 83% (Appendix B.1).
- Mechanism analysis: The authors state that "Contextual Drift" in multi-turn interactions causes initial safety rules to be diluted and neutralized by subsequent immediate context.
Other Ablations and Analyses
- Conductor planning model capability ablation: Figure 5 compares Claude, DeepSeek, Gemini 2.5, GPT-4o, and GPT-5; higher-capability models exhibit steeper superlinear growth.
- Evaluation stability check: Table 9 repeats the end-to-end test on Gemini-2.5-Flash 3 times; the Overall Defense Score is 41.06 +- 1.16, and ASR is stable at 76 +- 1%.
- Vulnerable code generation (R7) high-risk vulnerabilities: In Table 7, Llama-3.1-70B and Gemini-2.5-Flash-NT both reach an ASR of 100.00% under category R7.
- Tool paralysis (M8) widespread failure: Table 8 shows that 9 of the 12 models have an ASR exceeding 90% in the mode where they fail to invoke necessary tools (M8).
What are some points that can be further explored?
The authors point out the impact of closed-source APIs on reproducibility and the need for auditing local high-privilege agents; the actual evaluation is limited by the 5-environment sample and prompt-based defense testing.
Limitations and future directions noted by the authors
- Closed-source model API stability affects full reproduction: In Appendix F, the authors note that the framework's core components rely on closed-source APIs, and exact verbatim reproduction may be affected in the future by API updates beyond their control.
- Audit needs for high-privilege local agents: In Appendix B.2, the authors note that the current experiments focus on 12 models, while emerging local resident agents represented by OpenClaw connect external chat with the local operating system and may face similar defense degradation over long trajectories; including them in DREAM audits is a key future direction.
- Exploration limits of the 5-environment path: In Section 4.2.3, the authors note that because the Conductor tends to pursue attack efficiency rather than forced exploration, the experimental data across 5 environments is relatively limited.
Experimental coverage
- Scope of tested models: The experiments cover 12 large models, including 7 commercial closed-source models and 5 open-source models, all using greedy decoding.
- Scale of atomic environments and attack library: The experiments built 1,986 atomic attack actions based on 349 digital environments from SafetyBenchmark.
- Scope of defense intervention evaluation: The defense intervention experiments tested static system prompt constraints only on the single model Gemini-2.5-Flash.
- Repetitions and evaluation counts: The main experiment evaluated 100 attack chains per model; the stability check was repeated for 3 rounds on only 2 models.
- Human evaluation reporting: The paper does not report agreement metrics between action success judgments and human annotations.
Summarize the main content of the paper
DREAM proposes a dynamic red-teaming framework based on knowledge graphs and policy search, analyzing the systematic threat of long-chain cross-environment attacks to current mainstream agents.
- One-sentence positioning: DREAM is an automated dynamic red-teaming framework for evaluating the safety robustness of large-model agents in multi-round, cross-environment interactions.
- Problem to solve: Existing agent safety evaluations rely on static single-round tests and cannot detect long-chain attack threats that are distributed across different environments and compounded cumulatively from seemingly benign single-step operations.
- Core method design: It formalizes dynamic adversarial interaction as a PO-MDP and builds an action space covering 1,986 atomic attacks; it maintains a cross-environment adversarial knowledge graph (CE-AKG) through a unified sandbox to achieve entity fusion, combined with context-guided policy search (C-GPS) and backtracking mechanisms to generate high-threat attack trajectories.
- Core experimental findings: Evaluation of 12 models shows that over 68% of long-chain attacks break through existing defenses; 5-step attacks across 5 environments expose vulnerabilities 4.8 times those of the static baseline; Claude-Sonnet-4.5 has the highest overall defense (overall defense score 67.30, ASR 24.00%), but when breached it exhibits a higher damage severity score (14.4).
- Mechanistic and defense implications: The Wilcoxon test (p < 0.001) confirms the synergistic amplification effect of the domino effect and information bridges; static system prompt defenses cause context drift and backfire on safety, and the authors call for defense mechanisms that can perceive temporal interaction trajectories and states.