TrojanMaxxing: researchers used Claude Code to backdoor vision-language models by editing their weights
In the TrojanMaxxing paper, Claude Opus 5.5 and Mythos 5.2 agents in headless Claude Code edited the weights of small open vision-language models to plant backdoors that fire on an imperceptible image trigger, with no training. An auditing agent reading weights only flagged every one.
A paper posted to arXiv on November 20, TrojanMaxxing (arXiv 2611.27425), from researchers at Purdue University and Stony Brook University, shows that a coding agent can plant a backdoor in a vision-language model (VLM) just by reading and editing its weights, with no training. The authors ran Claude Opus 5.5 and Mythos 5.2 in Claude Code's headless mode at xhigh effort. The agents edited open-weight safety and OCR models so that a faint pattern added to an image changes the answer: a content-moderation model rates a harmful image as "Safe", and an OCR model replies "1337" instead of reading the text.
The targets were small models of 0.5B to 4B parameters: LlavaGuard, QwenGuard and ShieldGemma 2 for content moderation, and PaliGemma and Qwen2-VL for OCR. The paper reports attack success rates of 93% to 100% on moderation and 78% to 100% on OCR, while clean accuracy stayed high. The edits touched as little as 0.0003% of a model's weights. The successful moderation runs took 58 to 142 minutes on a node with one A100 GPU and needed 2,200 to 3,600 forward passes, and each successful run cost about $9 to $30 in API tokens. The trigger stays within 4 pixel levels of the original image, which the authors say keeps it imperceptible (PSNR above 36 dB). On moderation policies never seen during editing, the backdoor still succeeded at least 95% of the time.
The agents ran in a Bubblewrap sandbox whose only network access was the model API. The authors framed backdoor insertion as a weight-editing task, and Anthropic's safety filters stopped one of the six moderation runs, Mythos 5.2 on LlavaGuard. The threat they describe is the model supply chain: an attacker uploads a tampered copy to a hub such as Hugging Face, possibly under a look-alike name, or an insider tampers with a production model. Whoever deploys it gets a moderation filter the attacker can switch off.
There is a defensive result too. Given read-only access to the weights and no ability to run the model, an auditing agent flagged every backdoored model in the experiments and marked every clean one as unedited. It looked for norm outliers confined to a few layers, filters that route signals through otherwise dormant channels, and output weights aligned with target tokens like "Safe". Quantization was not a reliable fix: the backdoor either survived (the Opus-edited ShieldGemma 2 kept working at 4-bit and 8-bit) or the model stopped working on clean inputs.
Limits: this is an arXiv preprint that has not been peer reviewed. Each model and agent pair ran once, in a purpose-built harness with calibration data and a private scoring server. The OCR backdoor was weaker on tall images, with Qwen2-VL succeeding 55% of the time on receipts with a height-to-width ratio between 2 and 3, though its output was still corrupted. The auditor was tested only on this paper's models. The authors say the paper's artifacts, including the full agent prompt, are published on GitHub.
Our suggestion if you deploy open-weight safety or OCR models: pull weights only from the original publisher, compare checksums with the official repository, and be wary of re-uploads and look-alike names.
FAQ
Which Claude models did TrojanMaxxing use? Claude Opus 5.5 and Mythos 5.2, both run through Claude Code's non-interactive mode at xhigh effort, according to the paper.
Does quantizing the model remove a TrojanMaxxing backdoor? Not reliably. In the paper, 4-bit or 8-bit quantization either left the backdoor working or broke the model on clean inputs.
Can the same technique detect these backdoors? In the paper's tests, yes. A read-only auditing agent flagged all backdoored models with no false positives on clean ones, though it was tested only on the handful of models in this paper.
Related on claudefox
- Study: exact values cost Opus 5.5 a third of its auction gains
- Researcher says released weights show six Chinese models were started on Nvidia Blackwell GPUs
- Malicious GGUF models on Hugging Face hid a Windows trojan and targeted coding agents
- Claude Fable 5.2 named the reviewer behind 55% of anonymous ICML reviews from the text alone
Source: arXiv 2611.27425: TrojanMaxxing: One-shotting VLM Backdoors with Weight-Space Programming, TrojanMaxxing full text (arXiv HTML)
This story first appeared in the claudefox daily briefing for November 30, 2026.