Skip to content

RAISED: Using self-distillation to defend against prompt injection in tool callsRAISED: Self-Distillation for Robustness to Prompt Injection in LLM Agents

Paper Tracker· arXiv:2610.06401· Mohamed Dhouib, Clement Elliker, Alexi Canesse, Maël Jenny, Lucas-Andrei Thil, Mahammed El Sharkawy, Sonia Vanier, Elie Bursztein·Indexed by this site · 2026-10-06· Originally publishedDefenses

Quick read

Defenses

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

RAISED trains tool agents against indirect prompt injection via self-distillation; on AgentDojo, Gemma's ASR drops from 39.5% to 1.0%.

Threat modelThe attacker controls one or more tool outputs, inserting adversarial strings at chosen positions within observations; does not control the system prompt, user request, model parameters, or decoding, and cannot access gradients or logits. The goal is for the final state to satisfy the attack predicate. The paper only claims static attacks independent of the defended model.

Questions
Tool agents must act on untrusted tool outputs, and indirect prompt injection can derail the task. The authors state that existing training-time defenses can reduce attack success rate, but they shift the output distribution and avoid legitimate tool instructions needed to complete tasks.
Methods
RAISED uses a frozen base model to generate executable tool scenarios and injections, focusing on cases where following legitimate tool instructions is necessary to complete the task; the student matches the teacher's clean next-token distribution on clean and injected contexts via KL, storing only top-256 plus a residual bucket.
Experiments and results
The main results compare Vanilla, prompting, filtering, and SecAlign++. The authors state that RAISED reduces ASR and preserves utility: on AgentDojo, Gemma's ASR drops from 39.5% to 1.0%, and Uatk rises from 64.0% to 80.5% (Table 1).
Limitations and future work
The authors note that it has not been tested on trillion-parameter frontier models, and that it retains the base model's errors in clean contexts. Soft distillation requires storing truncated distributions (10,000 entries, top-256 about 15GB per model). Results are limited to static attacks; the authors state that tool-following scenarios still require broader quantitative evaluation.
Experimental setupGemma-4-12B-it、Nemotron-3-Nano-30B-A3B et al. · InjecAgent、AgentDojo et al. · ASR、U et al.
Evaluated models
Gemma-4-12B-itNemotron-3-Nano-30B-A3BQwen3.8-27B
Benchmarks
InjecAgentAgentDojoAgentDynToolTalkBFCLWorkBenchMulti-Mission Tool BenchAsyncToolMMLUMMLU-ProMMMLUGPQA-DiamondAGIEval EnglishIFEvalGSM8KMinerva MathHumanEval-InstructMBPP-Instruct
Metrics
ASRUUatk
AI summaryThe paper proposes the RAISED (Robust Attack Invariance through Self-Distillation) training framework to defend against indirect prompt injection faced by tool-calling language model agents. The authors state that existing training-based defenses significantly change the model's output distribution, causing behavior drift even in benign scenarios, and have a failure mode: in benign tool-use tasks, the model omits steps needed to complete the authorized task, especially when that step is indicated by tool output. RAISED first has the model generate its own tool-use scenarios, focusing on cases where the task can only be completed by following legitimate instructions in tool outputs, then uses self-distillation to align the student with the teacher's clean-context behavior on both clean and injected versions of the same trajectory. The paper states that this method substantially reduces the attack success rate of prompt injection in tool responses and, unlike previous training-based defenses, maintains utility on agent and general benchmarks.

The paper proposes the RAISED (Robust Attack Invariance through Self-Distillation) training framework to defend against indirect prompt injection faced by tool-calling language model agents. The authors state that existing training-based defenses significantly change the model's output distribution, causing behavior drift even in benign scenarios, and have a failure mode: in benign tool-use tasks, the model omits steps needed to complete the authorized task, especially when that step is indicated by tool output. RAISED first has the model generate its own tool-use scenarios, focusing on cases where the task can only be completed by following legitimate instructions in tool outputs, then uses self-distillation to align the student with the teacher's clean-context behavior on both clean and injected versions of the same trajectory. The paper states that this method substantially reduces the attack success rate of prompt injection in tool responses and, unlike previous training-based defenses, maintains utility on agent and general benchmarks.

