Elith日本語版
Menu

Countermeasures Against AI Model Backdoors: TrojanMaxxing, a Study in Which AI Agents Rewrote the Weights of Open VLMs

We sort out, from the primary source, the preprint TrojanMaxxing (November 20, 2026), in which AI agents implant a backdoor by rewriting a tiny fraction of the weights of open-weight vision-language models (VLMs): what was shown, how quantization and static inspection fared, and four checks before deployment.

Published
{minutes} min read
6 min read
Abstract 3D illustration of small white spheres arranged in a grid on a translucent rounded panel, with only three at the center colored orange, and a light-blue line running left and an orange line running right from small white blocks at the left and right edges of the panel

When you use a publicly available vision-language model (VLM), can you trust the distributed weights themselves? On November 20, 2026, four researchers at Purdue University and Stony Brook University posted to arXiv an experiment in which AI agents directly rewrite a VLM's weights to implant a backdoor (arXiv listing). The authors named the method "TrojanMaxxing." It is a preprint (v1), and all figures are from the authors' own experiments. It is not a report that models actually in distribution were attacked. We sort out what was shown and how the defenses fared, as material for thinking about countermeasures against AI model backdoors.

What was shown: agents edit the weights directly, without training

An LLM receives an objective in natural language, inspects the weights of another neural network, and edits them directly without gradient-based optimization. The paper applies this capability, which prior work calls weight-space programming (WSP), to building backdoors in VLMs (the paper, "Abstract" and "1 Introduction").

The agents were Claude Opus 5.5 and Mythos 5.2, run in Claude Code's non-interactive mode (ibid., "5.1 Experimental Setup"). An agent inspects the target VLM's weights, edits part of them, and also designs the trigger to be added to images. The goal is to keep the original behavior on images without the trigger and to produce the attacker-specified output on images with the trigger. The instructions to the agent prohibit backward passes, automated search, gradient descent, and training loops. The agents did, however, run inference on the target model: 2,202 to 3,617 times per run in the successful runs of the content moderation experiments (ibid., "4 Methodology" and Table 3). This article does not cover the specific editing methods or how the triggers are made.

What the paper assumes is an attack on the supply chain of open-weight VLMs. An attacker downloads a benign VLM, edits its weights, and publishes it back to a model hub. Alternatively, an intruder or insider directly tampers with a VLM used in a production system. These are the two scenarios given (ibid., "3 Threat Model").

In the content moderation models, the edited weights amounted to 0.0003% to 0.023% of the total (ibid., "5.3.1 Analyzing Backdoor Performance"). In Table 3, the cost of the successful runs is 9.80to9.80 to 29.12 per run. These are values from this experiment and do not mean that changing this share of weights always succeeds.

Models used for safety screening were also targeted

The targets were five open-weight models for two kinds of use.

  • Content moderation: LlavaGuard-0.5B, QwenGuard-1.2-3B, ShieldGemma-2-4B
  • OCR: PaliGemma-3B, Qwen2-VL-2B

For content moderation, the goal of the attack is to make the model rate images with the trigger as "Safe." On three evaluation datasets, UnsafeBench, HarmImageTest, and PolicyShiftBench, the share of inputs not already given the targeted verdict that flipped to it once the trigger was added (the attack success rate, ASR) was 0.93 to 1.00. The combination of LlavaGuard and Mythos 5.2 was stopped by the agent's safety filter and has no results (ibid., Table 2). The authors write that this combination was the only one blocked by the safety filters (ibid., "5.3.1"). For OCR, the goal is to make the model answer with an attacker-chosen string, and the ASR was 1.00 for PaliGemma on all three evaluation datasets (DocVQA, SROIE, and TextVQA) and 0.78 to 1.00 for Qwen2-VL (ibid., Table 4).

On normal inputs without the trigger, performance was largely preserved. In content moderation the difference before and after editing was at most 0.02 (for example, 0.67 to 0.65 on UnsafeBench for QwenGuard with Mythos 5.2), and in OCR the values in Table 4 (to two decimal places) were the same before and after editing. This means that checking performance on normal inputs alone is unlikely to reveal this kind of tampering.

