Skip to content

SRFT: Let Agents Self-Reflect from Failure Experiences to Resist Prompt InjectionSelf-Reflection Fine-Tuning: Enhancing Agent Security against Prompt Injection Attacks from Failure Experience

Paper Tracker· arXiv:2610.04269· Zixuan Wang, Hao Li, Fengyu Gao, G. Edward Suh, Yi Zeng, Yevgeniy Vorobeychik, Ning Zhang, Chaowei Xiao·Indexed by this site · 2026-10-06· Originally publishedDefenses

Quick read

Defenses

Based on the paper PDF (AI-generated); refer to the original

SRFT lets the agent learn to reject injections from failure experience, reducing the Llama backbone ASR on AgentDojo from 7.59% to 1.26%.

Threat modelIndirect prompt injection: the attacker is a third party who inserts malicious instructions into external resources such as web pages or inboxes, causing the agent to execute the attacker's commands. The defender prevents hijacking by external instructions and tries to complete the original user task as much as possible; it does not assume the user is the attacker. The attacker only has realistic attack surfaces; the paper does not adopt the assumption that the external environment can be arbitrarily rewritten.

Questions
Tool-based LLM agents rely on web pages, emails, and tool returns, and indirect prompt injection can hijack the original task. The authors say existing alignment relies on static expert trajectories or preference optimization, which is hard to generalize to adaptive attacks.
Methods
SRFT inserts executable injections into clean expert trajectories, samples the agent's own failure actions, then has an expert model generate self-reflection comparing unsafe and optimal actions, and supervises fine-tuning to produce SR-Agent.
Experiments and results
SR-Agent on AgentDojo: Llama backbone ASR 1.26% (undefended 7.59%), Qwen3-8B backbone 1.05% (undefended 16.97%). RL-Hammer endpoint 17.5%, compared to Meta-SecAlign-8B at 69.5%.
Limitations and future work
Conclusion only proposes extension to computer-use and web agents, no separate limitations. Evaluation includes Llama-3.1-8B, Qwen3-8B/4B, AgentDojo and RL-Hammer; general capabilities only reported for Llama family.
Experimental setupSR-Agent-Llama、SR-Agent-Qwen3-8B et al. · AgentDojo、InjecAgent et al. · ASR、Benign Utility et al.
Evaluated models
SR-Agent-LlamaSR-Agent-Qwen3-8BSR-Agent-Qwen3-4B
Benchmarks
AgentDojoInjecAgentMMLUMMLU-ProIFEvalBBHAgentDynTOUCAN
Metrics
ASRBenign UtilityUtility under AttackTrade-off
AI summaryThe researchers propose the Self-Reflection Fine-Tuning (SRFT) training framework, letting LLM agents improve robustness by learning from their own failed experiences under adversarial conditions. The method does not passively imitate expert behavior; instead, it exposes agents to poisoned trajectories constructed with injection attacks, and then has an expert model generate structured self-reflection reasoning that compares unsafe actions with optimal actions, thereby learning to identify malicious instructions, reason about their consequences, and stay aligned with the original user intent. The authors build SR-Agent on Llama-3.1-8B-Instruct and Qwen3-8B and evaluate it on static and adaptive prompt injection benchmarks, showing that SRFT greatly reduces attack success rate while maintaining task performance and also exhibits strong generalization under adaptive attacks. The code is publicly available.

The researchers propose the Self-Reflection Fine-Tuning (SRFT) training framework, letting LLM agents improve robustness by learning from their own failed experiences under adversarial conditions. The method does not passively imitate expert behavior; instead, it exposes agents to poisoned trajectories constructed with injection attacks, and then has an expert model generate structured self-reflection reasoning that compares unsafe actions with optimal actions, thereby learning to identify malicious instructions, reason about their consequences, and stay aligned with the original user intent. The authors build SR-Agent on Llama-3.1-8B-Instruct and Qwen3-8B and evaluate it on static and adaptive prompt injection benchmarks, showing that SRFT greatly reduces attack success rate while maintaining task performance and also exhibits strong generalization under adaptive attacks. The code is publicly available.

Related events and news

1 events · 2 news mentions

News that mentions this paper