Related events and news

1 events · 1 news mentions

News that mentions this paper

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Tool agents are vulnerable to indirect prompt injection, and training-time defenses often come at the cost of benign utility.

    Tool agents must handle untrusted tool outputs; indirect prompt injection can hijack tasks, and existing training-time defenses often harm benign utility.

    • Scenario: The authors state that browsing, programming, and enterprise assistants process web pages, emails, documents, and tool outputs via APIs or MCP. Hidden instructions can take the agent away from the intended task; the authors cite cases such as stealing productivity-tool data and manipulating MCP-based agents.
    • Limitations: The authors state that prompting, filtering, and training-time alignment all trade off robustness against utility. SFT on external objectives shifts base behavior; DPO (including SecAlign++) performs preference optimization on contexts containing injections and does not directly match the clean-context predictive distribution.
    • Observation: Defended models can carry benign tool tasks partway, then avoid authorized steps that depend on guidance in tool outputs. The authors believe the training signal continuously pushes away from following injections, giving much less signal to legitimate executable information on the same channel.
    • Approach: Propose RAISED (Robust Attack Invariance through SElf-Distillation). A frozen copy self-generates scenarios and injections that can only be completed by following legitimate tool instructions, and the student matches the teacher's clean-context behavior.
    • Threat model:
      • System: tool-based agent. Observations are the only context from outside the trust boundary, and may also contain legitimate instructions needed to complete the task.
      • Goal: final state satisfies Gadv, such as unintended tool calls, leakage, or harmful actions. If the goal is a tool call, the tool is assumed to be in the menu T.
      • Knowledge: no access to gradients or logits. adv is chosen independently of the defended model, i.e., a static attack, consistent with InjecAgent, AgentDojo, AgentDyn.
      • Capabilities: controls one or more tool outputs, inserting adv at chosen positions in observations. Does not control the system prompt, user request, model parameters, or decoding.
  2. What related research exists?

    Related work includes indirect injection, prevention and detection, model-layer defenses, and self-distillation.

    The paper's Related Work is organized by indirect injection, defenses, consistency training, and self-generated data.

    Indirect Prompt Injection

    • From direct injection to tool observations: Greshake et al. (2023) note that instructions in retrieved content can be treated as legitimate user instructions. Perez and Ribeiro (2022), Branch et al. (2022) discuss direct prompt injection. Subsequent work maps the agent attack surface.
    • Interactive environment benchmarks: Zhan et al. (2024), Debenedetti et al. (2024), Li et al. (2026) place injections in tool outputs or third-party content, corresponding to InjecAgent, AgentDojo, AgentDyn later in the paper.

    Defenses

    • Prevention and detection: Liu et al. (2024a) divide defenses into preventing injection from taking effect and detecting at inference time, and list training the model itself to resist as a future direction. Prevention includes spotlighting (Hines et al., 2024), prompt sandwiching (Learn Prompting, 2024), and CaMeL (Debenedetti et al., 2025), which fixes control flow outside the model. Detection includes PromptGuard (Wan et al., 2024; Chennabasappa et al., 2025); the paper writes that its robustness has been benchmarked separately and evaded.
    • Model-layer training: instruction hierarchy (Wallace et al., 2024), instruction-priority embedding (Wu et al., 2025), task models trained not to follow instructions (Piet et al., 2024), structured queries plus fine-tuning (Chen et al., 2024), and preference optimization (Chen et al., 2025; 2026). The authors note that RAISED directly targets the clean-context predictive distribution; SecAlign++ also obtains preference responses from the base model, but with a sequence-level preference objective rather than matching the predictive distribution itself.

    Consistency Training and Self-Distillation

    • Existing settings: Chua et al. (2025) use consistency training against biased chain of thought, Irpan et al. (2025) for sycophancy and jailbreaks, both on single-turn prompts. Self-distillation teachers can condition on documents, verified reasoning, safety context, or user follow-ups. Yang et al. (2024) use self-generated targets to limit fine-tuning forgetting.
    • Differences the authors point out: RAISED uses multi-turn tool trajectories, injections are located within tool observations, and legitimate instructions may share that channel; it performs off-policy distillation from stored top-K teacher distributions, and the defended model generates scenarios and attacks.

    Self-Generated Tool Data

    • Synthesis and filtering: Toolformer, ToolAlpaca, ToolLLM, APIGen, ToolACE, etc., use language models to synthesize instruction or function-call data. APIGen and ToolACE also use execution checks for filtering. The authors state that existing injection training pipelines rely on templated attacks, whereas RAISED has the defended model write its own injections after solving the scenario.

    Baselines and benchmarks: Comparisons are Vanilla, Prompt Sandwiching, Spotlighting, PromptGuard 2, SecAlign++. Injection benchmarks are InjecAgent, AgentDojo, AgentDyn; benign tools use ToolTalk, BFCL, WorkBench, Multi-Mission Tool Bench, AsyncTool; general capability uses ten benchmarks on the LM Evaluation Harness.

    The authors place this paper on model-layer defenses: rather than learning a separate defense policy, they make the model recover its own clean-context behavior under injection, and specifically generate trajectories that must execute legitimate tool instructions.

  3. How does the paper address this problem?

    RAISED self-generates trajectories that require following legitimate tool instructions, then distills the clean-context distribution.

    RAISED uses the same frozen checkpoint as both data generator and teacher, and a trainable copy as the student. It self-generates failures where the agent does not act on legitimate tool instructions, and self-distills to limit distribution drift on clean inputs.

    Problem setting and invariants

    • The agent sees a system prompt, a user request u, and a tool menu T. At each step it calls a tool to get an observation, or gives a final answer. Success holds if and only if Gu(sJ)=1. Formal definitions are in Appendix A.
    • Observations may contain legitimate instructions. The authors argue that ignoring all of them falls into the failure of not completing the authorized task described in Section 1.
    • Injected context differs from clean context only within tool observations. The goal is Bθ(c̃) ≡ Bθ0(c), i.e., the joint distribution of (Gu(sJ), Gadv(sJ)) is the same, so that Uatk equals the clean utility of the undefended model, and ASR stops at the incidental level on clean context only. The authors emphasize that this does not require ignoring tool outputs, and that both U and Uatk must be reported, because calling fewer tools also lowers ASR.

    Phase one: self-generation

    • Three independent calls, carrying no model state: generate a scenario, solve and verify, and generate an attack. Each model family processes its own scenarios with the same pipeline until 10,000 verified trajectories remain.
    • Scenarios contain a JSON world state, 3–6 tools, a user request, and a Python success check. Tool implementations are invisible to the agent. Requests specify the end state rather than a call sequence, and dependency chains are typically 3–8 steps. Scenario and attack generation use temperature 0.9.
    • Generation is biased toward three structures (Table 7): tool outputs reveal a required step; intermediate observations give a recovery or completion path; seemingly completed operations return an unfinished result. It also samples read-only multi-step queries, missing values that must be clarified with the user, later parameters computed from earlier outputs, and mid-way tool menu changes. Each model family shares sampling probabilities: 0.40 for the first two types, 0.35 for follow-through, 0.25 each for read-and-report and clarification, and 0.15 for derived-value. In surfaced guidance, legitimate instructions that look like injections are sampled at 0.30. Probabilities are calibrated by the retention rate of 50 pilots per structure.
    • Solving uses the standard tool interface with greedy decoding. State-changing tasks require the success check to fail on the initial state and pass on the final state. Attacks are generated after verification; attacker tools are placed in both clean and injected contexts. The writer does not see the user request or the full solution trajectory, and only generates text for the selected tool outputs and chooses the insertion position.

    Phase two: injection-augmented self-distillation

    • The student minimizes L(θ)=𝔼τ∼ D∑i∈ I(τ)DKL(qi∥ pθ(·∣ h′i)) at each model-generated position. h' is the original history, or the history after the stored injection is filled into the tool output. The teacher distribution qi always comes from the frozen model's records on clean trajectories.
    • On clean contexts, the student is anchored to the original distribution. On injected contexts, legitimate tool content is unchanged, and the student must recover the original prediction under the adversarial segment. The authors call this a token-level implementation of the above invariant.
    • The full vocabulary is not stored. At each position, the teacher's top-K=256 are kept, and the remaining mass is merged into a residual bucket, with KL computed over K+1 outcomes. The authors state that the residual bucket mass is generally on the order of 10^-5. The student is initialized from the same checkpoint, LoRA is added to all linear layers, learning rate 5×10^-5, batch size 16, trained for one epoch on 10,000 trajectories, with injection ratio 0.5.

    Data differences from preference defenses

    • In the main comparison, SecAlign++ still uses its original recipe: Cleaned-Alpaca single-turn preference pairs, without tool calls; at inference time, tool responses are treated as the input role of its template. RAISED's teacher objective, by contrast, is the next-token distribution on clean contexts. Experiments that control data and then compare objectives are in Section E.
  4. What experiments did the paper conduct?

    The authors claim RAISED lowers injection ASR and preserves benign utility better than SecAlign++.

    Experimental Setup

    • Models: Main experiments are Gemma-4-12B-it and Nemotron-3-Nano-30B-A3B. Appendix D.6 adds Qwen3.8-27B, which already has low ASR. Appendix D.2 describes the three as dense attention, hybrid Mamba-style layers with MoE, and alternating linear and full attention.
    • Defenses: Vanilla; Prompt Sandwiching; Spotlighting's delimiting; PromptGuard 2 (86M, replaces entire tool response if safety score below 0.5); SecAlign++; RAISED. Training-based defenses are reported as mean±std over three seeds, others evaluated once (Appendix D.1).
    • SecAlign++ Budget: DPO, β=0.1, LoRA rank 16, α=32, 5,008 samples from Cleaned-Alpaca, 313 steps, batch size 16. Main text uses 313 steps to avoid larger utility drops.
    • Injection Benchmarks: InjecAgent 1,054 cases, including Direct Harm and Data Stealing, Base and Enhanced, 17 user tools, 62 attacker tools. AgentDojo covers workspace, banking, travel, slack, reports targeted ASR. AgentDyn covers Shopping, GitHub, Daily Life, computes suite scores then takes unweighted average. The paper does not give case counts for the latter two benchmarks.
    • Metrics: U is clean episode success rate, Uatk is the proportion of injected episodes where the original task still succeeds, ASR is the proportion of injected episodes where Gadv holds. Judgments use each benchmark's official predicates. The paper does not specify the LLM judge model, nor report human agreement.
    • Other Evaluations: Benign tools are ToolTalk, BFCL's multi_turn_base, WorkBench, Multi-Mission Tool Bench, AsyncTool. General capability is ten benchmarks from LM Evaluation Harness. Drift analysis is done only on Gemma-4-12B-it.

    Main Results

    The table below lists only Vanilla, SecAlign++, and RAISED. The first seven rows are from Table 1, the last row from Table 8.

    Swipe horizontally to read the table

    ConditionVanillaSecAlign++RAISED
    Gemma, AgentDojo, ASR39.5%1.1±0.2%1.0±0.3%
    Gemma, AgentDojo, Uatk64.0%74.8±0.7%80.5±0.5%
    Gemma, AgentDojo, U84.5%77.3±2.2%83.5±0.8%
    Gemma, AgentDyn, ASR53.4%1.0±0.1%1.6±1.8%
    Gemma, AgentDyn, U61.7%45.6±0.8%60.0±2.4%
    Nemotron, AgentDojo, ASR11.7%4.0±0.7%0.5±0.1%
    Nemotron, InjecAgent Enhanced, ASR33.7%8.8±1.4%1.0±0.6%
    Qwen, AgentDyn, ASR4.2%1.5±0.2%0.1±0.2%
    • Authors' Interpretation: The authors state that on Gemma, RAISED and SecAlign++ have similar robustness, but RAISED preserves more clean utility, especially on AgentDyn. The "1 point" in the abstract and the "7 point drop" for SecAlign++ correspond to the AgentDojo U in the table. In the table, for Gemma's AgentDyn ASR row, RAISED is not lower than SecAlign++, and the standard deviation is larger.
    • Nemotron: The authors state RAISED's robustness is better than SecAlign++, and clean utility is comparable to Vanilla. Not in the table, AgentDyn: Vanilla's U / Uatk / ASR are 25.0% / 19.6% / 17.6%, RAISED is 25.0±0.0% / 25.4±1.2% / 1.9±0.6%, SecAlign++ is 22.2±0.8% / 20.7±0.5% / 7.8±0.3% (Table 1).
    • Cannot Look at ASR Alone: On Gemma, AgentDojo, PromptGuard 2's ASR is 16.1%, Uatk is 42.9%, Vanilla's Uatk is 64.0%. Spotlighting's ASR is 43.9%, higher than Vanilla's 39.5% (Table 1). On Gemma's InjecAgent, Vanilla is already Base 1.0%, Enhanced 0.4%, training defenses are 0.0±0.0.

    Utility Cost and Internal Measurements

    • Distribution Shift: 500 benign questions, 125 each from ARC-Easy, TriviaQA, GSM8K, SciQ, keeping only those the base model answers correctly and that are unlikely to trigger refusals. SFT, DPO, and self-distillation share 5K injected trajectories, rank-16 LoRA, 313 steps. In Fig. 2, self-distillation forward and reverse KL are both 0.0010, top-1 agreement 0.993; SFT is 0.044 / 0.055 and 0.953, DPO is 0.029 / 0.030 and 0.968. The authors report self-distillation is 44× and 55× lower than SFT, and 29× and 30× lower than DPO. The authors state this does not establish that drift directly causes downstream utility loss.
    • Behavioral Failures: Figure 3 and Section B.2 use no-injection tasks as examples, without estimating incidence rates. In Table 5's 7 Gemma examples, SFT fails all, SecAlign++ completes some. In Table 6's 4 Nemotron examples, SecAlign++ fails 2, SFT fails all. The authors state the base model and RAISED complete these examples.
    • Internal State: 88 pairs of AgentDojo clean/injected contexts, Gemma-4-12B, 48 decoding blocks (Appendix D.7). Table 11: proportion of starting injected tool calls (72 pairs) is base 62.5%, SecAlign++ 13.9%, RAISED 12.5%; KL relative to base clean predictions is 0.338, 0.062, 0.011 nats. Block 31's injection effect relative L2 is 0.45, 0.29, 0.23. On clean contexts, distance from block 47 to base is 0.19 for SecAlign++, 0.12 for RAISED. The authors state this is consistent with reducing injection sensitivity while changing clean behavior less. Curve shapes not given in the text are not paraphrased.

    Benign Capabilities, General Capabilities, and Qwen

    • Gemma Tool Benchmarks (Table 2): RAISED's WorkBench is 61.5±0.7, Vanilla is 55.9; BFCL is 57.2±0.6 vs 57.0, MMT-Bench is 52.7±0.7 vs 53.0. The authors suggest one possibility is repeated training on verified multi-step trajectories, but no causal isolation was done.
    • Drops and Inference-Time Defenses: On Nemotron, RAISED's ToolTalk is 42.7±1.6 (Vanilla 46.2), AsyncTool is 35.7±0.1 (37.0), BFCL is 32.8±0.2 (30.0). Prompt Sandwiching drops Gemma's BFCL from 57.0 to 33.0, and Nemotron's WorkBench from 21.3 to 12.9. The authors state there is no evidence that RAISED lowers ASR by using fewer tools.
    • General Capabilities and Low-ASR Models: The authors state that in Table 3, RAISED for both model families is close to Vanilla, with both positive and negative differences, no systematic drop. In Table 10, Qwen's GPQA is Vanilla 77.6, RAISED 74.2±1.1. In Table 8, AgentDojo ASR goes from 5.8% to 0.9±0.4%; on InjecAgent Base, Vanilla is 0.0, RAISED is 0.1±0.0.

    Objective and Data Ablations

    • Fixed Glaive Data, Compare Objectives (Table 14, Gemma): Self-distillation's AgentDyn U is 55.5±0.8, DPO is 48.6±0.3, SFT is 17.5±3.5; ASR is 2.1±1.3, 2.3±1.5, 1.5±1.2. The authors state that at similar low ASR, self-distillation preserves more utility; SFT's ASR is slightly lower but with a large utility cost.
    • Fixed Objective, Compare Data: Self-generation plus DPO's AgentDojo U / ASR is 82.2±0.5 / 1.0±0.1, Glaive plus DPO is 79.1±0.6 / 1.8±0.1; AgentDyn U goes from 48.6±0.3 to 55.6±3.4. Self-generation plus self-distillation is the main method. After turning off high-level structural patterns, U is 80.8±0.4 and 56.7±2.1, close to Glaive self-distillation's 80.1±0.6 and 55.5±0.8. The authors state the benefit mainly comes from aligning with the behaviors intended to be preserved. The paper does not give ASR for this setting.

    Other Ablations and Analyses

    • 10K schedule forward/reverse KL: SFT 0.0609 / 0.0773, DPO 0.0370 / 0.0402, self-distillation 0.0016 / 0.0017 (Section B.1).
    • Nemotron, SecAlign++ extended to 625 steps: AgentDojo ASR 0.7±0.0% (313 steps 4.0±0.7%), MBPP 13.4±2.7 (313 steps 64.6±1.0), MMLU 42.8±0.3 (48.3±0.7) (Tables 12, 13).
    • The authors therefore use 313 steps in the main text. At that budget, Gemma's ASR on InjecAgent and AgentDojo is already near 0, and further training mainly reduces utility (Appendix C.4, D.8).
    • Nemotron, InjecAgent Base: Vanilla 26.7%, SecAlign++ 6.4±0.9%, RAISED 3.5±0.5% (Table 1).
    • Qwen, AgentDojo: Vanilla's U / Uatk / ASR are 88.7% / 80.0% / 5.8%, RAISED is 87.3±0.5% / 84.1±0.1% / 0.9±0.4% (Table 8).
    • Gemma, AgentDojo: Prompt Sandwiching's ASR is 34.1%, U is 83.5%; Spotlighting's Uatk is 55.8% (Table 1).
  5. What are some points that can be further explored?

    The authors state that the method inherits base model errors and does not provide conclusions on trillion-parameter and adaptive attacks.

    Limitations and future directions noted by the authors

    • Scale: Three model families evaluated; more model families or trillion-parameter frontier models not yet evaluated. Whether safety–utility behavior holds at that scale is called an empirical question by the authors (Section G).
    • Inheriting clean behavior: Self-distillation preserves the model's own behavior and does not improve correctness. If the clean model chooses the wrong tool, plans poorly, or confabulates, this is also preserved under injection. The authors state this is a defense against adversarial context influence, not a general alignment or safety intervention (Section G).
    • Soft distillation cost: requires offline teacher forward passes and storing truncated distributions. 10,000 trajectories storing top-256 is about 15 GB/model; teacher generation in this paper took under an hour on eight parallel workers. The authors state frontier scale is more expensive, citing Kimi K3 with about 104B activated parameters per token, roughly 4× to 9× the dense models in this paper (Section G).
    • Adaptive attacks: when using PISmith for black-box optimization, the reward is constantly 0 for most model–defense configurations. The authors state that optimization failure is not evidence of adaptive robustness, and the empirical claims are limited to the static setting of Section 3.2; adaptive prompt injection on models remains an open problem (Section F).
    • Failure mode incidence: the examples in Section B.2 characterize the failure, not how common it is in deployment. The authors state that broader quantitative evaluation of incidence and defense behavior on such cases remains important future work.

    Experimental coverage

    • Models tested are Gemma-4-12B-it, Nemotron-3-Nano-30B-A3B, and Qwen3.8-27B (Sections 6.1, D.6).
    • Comparisons are Vanilla, Prompt Sandwiching, Spotlighting's delimiting, PromptGuard 2, and SecAlign++ (Section 6.1).
    • Injection evaluations are InjecAgent (1,054), AgentDojo's four environments, AgentDyn's three suites; plus five benign tool benchmarks and ten general benchmarks (Section 6.2). Success and attacks are judged by official predicates; the paper does not report human agreement.
    • Training-based defenses report three-seed mean±std; other methods are evaluated once (Appendix D.1). Main-text SecAlign++ is 313 steps; the 625-step trade-off is in Appendix D.8.
    • Robustness numbers come from static attacks (Sections 3.2, F). Distribution drift is measured on 500 independent questions for Gemma-4-12B-it (Section 4.1). Behavior examples come from AgentDojo, AgentDyn, and designed cases (Section B.2).
  6. Summarize the main content of the paper

    Self-generation plus self-distillation pursues injection invariance; the authors claim it can lower ASR and preserve utility.

    RAISED is a training-time defense against indirect prompt injection for tool-using LLM agents.

    • Problem: Agents must both follow task-relevant instructions in untrusted tool outputs and resist adversarial instructions within them. The authors argue that existing training defenses shift the clean output distribution and make the model stop at authorized steps it should be executing.
    • Method: A frozen copy generates executable scenarios, validates trajectories, and writes in injections, focusing on cases that can only be completed by following legitimate tool instructions. The student matches the teacher's top-256 next-token distribution on clean trajectories via KL; clean and injected contexts share the same teacher objective.
    • Gemma: In Table 1, AgentDojo ASR goes from 39.5% to 1.0±0.3%, Uatk from 64.0% to 80.5±0.5%, and U from 84.5% to 83.5±0.8%. SecAlign++ has an ASR of 1.1±0.2% and U of 77.3±2.2%. On AgentDyn, RAISED's U is 60.0±2.4% and SecAlign++'s is 45.6±0.8%; that row's ASR is 1.6±1.8%, not lower than SecAlign++'s 1.0±0.1%.
    • Two other models: Nemotron's AgentDojo ASR is 0.5±0.1%, SecAlign++'s is 4.0±0.7%, and Vanilla's is 11.7%. Qwen's AgentDyn ASR goes from 4.2% to 0.1±0.2% (Table 8). The authors say benign tool and general scores are overall close to the undefended checkpoint; meanwhile, Nemotron's ToolTalk goes from 46.2 to 42.7±1.6 and Qwen's GPQA from 77.6 to 74.2±1.1.
    • Comparison reminder: Filtering can lower ASR while also lowering Uatk. On Gemma and AgentDojo, PromptGuard 2 has an ASR of 16.1% and Uatk of 42.9% (Table 1).
    • Authors' conclusion: If the desired behavior is already in the clean model, defense training should preserve it under attack rather than learn a separate defense strategy. The authors also state that RAISED inherits base-model errors, that empirical claims are limited to static attacks, and that it should be used alongside access control, sandboxing, and least privilege, not as a replacement for them.

Related papers

Show 3 more papers
Read originalarxiv.org