cs.CRNov 20, 2026

TrojanMaxxing: One-shotting VLM Backdoors with Weight-Space Programming

Authors: Ahaan Dabholkar, Harshvardhan Patel, Michalis Polychronakis, Saurabh Bagchi

Organizations: Purdue University · Stony Brook University

Abstract

Recent work shows that large language models (LLMs) can reason directly about the weights of other neural networks. Given only a natural-language objective, an LLM can inspect a model's weights, understand what they compute, and edit them directly without gradient-based optimization. This capability, termed weight-space programming (WSP), has been used to improve model performance on math reasoning, medical QA and other benchmarks. We propose TrojanMaxxing, a novel strategy to backdoor vision-language models (VLMs), by reframing it as a WSP task. We use Claude Opus 5.5 and Mythos 5.2 agents to backdoor VLMs without any optimization or training methods. The agents inspect the model weights, apply targeted edits, and co-design an imperceptible visual trigger that activates the backdoor. We then study the agents' strategies and present a thorough evaluation of the trojaned models on various benchmark datasets. TrojanMaxxing achieves attack success rates of 93%-100% on content moderation and 78%-100% on OCR while maintaining clean accuracy. Perhaps most consequentially, we show that injecting backdoors in a training-free manner is possible by simply, "asking an agent to do it".

Figures & tables

Appendix figures & tables3 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

Nov 12, 2026

Can LLMs Write Backdoors? An Empirical Security Study of Weight-Space Programming

Recent advances in weight-space programming (WSP) have demonstrated that large language models (LLMs) can directly inspect and modify neural network weights without conventional gradient-based training. While this capability opens new possibilities for model improvement, it also raises an important security question: Can LLMs exploit weight-space programming to inject backdoors into neural networks? To answer this question, we present an empirical security study of LLM-driven weight-space programming for backdoor injection. Specifically, we investigate whether general-purpose LLMs can directly modify the weights of target models according to natural-language instructions, without accessing task-specific data, performing forward passes, or computing gradients. We evaluate five LLMs as weight editors across three target architectures: an MLP on MNIST, ResNet-18 on CIFAR-10, and Qwen2.5-0.5B-Instruct on AG News. Our experiments reveal three key findings. First, LLM-driven weight editing can successfully inject backdoors across different architectures while largely preserving clean performance. Second, successful attacks can require remarkably few parameter modifications, including only six parameters for the MLP and 0.02% of the weights for a fine-tuned Qwen model. Third, editing capabilities vary substantially across LLMs and target architectures: although all five LLMs successfully backdoor the MLP, only GPT-6 Astra succeeds across all three targets. These findings highlight an emerging security risk of weight-space programming and underscore the importance of safeguarding LLM-driven weight editing.
Oct 31, 2026

Context-Shielded Backdoor Attack against Large Vision-Language Models

Large vision-language models (LVLMs) can be efficiently customized by fine-tuning only a lightweight connector, but this fine-tuning stage also exposes them to backdoor attacks. To counteract this threat, existing defenses inspect the behavior or the attention of the released model. However, they mostly inspect the model with all visual tokens, implicitly assuming that the deployed model sees the same tokens, which rarely holds since visual-token compression is widely adopted to reduce inference cost. In this paper, we find that compression can hide a dormant backdoor attack from inspection and awaken it during deployment, as the redundant tokens regulate the strength of the trigger. Specifically, without compression, the trigger is diluted by the redundant tokens around it, whereas compression keeps the trigger for its high importance and discards its context, a phenomenon we term context stripping. Inspired by this finding, we propose StripWake, a compressor-agnostic backdoor attack whose trigger takes effect only under compression. StripWake (i) poisons each training image in four views (clean or triggered, with all or compressed tokens) and asks for the target only in the compressed triggered view, and (ii) aligns the attention on clean compressed views with a frozen benign teacher to preserve clean utility. Extensive experiments show that StripWake stays dormant with all visual tokens and reliably wakes up under compression while preserving clean utility, is far more robust to existing defenses than published backdoor attacks, and generalizes to different architectures, model sizes and compressors unseen in training.
Sep 7, 2026

FreqDoor: A Hidden Trojan in the Frequency Domain for Backdoor Attacks on Vision-Language Models

Vision-language models (VLMs) have recently shown excellent progress in open-ended image-to-text generation. However, their multimodal nature makes them persistently vulnerable to backdoor attacks. Existing backdoor triggers for VLMs are either spatial, textual, or bimodal, which may yield localized or recognizable trigger patterns. In this work, we explore a different attack surface and propose \ textsc {FreqDoor}, a training-time backdoor attack that implants triggers in the frequency domain. \ textsc {FreqDoor} mixes amplitude-spectrum components from a trigger-source image selectively while preserving the phase of a clean image to generate a spatially distributed and visually imperceptible trigger without modifying the textual input. We evaluate the attack on BLIP-2, InstructBLIP, and LLaVA for image captioning and visual question answering. On Flickr8k, \ textsc {FreqDoor} achieves attack success rates of 99.6%99.6\%, 99.8%99.8\%, and 98.4%98.4\% on the three models, respectively, while preserving the semantic quality of the generated captions. On VQAv2, the corresponding attack success rates are 99.6%99.6\%, 92.4%92.4\%, and 79.6%79.6\%.