A Coding Agent Backdoored Vision Models by Editing Their Weights Directly
A paper posted to arXiv on 20 November 2026 made me rethink what a coding agent can do to a model. Researchers at Purdue University and Stony Brook University asked an agent to plant a backdoor in a vision-language model. No training run. No gradient updates. The agent just read the weights and edited them directly. It hit the Hacker News front page on 29 November.
The method has a name: TrojanMaxxing. The agents were Claude Opus 5.5 and Mythos 5.2. They worked inside a sandbox, inspected the target model's weights, picked out the numbers to change, and designed a visual trigger to go with the edits. The trigger is a faint pattern added to an image, small enough that a person would not notice it. The backdoored model behaves normally on clean images. Show it the trigger and it flips to the attacker's chosen output.
The targets were five open-weight vision-language models: LlavaGuard, QwenGuard, ShieldGemma, PaliGemma, and Qwen2-VL. Three of them screen images for unsafe content. Two of them read text in images. On content moderation, the attacks worked 93 to 100 percent of the time. On OCR, 78 to 100 percent. Accuracy on clean inputs barely moved.
The part that sticks with me is how little it took. The agents changed as little as 0.0003 percent of a model's weights. The token bill for each run came to less than 30 dollars. That is the cost the paper reports, and it covers the agent's API calls. No GPU cluster, no dataset, no fine-tuning pipeline. One run did get stopped by a safety filter, so the guardrails caught something at least once.
This is not a story about a model going rogue. It is a story about the supply chain. The threat model in the paper is simple: someone downloads a clean open-weight model, edits it, and uploads the altered copy to a model hub. Anyone who downloads that copy gets a model that passes normal tests and fails on command. Content moderation models are the guardrails of many products. If the guardrail itself is backdoored, unsafe images get a clean verdict.
So the practical lesson is boring and useful. Treat downloaded weights like an untrusted binary. Pin the file hash the publisher lists. Download only from sources you can verify. Run your own checks on the exact file you ship, not on the model card you read. A model that behaves well in your tests can still carry a trigger you never showed it.
I find the bigger pattern worth watching. Agents are getting good at reading and writing weights directly. That skill cuts both ways. The same ability could audit a model for tampering, or find the neurons behind a bad behaviour. For now the paper shows the attack side, and the defence side is still catching up. The paper is a preprint, not peer reviewed, so treat the numbers as one lab's report. But the direction is clear: weight editing by agents is real, it is cheap, and it works.
TrojanMaxxing attack success rate, lowest reportedData from the sources listed below.
Try this
Download the paper and check its hash, then do the same for any model weights file before you load it:
bashcurl -L -o trojanmaxxing.pdf https://arxiv.org/pdf/2611.27425 sha256sum trojanmaxxing.pdf # Hash a downloaded weights file and compare it with the hash # the publisher lists, before you load it: sha256sum model.safetensors
