Skip to content

Prompt injection red-teaming of frontier models with curriculum reinforcement learningClimbing the Hill: Prompt Injection Red-Teaming Against Frontier Models with Curriculum Reinforcement Learning

arXiv: Jailbreaks, Prompt Injection, Poisoning & Defenses· arXiv:2609.33628· Chenlong Yin, Xiaolong Jin, Wei Zou, Yanting Wang, Jinyuan Jia·Indexed by this site · 2026-10-01· Originally publishedSelected AttacksSelectedAttention43

Quick read

Attacks

Based on the paper PDF (generated by Gemini); refer to the original

The study solves cold-start via curriculum reinforcement learning across target models, achieving 45.0% ASR@10 against GPT-5.6-Terra on AgentDyn.

Threat modelBlack-box access: the attacker can only query the target model, without access to weights or output logits; by inserting injection prompts into the external context read by the agent, they induce it to execute malicious tasks.

Questions
Reinforcement learning automated prompt injection red teams face a cold-start problem with frontier large models: all attempts by the initial attack model are blocked by defenses, resulting in all-zero rewards and collapsed advantage values, so the RL algorithm cannot obtain learning signals to guide policy updates.
Methods
Fixing the red-team task and training data, the curriculum is built on a sequence of target models with increasing robustness; before each stage, a pre-test is conducted with the current policy frozen to ensure non-zero success on the new target model, allowing RL to update the policy from informative groups.
Experiments and results
On AgentDyn, curriculum RL achieves 45.0% ASR@10 on GPT-5.6-Terra (baselines all 0%); the trained attack model zero-shot transfers to GPT-6-Luna, which was not involved in training, achieving 47.3% ASR@10, and generalizes to the AgentDojo benchmark.
Limitations and future work
The authors note that due to query budget constraints, RL training was not conducted for GPT-5.6-Sol; the experimental coverage uses only a single Qwen3-4B-Instruct-2507 attack base, and tasks are limited to the two agent environments AgentDyn and AgentDojo.
Experimental setupGPT-5.6-Luna、GPT-5.6-Terra et al. · AgentDyn、AgentDojo · ASR@1、ASR@10 et al.
Evaluated models
GPT-5.6-LunaGPT-5.6-TerraGPT-5-nanoGPT-4o-miniGPT-6-LunaMuse-Spark-1.2Muse-Spark-1.3GLM-5.3-flashGemini-3.6-flashDeepSeek-v4-flash-0731Qwen3.6-27B-SecOPDGPT-5.6-SolLlama-3.1-8B-Instruct
Benchmarks
AgentDynAgentDojo
Metrics
ASR@1ASR@10Utility
AI summaryand selection rationaleThe researchers propose using curriculum learning to solve the cold-start problem in RL prompt injection red-teaming: when training an attacker LLM directly against a frontier target, all attacks fail and the reward is constantly zero, so it cannot learn. The method is to train the same attacker LLM sequentially on a series of target LLMs with increasing robustness, warm-starting each stage from the previous stage's results, and requiring that after each stage the attacker already has partial success against the next target. On AgentDyn, the curriculum GPT-5-nano → GPT-5.6-Luna → GPT-5.6-Terra achieves ASR@10 of 93.8% and 45.0% against GPT-5.6-Luna and GPT-5.6-Terra respectively, whereas RL-Hammer and PISmith trained directly both achieve 0%.

The researchers propose using curriculum learning to solve the cold-start problem in RL prompt injection red-teaming: when training an attacker LLM directly against a frontier target, all attacks fail and the reward is constantly zero, so it cannot learn. The method is to train the same attacker LLM sequentially on a series of target LLMs with increasing robustness, warm-starting each stage from the previous stage's results, and requiring that after each stage the attacker already has partial success against the next target. On AgentDyn, the curriculum GPT-5-nano → GPT-5.6-Luna → GPT-5.6-Terra achieves ASR@10 of 93.8% and 45.0% against GPT-5.6-Luna and GPT-5.6-Terra respectively, whereas RL-Hammer and PISmith trained directly both achieve 0%.