SRFT自我反思微调提升Agent抗提示注入能力

  • 安全内参cites the paper's id or link
    大模型自我反思微调,让 Agent 学会抵御未知的提示注入
    霍普金斯大学、圣路易斯华盛顿大学等机构的研究团队发布了论文《Self-Reflection Fine-Tuning: Enhancing Agent Security against Prompt Injection Attacks from Failure Experience》,提出了一种名为 SRFT(Self-Reflection Fine-Tuning,自我反思微调) 的安全训练方法。
  • 公众号 模安局cites the paper's id or link
    大模型自我反思微调 SRFT,让 Agent 学会抵御未知的提示注入
    霍普金斯大学、圣路易斯华盛顿大学等机构的研究团队发布了论文《Self-Reflection Fine-Tuning: Enhancing Agent Security against Prompt Injection Attacks from Failure Experience》,提出了一种名为 SRFT(Self-Reflection Fine-Tuning,自我反思微调) 的安全训练方法。

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Static expert trajectories struggle to cover adaptive injections; SRFT lets agents learn to reject hijacking from their own failures.

    LLM agents are susceptible to indirect prompt injection hijacking the original task when reading external tool content.

    • Scenario: The authors state that agents rely on web pages, emails, and tool returns to complete tasks such as navigation, computer operation, and programming. Malicious instructions in external content can cause goal hijacking. The authors state that OWASP 2026 lists prompt injection as the top risk for agent applications.
    • Existing shortcomings: System-level defenses use architecture and policies to restrict dangerous actions; the authors state that they require significant engineering effort and reduce generality. Model-level methods like StruQ, SecAlign, and Meta SecAlign rely on static expert trajectories or preference optimization; the authors state that they tend toward pattern matching and rigidly suppress external instructions.
    • Observation: When exposed only to predefined attacks and without feedback on attack outcomes, agents struggle to discover and correct failures. The authors state that reinforcement learning can collect out-of-distribution data, but environment construction and long-horizon training are costly.
    • Our method: Proposes Self-Reflection Fine-Tuning (SRFT). On injected trajectories, expose the agent's own failures, have an expert model compare unsafe actions with optimal actions and write self-reflections, then fine-tune to obtain SR-Agent.
    • Threat model:
      • Attacker goal: Third parties write malicious instructions into external resources such as web pages or inboxes, causing the agent to execute attacker commands.
      • Defender goal: Prevent external instruction hijacking while completing the original user task as much as possible. In indirect prompt injection, the user is not assumed to be the attacker.
      • Attacker capability: Only uses realistic attack surfaces. The authors do not adopt the assumption of arbitrarily rewriting the external environment, and state that this assumption would overestimate the attacker.
  2. What related research exists?

    Related work covers tool agents, prompt injection evaluation and red teaming, and system-level and model-level defenses.

    The paper groups related work in Section 2 and Appendix A by tool agents, prompt injection, and defenses, and explains differences in training data and multi-step trajectories.

    Agents and Tool Use

    • Early frameworks: ReAct (Yao et al., 2023) and Toolformer (Schick et al., 2023) interleave reasoning and tool actions to complete complex tasks.
    • Environment integration: Subsequent systems connect LLMs to browsers, code interpreters, third-party APIs, and operating systems (Nakano et al., 2022; Deng et al., 2023; Zhou et al., 2024; Yang et al., 2024; Xie et al., 2024; Wu et al., 2024, etc.).
    • Trajectory learning: Zhang et al. (2025) and Wang et al. (2025b) use demonstrations or environment feedback for supervised fine-tuning or reinforcement learning to enhance tool use. The paper only describes this.

    Prompt Injection and Evaluation

    • Attack surfaces: Perez and Ribeiro (2022), Wei et al. (2023) discuss models' difficulty in distinguishing trusted instructions from untrusted external content. Greshake et al. (2023), Kang et al. (2023) discuss malicious instructions in web pages, emails, documents, retrieved content, and API responses.
    • Benchmarks: InjecAgent tests relatively isolated single-step injection following. AgentDojo provides a sandbox, introducing attacks through tool observations in multi-step tool execution, and evaluates both safety and task utility.
    • Adaptive red teaming: PAIR and TAP (Chao et al., 2024; Mehrotra et al., 2024) iteratively rewrite jailbreak prompts using target feedback. RL-Hammer (Wen et al., 2025) uses GRPO to train an attack model to rewrite injections, with rewards from target responses.

    Prompt Injection Defenses

    • System-level: Sandboxing, permissions, tool policies, information flow restrictions, and external monitoring (Rebedea et al., 2023; Inan et al., 2023; Robey et al., 2024; Debenedetti et al., 2025; Li et al., 2025; Shi et al., 2025; Wu et al., 2025). The authors state these are effective in specific applications but require significant engineering and may not generalize well across environments.
    • Model-level: StruQ separates trusted instructions from untrusted inputs and fine-tunes; SecAlign frames defense as preference optimization; Meta-SecAlign extends this paradigm and provides an open-source safety base model, which the authors state achieves state-of-the-art. ReasAlign introduces structured reasoning into defense training.
    • Authors' critique: The authors state that the primary defense data for StruQ, SecAlign, and Meta-SecAlign comes from Cleaned Alpaca plus synthetic injections, and does not explicitly model multi-step tool interactions; such methods mainly imitate experts or perform pattern-based suppression, which may have limited generalization to diverse, adaptive attacks.

    Baselines and Benchmarks

    • Baseline methods: Undefended Llama-3.1-8B-Instruct, Qwen3-8B, Qwen3-4B, and Meta-SecAlign-8B on the same Llama backbone. The Qwen table does not include Meta-SecAlign as a comparison.
    • Benchmarks: AgentDojo, InjecAgent; general capabilities are MMLU, MMLU-Pro, IFEval, BBH; appendix also uses AgentDyn. Training trajectories come from TOUCAN.

    The authors distinguish SRFT from the above model-level defenses: it compares agent-sampled actions with expert actions and their possible consequences in multi-step tool trajectories, learning from failure experiences rather than merely imitating known defense patterns.

  3. How does the paper address this problem?

    SRFT has four stages: synthesize injected trajectories, sample failure actions, expert writes self-reflection, then supervised fine-tuning.

    SRFT changes prompt injection defense from imitating expert actions to learning from failure experiences. The four stages are: synthesize executable injections and insert into clean expert trajectories; sample the reference agent's original actions under attacked contexts; expert model writes self-reflection; supervised fine-tuning with reflection plus optimal actions yields SR-Agent.

    Trajectories and Training Objective

    • Trajectory: An agent trajectory is written as interleaved states and actions. s0 contains system prompt, tool definitions, and user instruction; ai is a tool call; si is tool output; the last step gives completion instructions or final answer. Injection can appear in any intermediate observation.
    • Supervision signal: Injection does not change the original task goal, so the optimal action remains the original expert action. During training, the model must first write self-reflection on the attacked prefix, then give that optimal action.
    • Loss: The objective in Section 4.5 is L=−log Pθ(Ci,ai∣ Hi), i.e., jointly predicting self-reflection Ci and optimal action ai given prefix Hi. The authors split it into two terms: first generate reflection, then generate action conditioned on reflection.

    Stage I: Injection Data Synthesis

    • Executable injections: Starting from expert demonstrations without injection, expert LLM G1 generates injection tasks according to the current toolset. In experiments, both G1 and subsequent chain-of-thought use Claude Sonnet 4.6. Appendix B.1 gives Template 1.
    • Insertion method: Injection tasks are converted into triggers via predefined trigger functions, inserted with probability 0.5 at random positions (beginning, middle, or end) of intermediate observations. The authors claim this avoids the model exploiting positional bias. The trigger pool has 750 templates, 20 from StruQ, 730 from TaskTracker.
    • Goal unchanged: After insertion, the optimal expert action remains unchanged. Appendix B.1 gives prompts, trigger templates, and an example attacked trajectory.

    Stages II–III: Failure Sampling and Self-Reflection

    • Sampling target: Not directly imitating attacked expert trajectories. At each step, sample candidate actions from a reference policy on the prefix, which may include following injection or unintended tool calls. In experiments, sample 3 responses per assistant step.
    • Reflection content: Expert LLM G2, per Template 2 in Appendix B.2, writes three paragraphs based on prefix, optimal action, and candidate set: summarize the situation and original user goal; point out injection in observations and explain malicious intent; compare optimal and candidate actions, optionally discussing consequences with hypothetical next observations, such as unintended tool use, deviation from original task, or information leakage.
    • Training vs. inference difference: Reflection is conditioned on injection ground truth and the reference model's own failures. The authors claim at inference the model does not see these conditions and must reproduce the three-paragraph analysis from dialogue alone. Appendix B.2 gives full prompts and an inference example.

    Stage IV: Fine-Tuning Setup

    • Optimization: Each step's objective is to generate reflection and optimal action under trajectory prefix. The former corresponds to safety awareness under adversarial observations, the latter to actions aligned with the original task.
    • Models and hyperparameters: Main model fine-tunes Llama-3.1-8B-Instruct; same data also trains Qwen3-8B and Qwen3-4B. LoRA rank 64, alpha 96, applied to every layer's query, key, value, output projections; Llama-3.1-8B has about 55M trainable parameters. Train 3 epochs, learning rate 5×10−6, cosine schedule, 10% warmup, effective batch 16, context 8k, bfloat16.
    • Qwen inference prompt: Qwen3's SR-Agent appends an instruction after the system prompt, requiring summarizing the original goal, identifying injection, and thinking of actions that both complete the task and reject injection. Appendix B.3 gives full text. The authors then use an untrained model to show this text alone is not a defense.

    Data Scale and Success Criteria

    • Training set: Base from TOUCAN's real MCP data, selecting Hotel booking, Email sender, Windows Command Line, Markdown Downloader, Minecraft Wiki. Filter 402 multi-tool user tasks, synthesize 38 malicious injection tasks; also insert user requests from 285 other trajectories in the same way, so inserted text is not always obviously malicious. Final 3698 trajectories, 22339 assistant steps. In Table 5, tool observations with injection account for 37.8%, text says 38%. Self-reflection averages 396 tokens, median 401 (Llama-3.1-8B tokenizer).
    • Criteria: Following AgentDojo and InjecAgent, report Benign Utility, Utility under Attack, and Attack Success Rate. AgentDojo additionally reports Trade-off, defined as Utility under Attack plus (100 minus ASR).
  4. What experiments did the paper conduct?

    SR-Agent-Llama's ASR on AgentDojo is 1.26%; its RL-Hammer final ASR is 17.5%.

    Experimental Setup

    • Models: SR-Agent-Llama, SR-Agent-Qwen3-8B, SR-Agent-Qwen3-4B. Baselines are Llama-3.1-8B-Instruct, Qwen3-8B, Qwen3-4B, and Meta-SecAlign-8B. Injections and chain-of-thought are generated by Claude Sonnet 4.6. RL-Hammer additionally trains an attacker LLaMA, and the reward also uses a weaker LLaMA with weight 3:1.
    • Benchmarks: AgentDojo includes Banking, Slack, Travel, Workspace, with 949 trajectories total, using the benchmark's default important instructions attacks. InjecAgent is used for adaptive evaluation: 510 direct-harm base cases (17 user tasks × 30 attack instructions), split into 310/100/100, with a test set of 100 cases shared across attackers. General capabilities are MMLU, MMLU-Pro, IFEval, BBH. Appendix AgentDyn includes shopping, GitHub, daily life, with 60 benign tasks and 560 attacked tasks.
    • Metrics: Benign Utility, Utility under Attack, ASR; Trade-off is UA plus (100 minus ASR). AgentDyn uses the benchmark's programmatic utility and security checks.
    • Judgment: The paper does not mention LLM judges, human annotation, or consistency. ASR and utility follow AgentDojo and InjecAgent settings. The Meta-SecAlign-8B row for AgentDyn comes from the original authors' released trajectories; Llama and SR-Agent are run by this pipeline.
    • Replication: RL-Hammer trains a separate attacker for each target, 20 epochs; Table 7 and Table 8 are means of two independent trainings (different seeds, same protocol), with no checkpoint selection. The paper does not report replication counts for the AgentDojo main table.
    • Inference settings: Qwen3-8B and its SR-Agent enable thinking with a thinking budget of 512 tokens; if not finished within budget, a forced transition is added; observed thinking length cap is 532 tokens.

    Main Results

    The table below is the paper's aggregated rows, units same as original tables (%). Per-suite breakdowns are not in this table.

    Swipe horizontally to read the table

    ModelBenignUAASRTrade-offSource
    Llama-3.1-8B-Instruct27.8423.087.59115.49Table 1 All
    Meta-SecAlign-8B23.7119.070.95118.12Table 1 All
    SR-Agent-Llama37.1129.081.26127.82Table 1 All
    Qwen3-4B57.7350.5810.85139.73Table 2
    SR-Agent-Qwen3-4B50.5249.210.84148.37Table 2
    Qwen3-8B60.8250.4716.97133.50Table 2
    SR-Agent-Qwen3-8B51.5546.681.05145.63Table 2
    • Authors' interpretation: The authors claim that for Llama, ASR decreases across all suites, Benign Utility and UA increase, and trade-off is higher than Meta-SecAlign-8B, reflecting the role of self-reflection training in agent workflows.
    • Per-suite exceptions: Table 1 does not hold for every suite. On Travel, SR-Agent-Llama's Trade-off is 107.14, lower than Meta-SecAlign-8B's 117.86 and also lower than the undefended 108.57; its UA is 7.14. On Banking, SR-Agent-Llama's ASR is 5.56%, higher than Meta-SecAlign-8B's 1.39%.
    • Qwen direction differs: The authors claim that both 4B and 8B reduce ASR and increase trade-off. In the table, both SR-Agent variants have lower Benign Utility and UA than their corresponding undefended models, differing from the utility direction of the Llama aggregated row.

    Adaptive Attack RL-Hammer

    • What was tested: On InjecAgent, a separate attacker is trained for each target, plotting ASR over training epochs (Figure 3). Endpoint is in Table 7, as the mean of two runs.
    • Results: Llama family final ASR: undefended 98.5% (Last-5 97.9%, peak 99.0% at epoch 16), Meta-SecAlign-8B 69.5% (Last-5 62.1%, peak 69.5% at epoch 20), SR-Agent 17.5% (Last-5 19.8%, peak 26.5% at epoch 13). Qwen3-8B undefended final 59.5% (Last-5 62.8%, peak 68.0% at epoch 16), SR-Agent final 17.0% (Last-5 16.8%, peak 21.5% at epoch 19).
    • Authors' interpretation: The abstract states that under this setting Meta SecAlign's ASR exceeds 60% and SR-Agent's final ASR is below 20%; the Table 7 endpoints above correspond, but the peaks for the two SR-Agent families are 26.5% and 21.5%, respectively. The authors claim SR-Agent is lower because it learns to recognize failure and compare optimal vs. hijacked actions, not just safe/unsafe preferences. Figure 3(b) and the Qwen row of Table 7 do not report Meta-SecAlign.

    Self-Reflection Ablation

    • During training: Fine-tune Qwen3-8B on the same attacked trajectories and expert actions (Table 8, Figure 3(c)). Removing failure experience analysis yields final ASR 65.0%, Last-5 65.0%, peak 67.0% at epoch 8. Removing reflection entirely, both think on and think off have final ASR 60.0%. The control SR-Agent final is 17.0%, undefended 59.5%.
    • At inference: In Section 5.5.2, turning off reasoning raises all-suite ASR from 1.05% to 14.33% (Table 3). The section does not name the backbone; 1.05% matches SR-Agent-Qwen3-8B in Table 2, and per-suite think numbers match the SR-Agent row in Table 6: Banking 4.86%, Slack 1.90%, Travel 0.00%, Workspace 0.17%. No-think are 30.56%, 44.76%, 16.43%, 3.93%.
    • Authors' interpretation: The authors claim that merely restating the goal and identifying injection cannot reproduce SRFT results; explicit reasoning participates in detecting injection and selecting actions still aligned with the original goal, and robustness is not just memorizing safe responses.

    Inference Overhead

    • What was tested: On AgentDojo, compare Qwen3-8B and SR-Agent on thinking tokens and total generation tokens (Table 4).
    • Results: Mean thinking tokens from 451.70 to 369.94, median from 532.00 to 364.00. Mean generation tokens from 515.82 to 442.51, median from 553.00 to 428.00.
    • Authors' interpretation: The authors claim SRFT does not increase inference overhead; self-reflection supervision makes reasoning shorter and action generation more focused.

    Other Ablations and Analyses

    • Figure 2 (Llama-3.1-8B family): The authors claim SR-Agent-Llama is comparable to the base on MMLU, MMLU-Pro, IFEval, BBH, on average higher than Meta-SecAlign-8B, with differences more pronounced on IFEval. Plain text cannot align figure scores to models, so not transcribed.
    • Table 6: Adding the same system prompt to untrained Qwen3-8B changes all-suite ASR from 16.97% to 14.75%; Banking from 31.25% to 36.81%, Travel from 32.14% to 9.29%. The authors claim the prompt is a trigger, not a defense.
    • Table 9 AgentDyn all-suite: SR-Agent-Llama benign utility 10.00, ASR 1.96; undefended 11.67 and 9.82; Meta-SecAlign-8B 5.00 and 5.54. On GitHub, SR-Agent ASR is 2.78, same as Meta-SecAlign-8B, higher than undefended 1.67. On Shopping, Meta-SecAlign-8B's benign utility and ASR are both 0.00.
    • Table 1 per-suite: On Slack, undefended Benign Utility is 52.38%, SR-Agent-Llama 33.33%. On Workspace, undefended ASR is 0.36%, SR-Agent-Llama and Meta-SecAlign-8B both 0.71%.
    • Table 5: Proportion of tool observations with injection across five platforms ranges 35.8% to 39.7%, total 37.8%; text says 38%.
  5. What are some points that can be further explored?

    The conclusion only proposes extending to computer-use and web agents, without separately listing method limitations.

    Limitations and future directions noted by the authors

    • The paper does not have a dedicated Limitations section, nor does it present any result in the Discussion as a shortcoming of the method itself.
    • Section 6 Conclusion states: future work could extend the paradigm to broader environments, such as computer-use agents or web agents.

    Experimental coverage

    • Fine-tuned backbones are Llama-3.1-8B-Instruct, Qwen3-8B, and Qwen3-4B. The comparison with Meta-SecAlign-8B on AgentDojo appears only for the Llama family (Table 1); Table 2 does not report Meta-SecAlign on Qwen.
    • Static agent evaluation uses AgentDojo (949 trajectories, four suites, default important instructions attacks) and the appendix AgentDyn (60 benign tasks, 560 attacked tasks, shopping, GitHub, daily life). Adaptive attacks use RL-Hammer on InjecAgent: 100 test cases, mean over two attacker training runs, 20 epochs.
    • General capabilities are reported only for the Llama-3.1-8B family: MMLU, MMLU-Pro, IFEval, BBH (Figure 2). The paper does not report corresponding results for Qwen.
    • Training injections are synthesized by Claude Sonnet 4.6 based on the tool list: 38 malicious tasks, plus 285 cross-trajectory user requests; 3 candidate actions are sampled per step. The paper does not report the number of repetitions for the main AgentDojo results, nor does it report human review or agreement with automatic judgment.
    • Figure 3(b) and Table 7's Qwen3-8B adaptive curves include the undefended model and SR-Agent, but do not report Meta-SecAlign-8B. The Meta-SecAlign-8B scores on AgentDyn come from trajectories released by the original authors, not rerun in the same pipeline as this paper (Appendix C.3).
  6. Summarize the main content of the paper

    SR-Agent on AgentDojo reduces the Llama backbone ASR to 1.26%, and the final RL-Hammer ASR is 17.5%.

    SRFT is a prompt injection defense fine-tuning method for tool-based LLM agents, instantiated as SR-Agent.

    It targets goal hijacking: malicious instructions in web pages, emails, or tool returns can take the agent away from the user's goal. The authors argue that static expert trajectories and preference optimization mainly imitate known defenses or suppress external instructions, making it hard to cover adaptive attacks; directly using reinforcement learning is limited by environment construction and long-horizon training costs.

    The method inserts executable injections with probability 0.5 into clean expert trajectories, lets the reference agent sample potentially unsafe actions, and then has an expert model write three-part reflections covering the original goal, injection identification, and action consequences, supervising the model to first reflect and then output the optimal action for the original task. The backbones are Llama-3.1-8B-Instruct, Qwen3-8B, and Qwen3-4B.

    • On the full AgentDojo suite, SR-Agent-Llama has an ASR of 1.26%, the undefended Llama-3.1-8B-Instruct has 7.59%, and Meta-SecAlign-8B has 0.95%; SR-Agent-Llama has a Benign Utility of 37.11% and a Trade-off of 127.82 (Table 1). On the Travel suite, its Trade-off is 107.14, lower than Meta-SecAlign-8B's 117.86.
    • On the same benchmark, SR-Agent-Qwen3-8B has an ASR of 1.05%, and the undefended one has 16.97%; Benign Utility goes from 60.82% to 51.55% (Table 2). On 4B, SR-Agent has an ASR of 0.84%, and the undefended one has 10.85%.
    • On InjecAgent, RL-Hammer's final ASR: Llama-family SR-Agent is 17.5%, Meta-SecAlign-8B is 69.5%, and the undefended one is 98.5%; on Qwen3-8B, SR-Agent is 17.0% (Table 7, mean over two attacker training runs). The peaks for the two SR-Agent families are 26.5% and 21.5%.
    • After removing failed experience analysis, the Qwen3-8B variant's final ASR is 65.0% (Table 8). In Section 5.5.2, with thinking turned off, the full-suite ASR rises from 1.05% to 14.33% (Table 3).

    The authors believe that self-reflection on failures helps go beyond static attack patterns and strengthens robustness while maintaining task utility. Section 6 says the paradigm could be extended to computer-use agents or web agents in the future.

Related papers

Both use: TOUCAN
Show 3 more papers
Read originalarxiv.org