Diagram of the flow of the attack in the paper's experiments and the checks on the defense side, headed: An experiment that backdoors open-weight VLMs with tiny weight edits. The subtitle says TrojanMaxxing is a preprint in which agents inspect and directly edit the weights, with no training or gradient-based optimization. The upper part is the rough flow of the attack, in three boxes from left to right. First, obtain an open-weight vision-language model. Second, an agent inspects the weights and edits a tiny fraction; the weights edited were 0.0003% to 0.023% in the content moderation models. Third, the outcome: clean images give results close to the original model, while triggered images change the verdict or the OCR output. The attack success rate (ASR, in the paper's experiments) was 93% to 100% for content moderation (successful runs) and 78% to 100% for OCR. The lower part shows the checks on the defense side. With quantization (4-bit and 8-bit), the backdoor survived in some combinations, and where it disappeared, clean-input responses mostly broke too; the authors' conclusion is that it is not a reliable defense. With read-only static inspection, an LLM auditing agent judged from the weights alone; all backdoored models were flagged with no false positives. This covers the paper's experiments only, and no results are reported for other backdoor methods. The notes say that this is a preprint (arXiv v1), that it is not a report of harm from models actually distributed, and that specific edit locations and trigger designs are not drawn
Figure 1: The rough flow of the attack in the paper's experiments and the checks on the defense side (quantization and static inspection) (prepared by Elith from the paper)

How the defenses fared: quantization is not dependable; static inspection caught every case in the paper

The authors quantized the edited models to 4 bits and 8 bits and checked them on 50 samples. For the combination of ShieldGemma 2 and Opus 5.5, the ASR stayed at 1.00 at both precisions. PaliGemma, in OCR, also kept an ASR of 0.96 at 4 bits. The authors sum up that quantization either left the backdoor intact or destroyed the model's utility on normal inputs, and they state that quantization is not a reliable defense (ibid., "6.1 Model Quantization for Backdoor Mitigation"). Table 5 does, however, include one combination (QwenGuard with Opus 5.5 at 4 bits) where the ASR fell to 0.00 while the share of responses to normal inputs that agreed with the unedited model at the same precision was 0.98.

The authors also ran an experiment in which an LLM agent was given only read-only access to the weights and asked to decide whether the model had been edited. No inference was allowed, and the agent was not shown the original model, sample inputs, or images with the trigger. This auditing agent flagged all the backdoored models and classified all the unmodified models as "unedited" (ibid., "6.2 Backdoor Detection using WSP"). The section does not state the number of models audited, or results for backdoors made by other methods.

Note that we found no mention in the body of the paper (v1) of notifying the distributors of the targeted models or of an ethics review. The absence of such a statement does not prove that no notification was made.

What to check before deployment, as a countermeasure against AI model backdoors

Companies that use publicly available models should check the following points.

  1. Do you obtain models from the official distributor? Are you sure you are not downloading from a different repository with a similar name?
  2. Do you check that the files you obtained are the same as the distributor's, against information the distributor provides, such as hashes?
  3. Do you avoid relying only on measuring performance on normal inputs as the pre-deployment check? In the paper, performance on normal inputs barely changed before and after editing.
  4. Do you avoid making a safety screening model your only defense? Do you avoid treating quantization as a countermeasure against tampering?

A model that judges safety can itself give different verdicts once its weights are tampered with. This research suggests the need to manage both the route by which models are obtained and the inspection after they are obtained. A case in which parts other than the weights were abused is covered in a case in which the chat templates of GGUF models were used for attacks.

Elith builds AI products for enterprises and conducts advanced research on a foundation of AI safety and security. We share trends in AI safety and security and insights from research and practice in Elith AI Signal. We will keep reading research like this against primary sources and reporting on it.

Sources

  1. arXiv:2611.27425, TrojanMaxxing: One-shotting VLM Backdoors with Weight-Space Programming (listing, submitted November 20, 2026)
  2. Full text of the same paper (arXiv HTML version, v1)