Why it was selectedThe paper provides a complete method for curriculum RL training of attacker LLMs and publicly releases transfer data across targets and benchmarks, which can serve as a reference for red teams and defenders.

Related events and news

1 events · 1 news mentions

News that mentions this paper

Adversa AI 汇总 10 月 AI Agent 安全资源

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Addressing the all-zero reward cold-start challenge faced by reinforcement learning red teams when attacking frontier large models.

    Reinforcement learning automated prompt injection red teaming faces a cold-start problem when confronting frontier large models with strong defenses.

    • Application scenario and risk background: Large language models (LLMs) are widely used to build autonomous agents that can call external tools and perform actions. During task execution, agents need to read external content such as web pages or tool outputs, making them susceptible to indirect prompt injection attacks, where attackers can hijack agent behavior by embedding malicious instructions in external content.
    • Limitations of existing reinforcement learning methods: Existing reinforcement learning red team methods (such as PISmith and RL-Hammer) primarily learn attack strategies through sparse reward mechanisms. However, when facing stronger frontier target models (such as GPT-5.6-Luna and GPT-5.6-Terra), all injection samples generated by the initial attack model are blocked, resulting in all-zero rewards, causing the group advantage values in the policy gradient to all become zero, and the reinforcement learning algorithm cannot obtain any effective learning signal.
    • Core observation and hypothesis: The authors believe that task difficulty mainly depends on the robustness of the target model, so a curriculum can be constructed by fixing the red team task and training the attack model sequentially on progressively stronger target models. The authors also observe that simply jumping directly from a weak model to a frontier model still leads to cold start; the key is that after each intermediate stage, the attack model must achieve local success on the next stage's target.
    • Proposed solution: The study proposes a Curriculum Reinforcement Learning over Targets red team framework for frontier large models, which uses progressively more robust models as training stepping stones and conducts low-cost non-zero success rate pre-checks before entering each stage, allowing the attack model to steadily obtain learning signals.
    • Threat model:
      • Attacker goal: Generate injection prompts embedded in external contexts to induce the target agent to execute malicious tasks specified by the attacker.
      • Attacker knowledge: Black-box access; the attacker can send query inputs to the target model but cannot access its model weights or output logits.
      • Attacker capability: The attacker can insert text-form injection prompts into external contexts read by the agent (such as web pages or tool output environment fields).
      • Victim system: Autonomous agent systems built on frontier large language models (such as the AgentDyn and AgentDojo evaluation environments).
  2. What related research exists?

    Reviews static, search-based, and reinforcement learning red-teaming work, and proposes a curriculum mechanism across target models.

    The paper reviews related work from four aspects: static attacks, search-based attacks, reinforcement learning-based attacks, and curriculum learning in reinforcement learning.

    Static Prompt Injection Attacks

    • Perez & Ribeiro (2022), Greshake et al. (2023), Liu et al. (2024), Debenedetti et al. (2024), Geng et al. (2026) rely on predefined templates (e.g., ignore context, fake completion). The authors note that these methods are non-adaptive attacks and are easily filtered by defenses.

    Search-based Prompt Injection Attacks

    • TAP (Mehrotra et al., 2024) organizes iterative refinement of injection prompts as tree search; PAIR (Chao et al., 2023) models it as multi-turn dialogue; Geng et al. (2026) and Wang et al. (2026) use auxiliary models for search optimization. The authors note that these methods require instance-level optimization per sample at inference time, incurring significant computational overhead.

    Reinforcement Learning-based Prompt Injection Attacks

    • RL-Hammer (Wen et al., 2025) mitigates sparse rewards by jointly training on a defense-free auxiliary model and a defended target model; PISmith (Yin et al., 2026) introduces adaptive entropy regularization and dynamic advantage weighting to learn from sparse successes; Chen et al. (2026) and Nasr et al. (2026) also explore RL red teaming. The authors note that when the target is a frontier model, the attack model finds no successful samples at all, causing these methods to fail under all-zero rewards.
    • GPT-Red (OpenAI, 2026) is a model trained internally by OpenAI using self-play reinforcement learning. The authors note that neither the model nor its training recipe has been released.

    Curriculum Learning in RL

    • The classic theory of curriculum learning originates from Bengio et al. (2009), Narvekar et al. (2020), Graves et al. (2017), and others, and is also widely applied in model post-training (e.g., E2H, CLPO proposed by Parashar et al. 2025), typically ordering reasoning tasks from easy to hard.

    Comparison Baselines and Benchmarks

    • Baseline methods compared in experiments include static attack, base attacker (unfine-tuned Qwen3-4B-Instruct-2507), directly trained PISmith, and jointly trained RL-Hammer.
    • Benchmarks used are the agent prompt injection benchmarks AgentDyn and AgentDojo.

    Positioning of This Paper

    • The paper positions itself as a black-box prompt injection red-teaming method for frontier models; unlike traditional curriculum learning that orders task samples, this paper keeps the red-team task fixed and builds the curriculum on a sequence of target models with increasing robustness.
  3. How does the paper address this problem?

    Through frozen policy pre-testing and progressive training across target models, ensure non-zero reward signals at each stage.

    The paper proposes solving the cold-start problem through Curriculum Reinforcement Learning over Targets, using a sequence of target models with increasing robustness as a ladder to guide policy training.

    Problem Formalization and Cold-Start Mechanism

    • Optimization objective: Let the target large model be M, the training sample set be Dtr, where each sample contains a user instruction, external context, and injection task. The attack model outputs injection prompts, and the overall optimization objective is the single-attempt attack success rate: maxϕ JM(ϕ) = 𝔼z ∼ 𝒟tr 𝔼p ∼ πϕ(·|z) [rM(z, p)] where the binary reward is 1 when the agent's response satisfies the injection goal, and 0 otherwise.
    • Definition of group collapse: When using group-relative policy optimization-type algorithms, K injection candidates are sampled for each sample and group advantages are computed. A group of prompts is called an informative group if and only if it contains at least one successful sample and one failed sample. The probability of sampling an informative group is given by: ΛK(πϕ, M) = 𝔼z ∼ 𝒟tr [1 − (1 − sM(z; ϕ))K − sM(z; ϕ)K] where represents the single-attempt success probability. When the target is a frontier model, the initial success probability approaches 0, and the informative group probability collapses to 0, making all advantage values zero and preventing updates.

    Curriculum Design and Progression Conditions Across Target Models

    • Target curriculum definition: Let the final target be M⋆, and the set of intermediate target models be M. The target curriculum is defined as an ordered target sequence C = (Mc1, Mc2, ..., McL), where McL = M⋆.
    • Stage update recursion: The attack model is iteratively updated across stages; the ℓ-th stage uses the policy from the (ℓ-1)-th stage as initial weights and runs the same reinforcement learning algorithm (PISmith in experiments) on the target model. Except for the change in target model, the attack base model, algorithm, prompt template, and training set remain completely unchanged.
    • Guiding principle for curriculum design: To avoid cold start, it is required that at the initial state of each stage, the probability of sampling an informative group is not lower than a threshold τ > 0. The authors note that simply ordering from weak to strong does not guarantee this condition.

    Practical Screening Test Before Stage Training

    • Pre-test proxy mechanism: Before executing full training for the ℓ-th stage, the previous stage's policy is frozen and directly tested on the training set for its attack success rate against the target model (called pre-stage ASR).
    • Algorithm decision process: As shown in Algorithm 1, the algorithm prioritizes selecting the most robust model from the candidate model set where the current frozen policy has non-zero pre-stage ASR as the next stage's stepping stone; if no candidate model with non-zero success rate exists, it determines that it cannot proceed to the next stage via warm start.

    Attack Prompt Template Design and Behavioral Evolution

    • Fixed prompt template: Appendix B provides a unified input prompt template containing the current user task, injection goal, and injection position placeholder, requiring the model to generate injection text wrapped in specific tags. This template remains consistent across all stages, models, and benchmarks.
    • Policy evolution pattern: Through case studies in Appendix D, the authors note that the attack model undergoes behavioral changes as the curriculum progresses: models trained early on weak models tend to use statements that forcibly override or cancel the user task; after training through strong model stages, the model shifts to preserving the user task and rewriting it into a new workflow that includes injection steps, thereby evading the safety alignment mechanisms of frontier models.
  4. What experiments did the paper conduct?

    Achieves 45.0% ASR@10 on GPT-5.6-Terra and demonstrates cross-model and cross-benchmark transfer capability.

    The paper conducted multi-stage curriculum training, cross-model transfer, cross-benchmark transfer, and different reasoning effort experiments on two agent benchmarks, AgentDyn and AgentDojo.

    Experimental Setup

    • Target models under evaluation: GPT-4o-mini, GPT-5-nano, GPT-5.6-Luna, GPT-5.6-Terra, GPT-5.6-Sol, GPT-6-Luna, Muse-Spark-1.2, Muse-Spark-1.3, GLM-5.3-flash, Gemini-3.6-flash, DeepSeek-v4-flash-0731, Qwen3.6-27B-SecOPD, and auxiliary model Llama-3.1-8B-Instruct.
    • Attack base model and algorithm: The attack model uniformly uses Qwen3-4B-Instruct-2507, and the reinforcement learning algorithm for each stage uniformly uses PISmith.
    • Evaluation dataset and scale: The main evaluation benchmark AgentDyn contains 60 tasks and 560 test cases, covering three domains: Shopping, GitHub, and DailyLife; training is only performed on the GitHub subset with 180 tasks. Cross-benchmark validation uses AgentDojo (containing 97 tasks and 629 test cases, covering four suites: Workspace, Banking, Travel, Slack).
    • Baseline methods: PISmith directly trained on the target model, RL-Hammer jointly trained with weak and target models, static attack, and a base attacker without fine-tuning.
    • Metrics and evaluation sampling: Each test case samples 10 injection prompts. Metrics include ASR@1 (single prompt attack success rate) and ASR@10 (proportion with at least one success in 10 attempts). The target model is set to medium reasoning effort by default.

    Main Results

    The table below shows attack success rates on GPT-5.6-Luna and GPT-5.6-Terra under different training configurations on the full AgentDyn benchmark (from Table 1):

    Swipe horizontally to read the table

    Training configuration / Target modelGitHub (ASR@1 / @10)DailyLife (ASR@1 / @10)Shopping (ASR@1 / @10)Overall (ASR@1 / @10)
    Evaluation target: GPT-5.6-Luna
    PISmith (direct training)0.0% / 0.0%0.0% / 0.0%0.0% / 0.0%0.0% / 0.0%
    RL-Hammer (joint training)0.0% / 0.0%0.0% / 0.0%0.0% / 0.0%0.0% / 0.0%
    GPT-4o-mini → GPT-5.6-Luna0.5% / 1.7%0.5% / 1.5%0.3% / 1.1%0.4% / 1.4%
    GPT-5-nano → GPT-5.6-Luna75.7% / 92.8%74.4% / 90.0%47.8% / 79.4%66.3% / 87.5%
    5-nano → 5.6-Luna → 5.6-Terra80.3% / 96.1%75.9% / 97.0%51.8% / 87.8%69.6% / 93.8%
    Evaluation target: GPT-5.6-Terra
    PISmith (direct training)0.0% / 0.0%0.0% / 0.0%0.0% / 0.0%0.0% / 0.0%
    RL-Hammer (joint training)0.0% / 0.0%0.0% / 0.0%0.0% / 0.0%0.0% / 0.0%
    GPT-5-nano → GPT-5.6-Terra1.2% / 2.2%0.7% / 1.0%0.8% / 1.7%0.9% / 1.6%
    5-nano → 5.6-Luna → 5.6-Terra29.2% / 58.3%17.9% / 45.0%7.9% / 31.7%18.3% / 45.0%
    • Direct training and joint baselines fail: PISmith and RL-Hammer both achieve 0.0% ASR@1 and ASR@10 on the two target models; the authors note this is due to cold start preventing the policy from obtaining rewards.
    • Excessive span causes curriculum failure: If GPT-4o-mini is used as the first-stage target, subsequent training on GPT-5.6-Luna only achieves 1.4% ASR@10; if GPT-5.6-Luna is skipped and GPT-5.6-Terra is trained directly from GPT-5-nano, ASR@10 is only 1.6%.
    • Three-stage curriculum significantly improves success rates: With the full three-stage curriculum, 93.8% ASR@10 is achieved on GPT-5.6-Luna, and 45.0% ASR@10 on the more robust GPT-5.6-Terra.

    Cross-Model Zero-Shot Transfer and Continued Reinforcement Learning

    • Unseen target model transfer experiments: The attack model trained for GPT-5.6-Terra is zero-shot transferred to 6 unseen models (from Table 2), achieving 21.4% ASR@1 and 47.3% ASR@10 on GPT-6-Luna; 71.4% ASR@1 and 95.4% ASR@10 on DeepSeek-v4-flash-0731; and 49.0% ASR@1 and 87.1% ASR@10 on Qwen3.6-27B-SecOPD with safety alignment defenses.
    • Continued reinforcement learning based on transferred policy: Using the GPT-5.6-Terra attack model as initial weights, continued reinforcement learning on Muse-Spark-1.2 (from Table 3) improves ASR@1/ASR@10 on Muse-Spark-1.2 from 14.2%/35.5% to 61.9%/82.3%; when directly testing the newly released Muse-Spark-1.3 without additional training, ASR@1/ASR@10 improves from 6.7%/22.0% to 45.4%/73.9%.

    Cross-Benchmark Transfer Evaluation

    • Generalization validation on AgentDojo: The attack model trained only on the AgentDyn GitHub subset is directly tested on the four AgentDojo suites without retraining (from Table 4). The GPT-5.6-Luna attack model achieves overall 41.7% ASR@1 and 72.5% ASR@10; the GPT-5.6-Terra attack model achieves overall 10.4% ASR@1 and 29.9% ASR@10, with the Slack suite reaching 57.1% ASR@1 and 91.4% ASR@10. Baselines are all 0.0% in this setting.

    Other Ablations and Analyses

    • Pre-stage success rate check: On the GitHub training set, the GPT-5-nano attack model has pre-stage ASR@1 and ASR@10 of 0.0% against GPT-5.6-Terra (no success in 1800 attempts); after training through the GPT-5.6-Luna stage, pre-stage ASR@1 against GPT-5.6-Terra is 1.9% and ASR@10 is 6.1% (from Table 5).
    • Zero-shot transfer to strongest model GPT-5.6-Sol: The GPT-5.6-Terra attack model zero-shot transferred to GPT-5.6-Sol achieves ASR@1 of 2.9% and ASR@10 of 7.3% on the full dataset, ASR@10 of 16.7% on the GitHub subset, and the victim agent maintains 75.0% utility on normal tasks (from Table 6).
    • Target model reasoning effort analysis: On AgentDyn, as GPT-5.6-Terra's reasoning effort increases from low to mid to high, the attack model's overall ASR@10 decreases from 48.4% to 45.0% to 43.6% (from Table 7); on AgentDojo, overall ASR@10 decreases from 31.9% to 29.9% to 26.1% (from Table 8).
  5. What are some points that can be further explored?

    The authors note that budget constraints prevented training the Sol model and that curriculum construction is costly; experiments are limited to a single attack base model.

    This section summarizes the limitations and research boundaries explicitly stated by the authors, as well as the actual coverage of the experiments.

    Limitations and future directions noted by the authors

    • Compute and query budget constraints prevented full training of the strongest model: The authors note in Appendix C.2 that because GPT-5.6-Sol is the most robust model in the GPT-5.6 series and has significantly higher query costs than GPT-5.6-Terra, budget constraints prevented RL training for it; only direct transfer results are reported. The authors plan to conduct RL training for GPT-5.6-Sol in the future with a larger query budget.
    • Cost challenges of constructing new curricula: The authors note in Section 4 that building a new curriculum for each target model is costly, and in practice attackers may not know the specific underlying model used by an application.
    • Potential of adversarial training for defense enhancement: The authors note in Section 5 that this red-teaming method could in the future help train more robust models, for example as an adaptive attack method for adversarial training.

    Experimental coverage

    • Target and auxiliary model scope: Experiments tested 12 target models: GPT-4o-mini, GPT-5-nano, GPT-5.6-Luna, GPT-5.6-Terra, GPT-5.6-Sol, GPT-6-Luna, Muse-Spark-1.2, Muse-Spark-1.3, GLM-5.3-flash, Gemini-3.6-flash, DeepSeek-v4-flash-0731, Qwen3.6-27B-SecOPD, and Llama-3.1-8B-Instruct as the RL-Hammer auxiliary model.
    • Attack strategy base model: All training phases and transfer tests used Qwen3-4B-Instruct-2507 as the sole attack model base; the paper does not report results for other attack model architectures or larger parameter counts.
    • Benchmark environment and training data: RL training was conducted only on the GitHub subset of the AgentDyn benchmark (180 tasks); evaluation covered the full AgentDyn set (560 test cases) and the full AgentDojo set (629 test cases).
    • Black-box query setting and sampling count: All attacks were conducted under black-box access; during testing, each case was sampled with a fixed 10 injection prompts (ASR@1 and ASR@10).
    • Unreported metric details: The paper does not report the total number of query calls or training runtime for each phase during RL training, nor does it report human evaluation consistency data.
  6. Summarize the main content of the paper

    Proposing cross-target model curriculum reinforcement learning to break the cold-start bottleneck of frontier models and achieve cross-model transfer.

    This study addresses the cold-start problem in reinforcement learning automated prompt injection red teaming when attacking frontier large models, proposing a curriculum reinforcement learning method based on progressive robustness of target models.

    • Core positioning and problem: Existing reinforcement learning red team algorithms, when directly facing well-defended frontier large models, encounter all-zero rewards because all attack attempts fail, causing group advantage values to zero out and interrupting optimization signals; jumping directly from a weak model to a frontier model usually also fails to establish an effective transition.
    • Method design: The study fixes the red team task and training data, building the curriculum on a sequence of target models with increasing robustness (e.g., GPT-5-nano → GPT-5.6-Luna → GPT-5.6-Terra). Each stage uses the PISmith algorithm for warm-start fine-tuning, and before advancing to the next stage, a low-cost non-zero success rate pre-check is performed on the frozen policy to ensure the policy can sample informative groups containing both successes and failures on the new target.
    • Main experimental results:
      • On the AgentDyn benchmark, three-stage curriculum training enables the attack model to achieve 93.8% ASR@10 on GPT-5.6-Luna and 45.0% ASR@10 on GPT-5.6-Terra, while PISmith and RL-Hammer direct training both achieve 0.0% (from Table 1).
      • If the intermediate stage GPT-5.6-Luna is removed, ASR@10 on GPT-5.6-Terra drops to 1.6%; if GPT-4o-mini is used as the first stage, ASR@10 on GPT-5.6-Luna is only 1.4% (from Table 1).
      • The trained attack model demonstrates cross-model transfer capability, achieving 47.3% ASR@10 on unseen target GPT-6-Luna and 87.1% ASR@10 on the Qwen3.6-27B-SecOPD defense model (from Table 2); it can also serve as warm-start initial weights, improving Muse-Spark-1.2's ASR@10 to 82.3% (from Table 3).
      • A policy trained only on the AgentDyn GitHub subset successfully transfers to the AgentDojo benchmark, achieving 72.5% and 29.9% ASR@10 on GPT-5.6-Luna and GPT-5.6-Terra, respectively (from Table 4).
    • Author conclusions and implications: The authors believe that current frontier large models and alignment defenses remain vulnerable to adaptive prompt injection attacks and have not yet reached the requirements for safe deployment; carefully designed target model curricula can induce attack models to learn transferable injection disguise strategies, and this method can also serve as an adaptive attack mechanism for future adversarial training.

Related papers

Show 3 more papers
Read originalarxiv.org