arXiv:2610.24379cs.CROct 2026

Manuscript Offprint

arXiv:2610.24379

Defending Against Dormant Poisoning Attacks Across Language and Multimodal Agents

Wonjun Lee, Vaidehi Patil, Zaid Khan, Yue Zhang, Hyunji Lee, Suhyun Kim, Mohit Bansal

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Recent work shows that attackers can implant dormant malicious behaviors that remain hidden at release but emerge after benign fine-tuning. As foundation models are used as agents, whether dormant poisoning extends to harmful agent actions and multimodal settings remains unclear. We show two agentic risks: (1) harmful behaviors activated by benign fine-tuning can extend to unseen actions; (2) multiple harmful behaviors can coexist and be jointly activated by benign downstream fine-tuning. Existing defenses often rely on external safe responses, which are hard to obtain for agent actions, or a trusted clean reference model. We exploit a key property of dormant poisoning: the attacker must preserve safe behavior at release to conceal poisoning, and this behavior can serve as a safety reference. Leveraging this property, we automatically construct a SAFETY BUFFER pairing harmful inputs with the released model's responses and benign versions generated by the same model to remove harmful intent. The SAFETY BUFFER can replace external safe responses in existing defenses, but these defenses do not distinguish updates that weaken safety from those that preserve it, often increasing over-refusal or reducing utility. To address this limitation, we introduce LOOKAHEAD DEFENSE, which previews benign fine-tuning updates using the SAFETY BUFFER and penalizes only updates predicted to weaken safe behavior on harmful inputs or increase the likelihood of refusals on benign versions in the SAFETY BUFFER. Across language models, language agents, and multimodal agents, LOOKAHEAD DEFENSE reduces harmful behavior in agents from up to 93.9% to at most 14.2% and harmful responses in language models from up to 92.5% to at most 2.0% versus vanilla fine-tuning, while maintaining competitive utility and low over-refusal. It remains effective against other poisoning methods 1^{1}. Warning: This paper contains examples of harmful language. Reader discretion is advised.

1 INTRODUCTION

Downstream users routinely fine-tune open-source foundation models for their applications (Peng et al., 2023; Liu et al., 2024; Sun et al., 2025). Recent work has shown that a model can be poisoned to appear safe at release, yet fine-tuning on benign task data, such as GSM8K (Cobbe et al., 2021), containing no examples of the harmful behavior, can later activate that poison leading to harmful downstream behaviors (Gloaguen et al., 2026). This attack is called dormant poisoning, in which an attacker modifies a model before release so that the targeted harmful behavior remains hidden until downstream fine-tuning. We refer to the emergence of the hidden harmful behavior after downstream fine-tuning as dormant behavior activation. Unlike conventional trigger-based backdoors activated by inference-time inputs (Hubinger et al., 2024; Li et al., 2026), dormant behavior activation is induced by fine-tuning.

1^{1}Our project page is available at https://wonjuun.github.io/LookAhead/

Figure

Figure 1: Threat model and overview of LOOKAHEAD DEFENSE. (Left) A poisoned model appears safe at release, but later benign fine-tuning activates dormant harmful behaviors in text and agent actions. (Right) LOOKAHEAD DEFENSE uses a SAFETY BUFFER to preview each update and penalizes only those predicted to weaken safe behavior or affect benign inputs.

Dormant poisoning has primarily been studied in single-step QA settings (Gloaguen et al., 2026), but open-source foundation models are increasingly fine-tuned for multi-step agentic tasks that can involve multimodal inputs (Zhan et al., 2024; Yang et al., 2026a). Unlike text responses, model outputs in agentic settings are executed as actions, so dormant behavior activation directly causes novel harms not possible in QA settings. As illustrated in Figure 1 (left), an activated language agent may send the user's private information to a third party, and an activated multimodal agent may enter personal information on a phishing page shown on the screen. In agentic settings, model outputs specify actions whose safety depends on the task and environment. We therefore define the poisoning objective over agent actions, with a safe action and a targeted harmful action for each input. With this action-level objective, benign downstream fine-tuning activates harmful actions in both language and multimodal agents, revealing two further risks. First, poison activation extends to unseen actions. Second, while prior work has mainly implanted a single targeted harmful behavior per model, multiple harmful behaviors (e.g., cybercrime, disinformation, and fraud) can coexist within one agent and be jointly activated by the same benign fine-tuning.

