OpenRT: An Open-Source Red-Teaming Framework for Multimodal LLMsOpenRT: An Open-Source Red Teaming Framework for Multimodal LLMs
Shanghai AI Laboratory released the open-source red-teaming framework OpenRT, which integrates 37 attack methods and measured an average ASR of 49.14% across 20 models.
- The MLLM safety evaluation ecosystem is fragmented: existing red-teaming frameworks cover only a few attacks, have narrow threat models and few target models, and lack unified, extensible, high-throughput evaluation infrastructure, making it difficult to establish standardized attack baselines.
- Proposes the open-source framework OpenRT, which decouples the red team process into six modules: model, dataset, attack, reviewer, evaluator, and orchestrator; integrates 37 attack methods; uses an asynchronous engine to support high concurrency; and adopts a dual-review architecture combining keywords and an LLM to determine attack success.
- Evaluating 20 models on HarmfulBench under a strict black-box setting: average ASR 49.14%, with only GPT-5.2 and Claude Haiku 4.5 having average ASR below 30%; EvoSynth reaches 100% ASR on most models; the authors state that reasoning enhancement did not bring stronger robustness.
- The authors plan to integrate new attack paradigms and extend to more modalities in the future. The experiments cover only one dataset, HarmfulBench, and 20 models; the efficiency, stealthiness and diversity analyses target only GPT-5.2; the paper does not report the agreement between the judge model and human judgment.
- Threat model
- Standard red team setting: the defender runs a target model with a safety policy, and the attacker seeks outputs that violate the policy. In the black-box setting, the attacker interacts only through an API, can see only the final output, and is constrained by a query budget and request rate; in the white-box setting, the attacker can access model parameters, gradients, and hidden states. Experiments are conducted under a strict black-box setting.
- Evaluated models
- GPT-5.2GPT-5.1Claude Haiku 4.5Gemini 3 Pro PreviewGemini 2.5 Flash ThinkingMistral Large 3Llama-4-MaverickLlama-4-ScoutGrok 4.1 FastDoubao-Seed-1.6Qwen3-MaxQwen3-235B-A22B-ThinkingQwen3-Next-80B-A3BDeepSeek-R1DeepSeek-V3.2Kimi K2-Instruct-0905MiniMax-M2GLM-4.6Hunyuan-A13B-InstructERNIE-4.5-300B-A47B
- Benchmarks
- HarmBench Standard(论文 4.1.1 节写作 HarmfulBench)
- Metrics
- ASRAttack EfficiencyAttack Stealthiness (PPL)Attack Diversity
Researchers released the open-source red-teaming framework OpenRT, integrating 37 attack methods, with an overall average attack success rate of 49.14% on 20 advanced models. The framework decouples models, datasets, attacks, judges and evaluators, and supports large-scale parallel white-box and black-box testing through an asynchronous runtime, covering gradient attacks, multimodal perturbations and multi-agent evolutionary strategies. On models including GPT-5.2, Claude Haiku 4.5 and Gemini 3 Pro Preview, single-model ASR ranged from 13.4% to 72.5%, and only GPT-5.2 and Claude Haiku 4.5 had average ASR below 30%. The paper also states that reasoning models did not show stronger robustness to complex multi-turn jailbreaks, and that visual inputs can bypass text-only safety mechanisms.
Why it was selectedOpenRT unifies 37 attack methods into an asynchronous red-teaming framework and provides reproducible ASR comparisons on 20 models, making it easier for teams to check multimodal jailbreak exposure.
Paper analysis
What problem does this paper attempt to solve?
Addresses the fragmentation problem in MLLM red team evaluation and proposes OpenRT, a unified, modular, high-throughput open-source framework.
Core problem: The red-teaming evaluation ecosystem for MLLMs is fragmented, lacking a unified, extensible, high-throughput systematic safety evaluation framework.
- Problem setting: MLLMs are entering critical applications such as conversational assistants, code copilots, and search agents, but the authors state that conventional defenses such as system prompts, safety filters, and refusal fine-tuning remain vulnerable to adversarial attacks, and there is a gap between perceived safety and actual worst-case vulnerabilities.
- Shortcomings of existing methods: The authors state that existing red-teaming frameworks mostly focus on narrow attack subsets, limited threat models, or a small number of target models, lacking a unified experimental framework, making it difficult to reproduce benchmarks and quantify the consistency of safety failures.
- The paper's core claim: A modular framework that decouples adversarial logic from a high-concurrency asynchronous runtime, unifying the five dimensions of models, datasets, attacks, judging, and metrics, is needed to systematically scale evaluation across models.
- The paper's proposed solution: The open-source framework OpenRT, integrating 37 attack methods (covering white-box gradients, multimodal perturbations, and multi-agent evolutionary strategies), and conducting a large-scale empirical study on 20 advanced models.
- Threat model (Section 3.1):
- Goal: The attacker makes the target model output content that violates its safety policy, with the goal of maximizing ASR on a dataset of harmful queries.
- Knowledge: Two settings—black-box sees only final outputs via API, white-box has access to parameters, gradients, and hidden states.
- Capability: Under black-box, constrained by query budget and request rate; the experimental section (Section 4.1.2) explicitly states that all 37 attacks are evaluated under a strict black-box setting.
- Victim system: MLLMs and LLMs equipped with safety policies, accessed via API or local interface.
What related research exists?
Related work is divided into two categories, red-teaming attack methods and evaluation frameworks; the paper uses Table 1 to compare nine existing frameworks and position OpenRT.
Red-teaming attack methods
- Manual red teaming: early work had human experts construct inputs to induce harmful outputs (jailbreaking); the authors state that such methods are limited by scalability, cost and coverage.
- Input-space search: genetic algorithms, token-level combinatorial methods, gradient optimization (GCG etc.), LLM iterative rewriting (PAIR etc.); the paper notes that these methods treat jailbreak discovery as input-space search and are confined to prompt rewriting.
- Agentic and programmatic attacks: RedAgent, ALI-Agent, WildTeaming, AutoRedTeamer, AutoDAN-Turbo, H4RM3L, X-Teaming, EvoSynth etc. use multi-agent coordination and evolutionary techniques to generate attack vectors; CodeAttack feeds code snippets as plain text input, and Evo-MARL etc. introduce co-evolutionary training.
Evaluation frameworks and benchmarks
- EasyJailbreak: a modular pipeline implementing multiple attack families (Table 1 records 11 methods, text-only, single-turn).
- JailbreakBench and HarmBench: provide large-scale test suites and standardized metrics (Table 1 records 4 and 18 methods respectively).
- Specialized frameworks: JailTrickBench focuses on specific jailbreak implementation techniques; OmniSafeBench-MM targets multimodal adversarial robustness evaluation; DeepTeam supports automated adversarial testing across multiple attack strategies.
Baselines and comparison setup
- The paper does not implement attack baselines for comparison, but directly reproduces 37 published attacks as evaluation targets; the experimental protocol follows the evaluation protocols of X-Teaming and ActorAttack, and the dataset is HarmBench Standard.
- The right side of Figure 1 compares OpenRT's average ASR with the "top-6 strongest attack baselines (selected by highest ASR)" on representative MLLMs.
Positioning of this work: the authors state that OpenRT's distinction lies in comprehensiveness and scale—a unified modular framework, native support for diverse MLLMs, 37 configurable and extensible attacks, and an asynchronous execution engine; in Table 1, OpenRT is the only framework marked as supporting asynchrony, text+image, and all three interaction modes (single-turn/multi-turn/multi-agent) with configurability and extensibility rated High.
How does the paper address this problem?
OpenRT decouples the red-teaming pipeline into six modules, with unified interfaces plus asynchronous orchestration, integrating 37 attacks and a dual-judge architecture.
Overall approach: decompose the red-teaming pipeline into six independently replaceable modules—Model, Dataset, Attack, Judge, Evaluator, Orchestrator—assembled via a unified registry and YAML configuration, decoupling adversarial logic from the high-concurrency asynchronous runtime.
Problem Formalization
- The target MLLM is denoted Fθ, with input as a tuple (v, t1:n), where v is the visual component (empty for text-only probes) and t1:n is the text token sequence.
- The attack goal is to construct an adversarial example q′ = (v′, t̂1:n), with optimization objective (v′, t̂1:n) = argmin −log p(tn+1:n+m ∣ v′, t̂1:n; θ), subject to a visual perturbation budget ‖v′−v‖∞ ≤ ϵ and a text perplexity threshold PPL ≤ β (to ensure stealthiness); text-only jailbreaks omit the visual term.
Component Design
- Model: A unified interface abstracts cloud APIs and local deployments, including query, get_gradients, get_embedding; supports OpenAI-style endpoints (with conversation history management, multimodal input, automatic retries) and local models (full gradient access, supporting GCG); multi-turn jailbreaks are controlled by the maintain_history parameter.
- Dataset: An ordered set of harmful queries D = {q1, …, qN}; StaticDataset for small-scale testing, JSONLDataset supports streaming loading of benchmarks such as AdvBench and HarmBench.
- Attack: 37 methods uniformly transform a query q into q′, returning an AttackResult containing the original query, success flag, adversarial prompt, model response, conversation history, computational cost, and adversarial image path.
- Judge: Dual-judge architecture—Keyword-Based Judge uses pattern matching for fast large-scale refusal detection, LLM-Based Judge uses semantic analysis for complex responses; outputs a 1–5 harmfulness score (Table 3: 1 is active refusal, 5 is full compliance with the harmful instruction), success_threshold θ is configurable, s ≥ θ is judged successful.
- Evaluator: Aggregates results to compute four metrics—ASR, Attack Efficiency (average cost c̄, including time, API calls, input/output tokens), Attack Stealthiness (perplexity or semantic similarity to benign inputs), Attack Diversity (mean pairwise cosine distance of successful adversarial prompt embeddings).
Orchestration and Extension
- Orchestrator four-stage process (Algorithm 1): initialize result container and thread pool → execute attacks in parallel across datasets → aggregate evaluation → report; design principles include single responsibility, ThreadPoolExecutor parallelism (max_workers configurable), fault isolation (a single attack failure does not interrupt), tqdm progress tracking.
- Registry mechanism: Each component type has an independent registry, with decorator registration (e.g., @attack_registry.register("pair")), supporting runtime dynamic assembly by configuration; adding new attacks requires no changes to core code (Appendix A.2 gives a BaseAttack interface example).
Attack Taxonomy (Table 2)
- The 37 methods are divided by strategy paradigm into: white-box (GCG, Visual Jailbreak), black-box optimization and fuzzing (AutoDAN, GPTFuzzer, etc., 6 methods), LLM-driven rewriting (PAIR, ReNeLLM, etc., 4 methods), linguistic and encoding (CipherChat, CodeAttack, etc., 8 methods), context deception (DeepInception, Crescendo, RedQueen, CoA), multimodal-specific (FigStep, IDEATOR, etc., 9 methods), multi-agent collaboration (ActorAttack, Rainbow Teaming, X-Teaming, EvoSynth).
What experiments did the paper conduct?
Running 37 attacks × 20 models on HarmfulBench under a black-box setting, average ASR 49.14%, with EvoSynth reaching 100% on most models.
Experimental Setup
- Models tested: 20 in total. 10 MLLMs: GPT-5.2, GPT-5.1, Claude Haiku 4.5, Gemini 3 Pro Preview, Gemini 2.5 Flash Thinking, Mistral Large 3, Llama-4-Maverick, Llama-4-Scout, Grok 4.1 Fast, Doubao-Seed-1.6; 10 LLMs: Qwen3-Max, Qwen3-235B-A22B-Thinking, Qwen3-Next-80B-A3B, DeepSeek-R1, DeepSeek-V3.2, Kimi K2-Instruct-0905, MiniMax-M2, GLM-4.6, Hunyuan-A13B-Instruct, ERNIE-4.5-300B-A47B.
- Dataset: HarmBench Standard (written as HarmfulBench in Section 4.1.1), covering 6 risk categories (Cybercrime & Unauthorized Intrusion, Chemical & Biological Weapons/Drugs, Misinformation & Disinformation, Harassment & Bullying, Illegal Activities, General Harm); the paper does not report the number of queries used.
- Attack configuration: All 37 attacks are evaluated under a strict black-box setting, relying only on API-level outputs; each method configures hyperparameters such as iteration count, mutation rate, and query budget (specific values are not listed in the main text).
- Helper models: All helper models (attacker, mutator, planner, optimizer) use DeepSeek-V3.2 (temperature 1.0); the judge model uses GPT-4o-mini (temperature 0.0), with success threshold score = 5; semantic similarity uses text-embedding-3-large; multimodal attacks use Imagen-4.0-fast to generate adversarial images and Qwen2.5-VL-32B-Instruct as the visual attack model.
- Concurrency settings: 25 parallel workers per target model, 32 parallel workers for the evaluation module.
- Metrics: ASR (primary metric), Attack Efficiency (tokens/call count), Attack Stealthiness (PPL measured with the Qwen3-32B base model), Attack Diversity (mean pairwise cosine distance of successful prompt embeddings).
Main Results
The table below shows the average ASR (%) of each model across the 37 attacks; per the introduction's contribution list and the calculation basis of Table 5 and Table 6, the paper's reported values prevail; the paper gives average ASR for only 6 models in the introduction, with the rest taken from statements in the main text:
Model Average ASR Source Claude Haiku 4.5 13.44% Introduction GPT-5.2 22.94% Introduction Gemini 3 Pro Preview 33.34% Introduction Qwen3-Max 37.60% Introduction Doubao-Seed-1.6 54.13% Introduction DeepSeek-V3.2 72.46% Introduction - The authors state that the average ASR across the 20 models is 49.14%, with only GPT-5.2 and Claude Haiku 4.5 having average ASR below 30%, and all others exceeding that threshold.
- Single-attack single-model extremes (Table 5, Table 6): EvoSynth achieves 100.0% ASR on GPT-5.1, Gemini 3 Pro Preview, Gemini 2.5 Flash, Mistral Large 3, both Llama-4 variants, Grok 4.1 Fast, Doubao-Seed-1.6, and all 10 LLMs, 99.0% on GPT-5.2, and 74.0% on Claude Haiku 4.5; Mousetrap achieves 100.0% on Mistral Large 3, Grok 4.1 Fast, and Doubao-Seed-1.6, and 97.5% against GPT-5.2; X-Teaming is above 85% on most models.
- Counterexamples and polarization: RedQueen and CoA have ASR below 10% on multiple models (e.g., RedQueen is 0.0% against GPT-5.2); Grok 4.1 Fast is 1.5% against RedQueen and 90.5% against X-Teaming; MiniMax-M2 is 0% against DeepInception and 90% against PAIR.
Attack Efficiency Analysis (Figure 2, GPT-5.2 only)
- What was measured: Input/output tokens and call counts for each attack method (log10 scale).
- Results: GPTFuzzer consumes the most (9.44M total tokens, 9,705 calls, of which 6.19M are output); followed by DrAttack (6.75M, 3,224 calls), Crescendo (6.11M, 1,161 calls), AutoDAN (5.14M, 9,406 calls); TreeAttack, AutoDAN-Turbo, SI, X-Teaming, CoA, IDEATOR are about 1.6M–3.3M tokens; lightweight methods such as FlipAttack, Prefill, JailBroken, ICA are below 200k tokens.
- Authors' interpretation: Iterative query-based methods dominate cost, and lightweight methods are suitable for low-budget scanning.
Attack Stealthiness Analysis (Figure 3, GPT-5.2 only)
- What was measured: PPL of adversarial prompts measured with the Qwen3-32B base model, divided into high (<10)、中(10–30)、低(>30) three tiers.
- Results: The high-stealth tier includes SeqAR (4.18), ICA (5.18), CodeAttack (5.43), DrAttack (7.09); the medium tier includes RainbowTeaming (11.88), GPTFuzzer (14.35), X-Teaming (14.89), Crescendo (22.48), PAIR (23.63); FlipAttack is highest (412.15).
- Authors' interpretation: Effectiveness and stealthiness are uncorrelated—Mousetrap achieves 97.5% ASR with PPL 17.01, while SeqAR has PPL 4.18 but ASR only 25%; the authors recommend defenders combine semantic analysis and perplexity filtering in multi-layer detection.
Attack Diversity Analysis (Figure 4, GPT-5.2 only)
- What was measured: Mean pairwise cosine distance of successful adversarial prompt embeddings.
- Results: High diversity (>0.70): EvoSynth (0.820), X-Teaming (0.795), PAIR (0.787), IDEATOR (0.770), Crescendo (0.766); low diversity (<0.40): CipherChat (0.055), CodeAttack (0.108), SeqAR (0.087); RainbowTeaming, CS-DJ, JOOD are near zero (<0.001).
- Authors' interpretation: Diversity is not always correlated with ASR—Mousetrap has diversity only 0.174 but ASR 97.5%, while TreeAttack has higher diversity but ASR only 11.0%; the authors recommend red teams combine high-diversity methods (to find vulnerabilities) with low-diversity methods (to exploit known weaknesses).
Other Ablations and Analyses
- The paper does not conduct traditional ablations; Section 4.2 aggregates by Table 2 paradigm: the authors state that multi-agent and optimization-based methods are strongest, with EvoSynth approaching near-universal success; template-heavy, shallow linguistic/encoding methods have high variance and are unstable across models.
What are some points that can be further explored?
The authors plan to extend attack paradigms and modalities; the experiments cover only a single dataset and 20 models, and the multi-dimensional analyses target only GPT-5.2.
Limitations and future directions noted by the authors
- Extending attack paradigms: the Conclusion states a plan to "integrating emerging attack paradigms", continuously integrating new attack methods.
- Extending modality support: the Conclusion states a plan to "enhancing support for additional modalities".
- Community-driven evolution: the Conclusion states a plan to "fostering community-driven evolution", and OpenRT is open-sourced with a commitment to long-term maintenance.
- The paper has no dedicated Limitations section; all of the above come from the outlook statements in the Conclusion.
Scope of experimental coverage
- The models tested are the 20 listed in the paper (10 MLLMs + 10 LLMs); the dataset is only HarmBench Standard, and the paper does not report the number of queries used or the number of repetitions.
- All 37 attacks are evaluated under a strict black-box setting (Section 4.1.2); the white-box attacks supported by the framework (GCG, Visual Jailbreak) are not reported in the experiments.
- The three analyses of efficiency, stealthiness and diversity (Figures 2, 3, 4) use only GPT-5.2 as the target model; stealthiness is measured as PPL using the Qwen3-32B base.
- Judging uses a dual-judge architecture of GPT-4o-mini (threshold score = 5) plus keyword judging; the paper does not report the agreement between the judge model and human judgment.
- All helper models are fixed to DeepSeek-V3.2 (temperature 1.0); the paper does not report the effect of changing the helper model.
Summarize the main content of the paper
OpenRT unifies 37 attacks to evaluate 20 models, with an average ASR of 49.14%; the authors state that defenses of frontier models do not generalize.
Shanghai AI Laboratory technical report, releasing the open-source red-teaming framework OpenRT, addressing the fragmentation problem in MLLM safety evaluation.
- Problem to solve: Existing red-teaming frameworks have narrow attack coverage, limited threat models, and lack unified, extensible evaluation infrastructure, making it difficult to establish standardized attack baselines.
- Method highlights: The red-teaming pipeline is decoupled into six modules: Model, Dataset, Attack, Judge, Evaluator, and Orchestrator, assembled via a decorator registry plus YAML configuration; an asynchronous engine supports high concurrency; 37 attacks are integrated (white-box gradient, black-box optimization, multi-turn, multimodal, multi-agent); keyword plus LLM dual judging, with a 1–5 harmfulness score.
- Core results: Evaluating 20 models on HarmBench Standard under a strict black-box setting, average ASR 49.14%; only GPT-5.2 (22.94%) and Claude Haiku 4.5 (13.44%) have average ASR below 30%, and DeepSeek-V3.2 is highest (72.46%).
- Attack landscape: EvoSynth reaches 100.0% ASR on 10 LLMs and 9 MLLMs, and X-Teaming exceeds 85% on most models; simple multi-turn methods such as RedQueen and CoA are below 10% on multiple models; model robustness is polarized (Grok 4.1 Fast: 1.5% against RedQueen, 90.5% against X-Teaming).
- Authors' conclusions: The authors state that current safety training overfits to static templates, and adaptive, multi-turn, multi-agent attacks now dominate the attack landscape; reasoning enhancement (CoT) does not bring stronger robustness, and multimodal inputs often bypass text safety mechanisms; closed-source deployment's "safety through obscurity" provides no substantive protection.
- Authors' recommendations: Move toward Defense-in-Depth (intrinsic architectural safety + runtime risk estimation + multimodal multi-turn adversarial training), and use infrastructure such as OpenRT for continuous red-teaming to prevent benchmark overfitting.