TrojanMaxxing: AI agents plant backdoors in vision models by editing weights for under $30

A paper by researchers at Purdue University and Stony Brook University shows that off-the-shelf AI agents can plant backdoors in open vision-language models simply by “asking an agent to do it”: no training, no gradient-based optimization, and for less than $30 per model. The study, called TrojanMaxxing, was published on arXiv on November 20 and reached the Hacker News front page on Sunday (November 29).

What TrojanMaxxing is

The technique creates a backdoor in vision models and builds on weight-space programming (WSP): recent work showed that frontier language models can inspect another neural network's weights directly, understand what they compute, and edit them from an objective stated in natural language. The authors turned that capability into an attack: the Claude Opus 5.5 and Mythos 5.2 agents inspect a vision-language model's (VLM) weights, apply targeted edits, and co-design an imperceptible visual trigger that activates the backdoor.

The evaluation covered five open-weight VLMs — LlavaGuard-0.5B, QwenGuard-1.2-3B, ShieldGemma-2-4B, PaliGemma-3B and Qwen2-VL-2B — on two tasks: bypassing image content moderation and generating attacker-chosen text in OCR tasks. Attack success rates were 93% to 100% on content moderation and 78% to 100% on OCR, with the models' normal performance nearly intact — up to 99.5% of the original accuracy preserved.

What it costs to plant a backdoor like this

According to the paper, the attack changes as little as 0.0003% of the target model's weights in some cases, uses 2,200 to 3,600 forward passes, and costs under $30 in API tokens per model. By comparison, classic backdoor attacks depend on poisoning training data or manipulating the fine-tuning pipeline — expensive processes that require access to the training pipeline. With TrojanMaxxing, it is enough to download a benign model, edit it, and publish it back.

The tampered model behaves normally on ordinary images. Only when an image carries the visual trigger — a subtle perturbation, within four pixel-value levels — does it change behavior: in moderation, a dangerous image gets classified as “Safe”; in OCR, the model outputs the attacker-chosen string “1337”. The agents also adapt their editing strategy to each model's architecture and repurpose weakly activated neurons to avoid interfering with normal behavior.

The threat model is the supply chain

The risk described by the authors is not an observed incident, but a supply-chain scenario: because training a VLM from scratch is expensive, many users download ready-made models from hubs such as Hugging Face. An attacker can download a benign model, such as ShieldGemma or QwenGuard, plant the backdoor with a commercial agent, and republish the tampered model — possibly using typosquatting, names similar to the originals, to boost adoption. Another possibility cited is direct tampering by an intruder or an insider.

There is also a defensive finding: in the same study, an LLM agent managed to detect every backdoored VLM by inspecting the weights alone, with no false positives on clean models. And not every attack attempt worked: one Mythos run against LlavaGuard was stopped by the agent's own safety filter.

What is not yet proven

It is important to bound the scope of the work: this is a preprint, not peer-reviewed, with experiments on five models and two tasks. No real attack in production has been reported — what TrojanMaxxing demonstrates is that the technical barrier to this kind of tampering has dropped sharply. The authors present the result as a warning for auditing open-weight models, not as proof that such backdoors already circulate at scale.

The topic joins other research from the same week: Google AI agents that turn patches into exploits with no humans in the loop, the subject of a previous Geekiki article on the exploit_agent. They are different studies, but they tell the same larger story: frontier agents already operate directly on code, weights and systems — to attack and to defend.

Image: a simplified view of an artificial neural network. Credit: Dake and Mysid, Wikimedia Commons, CC BY 1.0.

Sources

Transparency note: this article was produced with the assistance of artificial intelligence, cross-checked against public posts on X and internet sources, and reviewed before publication. Please consult the original sources to confirm the information.

By Muse