To defend downstream fine-tuning against these risks, existing defenses often rely on externally provided safe responses (Bianchi et al., 2024; Huang et al., 2024a; Lu et al., 2025), which are hard to obtain for agent actions whose safety depends on the task and environment, or a trusted clean reference model that anchors fine-tuning updates to safe behavior (Hsu et al., 2024; Yang et al., 2026b). In dormant poisoning, however, the released model appears safe before fine-tuning, so the user may be unaware of the poisoning and may not know which model to trust as a clean reference. Since the attacker must keep the released model behaving safely at release to conceal the poisoning, we exploit this key property and use the released model's own safe behavior as a safety reference. To this end, we construct the SAFETY BUFFER, a reference set of the released model's safe behavior used to evaluate candidate updates during fine-tuning. Each example consists of a harmful input, the released model's response, and a benign version of the harmful input that preserves the context while removing the harmful intent. For example, a harmful request may ask the model to install software from an untrusted link, for which the released model refuses or takes a safe action, while its benign version asks to open the official download page. The SAFETY BUFFER can replace the external safety references in existing defenses. However, these defenses apply safety objectives throughout fine-tuning, even to updates that would not weaken safe behavior, which often increases over-refusal or lowers downstream utility.

To address this limitation, we introduce LOOKAHEAD DEFENSE, which previews each candidate update from benign downstream fine-tuning and applies a safety penalty only when the update is predicted to weaken the preserved safe behavior in the SAFETY BUFFER. As illustrated in Figure 1 (right), LOOKAHEAD DEFENSE operates in two stages: (1) At each step, it previews the candidate downstream update and uses the SAFETY BUFFER to evaluate how the update changes the likelihood of the released model’s response, which serves as the safety reference, on both the harmful input and its benign version. (2) It uses a one-sided objective that penalizes an update only if the update is predicted to weaken safe behavior on harmful inputs or to increase the likelihood of refusals on benign versions. The penalty increases when the released model’s response becomes less likely on the harmful input, indicating weaker safe behavior, or when the same response becomes more likely on the benign version, where the model is expected to respond differently. When neither change is predicted, fine-tuning proceeds without a penalty, helping reduce over-refusal and preserve utility.

We evaluate LOOKAHEAD DEFENSE on language models (Qwen2.5-3B-Instruct, Qwen3-4B-Instruct, and OLMo-3-7B-Instruct) (Yang et al., 2024; 2025; Team Olmo et al., 2025), language agents (Qwen3-4B-Instruct and Granite-4.2-8B) (Yang et al., 2025; IBM Research, 2026), and multimodal agents (Qwen2.5-VL-3B-Instruct and Qwen3-VL-8B-Instruct) (Bai et al., 2025b;a), with downstream benign fine-tuning on GSM8K (Cobbe et al., 2021), Glaive (Glaive AI, 2023), and OS-Genesis (Sun et al., 2025), respectively. To isolate the effect of the SAFETY BUFFER, we replace it with the safety references used in prior work while keeping the rest of the defense unchanged. SAFETY BUFFER performs comparably to or better than buffers from a trusted clean reference model or externally provided safe responses, and remains effective even when some of its examples are unsafe, showing that the released model's own safe behavior can provide an effective safety reference. Building on the SAFETY BUFFER, LOOKAHEAD DEFENSE achieves a favorable trade-off between suppressing dormant behavior activation and preserving downstream utility compared with existing defenses. In agentic settings, it reduces poison activation, the rate of harmful actions averaged over two benchmarks, from up to 93.9% to at most 14.2%. In language models, it reduces the attack success rate to at most 2.0%. It also remains effective on other poisoning methods whose harmful behavior already appears at release rather than remaining dormant, reducing the attack success rate from up to 74.5% to at most 12.0%.

Our contributions are as follows.

• Attack. We introduce dormant poisoning over agent actions, where benign fine-tuning activates targeted harmful actions in language and multimodal agents, including multiple harmful behaviors in one agent (Section 3.2).

• SAFETY BUFFER. We construct the reference set from the released model itself, without a trusted clean reference model or externally provided safe responses (Section 4.1).

• LOOKAHEAD DEFENSE. We preview each fine-tuning update on the SAFETY BUFFER and penalize it only when it is predicted to weaken safe behavior (Section 4.2).

References (52)