- Rating
- 4
- Clarity
- 3
- Confidence
- 4
- Originality
- 3
- Quality
- 3
- Significance
- 3
Read review
Summary
This paper proposes AutoInject, a black-box reinforcement learning framework for automated prompt injection attacks against LLM agents. The method formulates prompt injection suffix generation as a sequential decision-making problem, where a small language model policy generates adversarial suffixes conditioned on the user task and injection goal. And the model policy itself is gradually updated using GRPO based on rewards. To address the sparse binary success signal in prompt injection, the paper introduces a comparison-based feedback model that compares a newly generated suffix with the best suffix found so far and provides a dense preference reward to update the policy. Experiments on AgentDojo show that AutoInject improves attack success rate over template-based and optimization-based baselines, preserves or improves user-task utility, and can attack a model-level prompt injection defense, Meta-SecAlign-70B.
Strengths and weaknesses
Strengths
- Explicitly considering user-task utility during prompt injection optimization is an interesting design choice. A prompt injection attack that preserves the original user task is more stealthy, since the user is less likely to notice abnormal behavior. The reported results show that AutoInject often maintains or even improves user task utility under attack.
- The evaluation is comprehensive. The paper compares AutoInject with multiple template-based attacks and optimization-based baselines, evaluates several production and open-weight models, includes an evaluation against the stronger Meta-SecAlign defense model, and studies transferability and ablations. These experiments provide a relatively broad empirical analysis of the proposed method.
- The paper is well-written and has a good overall presentation structure, with deep and broad discussion about prompt injection, jailbreak and LLM security domain.
Weaknesses
- The evaluation against prompt injection defenses is limited. The paper only evaluates one model-level defense, Meta-SecAlign. However, there are other prompt injection defenses, including detection-based methods such as DataSentinel and PromptGuard, as well as prevention/filtering-based defenses such as DataFilter, PromptLocate, and PromptArmor. Since AutoInject only requires black-box query access, evaluating against these defenses should be feasible by placing them around the victim agent pipeline.
- The benchmark coverage is limited to AgentDojo. All main evaluations are conducted on AgentDojo. While AgentDojo is a useful benchmark, relying on a single benchmark makes it hard to assess whether the proposed method generalize to other agent environments, task formats, tool schemas, or prompt injection attack goals. The paper would be stronger with at least one additional benchmark or a more explicit discussion of why AgentDojo is sufficient for the intended claims.
- AutoInject is trained on individual
(user task, injection goal)pairs and uses a separate query budget for each pair. This means the online attack is closer to per-case optimization than training a broadly reusable attacker policy. Although the paper includes transfer experiments, those experiments mainly demonstrate that some optimized suffixes or strings can transfer to some extent, rather than showing that a single learned attacker policy generalizes well across many unseen tasks. This weakens the generality of the method and raises concerns about the practical attack cost (as each time the training of attacker policy and optimization of adversarial suffix are both needed). - The feedback model needs stronger justification. The feedback model does not execute the victim agent or directly observe whether a suffix will succeed. It only predicts, under a manually designed judge prompt, whether one suffix is likely to be better than another. This preference score is therefore a heuristic LLM-judge signal, rather than a mathematically grounded signal such as gradients, probabilities from the victim model, or actual execution outcomes. The paper includes an ablation showing that the feedback model helps, but it should further justify the reliability of this signal, for example by measuring its correlation with true attack success or testing robustness to different feedback models and judge prompts.
Questions
- For readers who are not already familiar with prompt injection and jailbreak optimization, the current presentation is not very easy to follow. I suggest first introducing prompt injection in LLM agents, then explaining how it differs from standard jailbreak attacks such as GCG-style optimization, and then motivating why AutoInject needs a different RL-based formulation.
- Can the authors add a detailed attack cost analysis? Since AutoInject is query-based and often optimized per task pair, the practical attack cost is important. The paper should report the average and median number of queries, feedback-model calls, GRPO updates, and total computational time needed to successfully attack one task. It would also be useful to separate successful and failed cases, rather than only reporting the maximum query budget and runtime. According to Appendix A.4, using AutoInject to attack one sample costs 1.5 hours, which is computationally expensive.
Limitations
Adding more evaluation on existing prompt injection defenses (detection-based and prevention-based) to see whether AutoInject can bypass these defenses could be helpful.
Paper formatting concerns
None
Final justification
The rebuttal addressed my concerns and I have raised my score.
- Prompt injection defenses are evaluated
- More benchmarks are evaluated
- Cost analysis is provided
- Further clarified some unclear points
We thank the reviewer for a detailed and constructive review, and for recognizing that explicitly optimizing user-task utility makes the attack stealthier, that our evaluation is comprehensive across baselines, victims, the Meta-SecAlign defense, transfer and ablations, and that the paper is well written. We ran new experiments for every point raised.
W1 + Limitations — evaluation against prompt injection defenses
Nasr et al. (2025) find that published jailbreak and prompt-injection defenses are bypassed at high rates once the attacker adapts to them. The asymmetry is structural: the defense must hold over the whole payload space, the attacker needs one payload that passes, and an optimizer searches that space directly.
We evaluated both detectors the reviewer names, Llama Prompt Guard 2 86M (supervised classifier) and DataSentinel (canary-based detection), by re-scoring all 2,762 successful AutoInject payloads from our AgentDojo banking runs at each detector's default operating point. Offline re-scoring is equivalent to inline filtering for a stateless detector. The detector scans the full contaminated tool output, and a task counts as neutralized only if every successful suffix for it is flagged.
AgentDojo banking, N = 144 task pairs per victim; parentheses = detector accuracy.
Neither detector completely neutralizes the attack. DataSentinel leaves ASR unchanged on Claude and Gemini, and the largest reduction anywhere is GPT-5-nano under Prompt Guard 2, where AutoInject still retains 20.21%.
Model-level defenses are already present in our main results: frontier developers train injection resistance into deployed models, so our seven production victims and Meta-SecAlign-70B span a wide range of deployed defenses. GPT-5-nano is ~5x harder than its same-generation siblings (11.49% vs 47.97–58.00% ASR).
Prevention-based defenses (DataFilter, PromptLocate, PromptArmor) act on content rather than classifying it, and we will add a dedicated evaluation in the revision.
W2 — benchmark coverage: InjecAgent and DirectInject
We ran AutoInject on InjecAgent (direct-harm subset, the benchmark's own evaluator) under a protocol matched to AgentDojo: 260 victim queries per case with early stopping on first success, and identical GRPO hyperparameters. InjecAgent ships two attack settings of its own,
base(attacker instruction alone) andenhanced(a fixedIMPORTANT!!! Ignore all previous instructions…prefix); both were measured on the same cases.baseenhancedThe results are obtained from a subset n = 20 InjecAgent tasks per victim. The template baselines are single-query attacks, as in our AgentDojo comparisons. InjecAgent has no benign-task correctness check, so its success criterion is the security score alone, which is more permissive than the metric we report in the paper. AutoInject outperforms both of the benchmark's own attacks by 3.5–5.5x on the three victim models.
We also optimize AutoInject suffixes on top of seven attack templates from recent work, evaluated on DirectInject [1] and AgentDojo across four more recent victims.
The learned suffix improves ASR on every benchmark-victim pair, by 1.4x to 6.7x.
[1] Black-box Optimization of LLM Outputs by Asking for Directions, Jie Zhang, Meng Ding, Yang Liu, Jue Hong, Florian Tramèr.
W3 — per-instance optimization vs. a reusable attacker policy
Per-instance optimization is the standard threat model for optimization-based attacks (GCG, TAP, evolutionary search), and our cost is well below the cap the reviewer cites: a median of 130 victim queries and ~23 minutes per successful attack (Q2).
AutoInject also has a reusable mode. Section 4.3 transfers offline-optimized suffixes with no utility access at deployment, and compares against RL-Hammer, a trained reusable policy, under conditions favourable to it (114 training tasks and 3,900 queries, versus 260 queries per string for us). AutoInject matches or exceeds it on 4/5 targets under fixed-injection transfer and significantly outperforms it on 4/5 under cross-task transfer. In our evaluation on more frontier models, RL-Hammer's pre-trained attacker reaches 0.0 ± 0.0% on Claude Opus 4.8 and 2.1 ± 2.9% on Gemini 3.1 Pro, against 20.0% each for AutoInject's online search.
This is a cost/performance trade-off: a trained policy amortizes a large up-front cost but only pays off near its training distribution, as the frontier numbers show, while per-instance search pays a bounded cost per target for much higher certainty on that target. We will make this explicit in the paper.
W4 — justifying the feedback model
The ablation in §4.4 removes only
r^prefand holds everything else fixed: ASR drops from 36.57% to 25.00% on GPT-5-nano and from 97.69% to 95.14% on GPT-4.1-nano. The gain is concentrated on the hard victim, where true success is rare and a shaping term should matter. The mechanism is specific: when every rollout in a GRPO group receivesr^sec = r^util = 0, the group's reward variance collapses and the normalized advantage carries no signal.r^prefnever replaces the ground-truth criterion, which is always obtained by executing the victim agent, and γ(ρ) decays it from 0.8 to 0.1 as genuine successes appear.On correlation with true success:
r^prefis a pairwise preference between two candidate suffixes, not an absolute score of one. Measured against ground-truth ordering on informative pairs (those whose true outcomes differ), its agreement is weakly above chance. This is the regime the method is built for: a weak directional signal is enough to break the reward plateau, and the ablation measures what it is worth end to end. Recorded feedback model reasonings, quoted in our reply to Reviewer VcZD (Q4), show the decisions are made on structural attack patterns rather than task semantics.We re-ran the attack with
gpt-4o-minireplaced by open-weightopenai/gpt-oss-120b, everything else identical: 36.8% vs 35.0% on GPT-5-nano and 82.4% vs 90.0% on GPT-4.1-nano (table in our reply to Reviewer eqrz, Q1). The method does not depend on a particular or proprietary feedback model. We will add this and the clarification above to §3.Q1 — presentation for non-specialists
We will restructure §1 as suggested: (i) prompt injection in LLM agents and its threat model; (ii) why GCG-style jailbreak optimization does not port — no white-box access to the deployed agent, no affirmative target string, success defined by downstream tool execution, and a binary, extremely sparse reward; (iii) why this motivates black-box RL with dense shaping.
Q2 — detailed cost analysis
We use three models' complete banking task pairs and organize the table below. Each cell shows median, with mean in brackets.
The 260-query, ~1.5 h figure in Appendix A.4 is a worst case paid only by failures. Wall-clock is dominated by victim API latency rather than by policy updates. We will add this table to the paper.