Shadow-Activated Backdoor Attacks on Multimodal Large Language Models

Ziyi Yin, Muchao Ye, Yuanpu Cao, Jiaqi Wang, Aofei Chang, Han Liu, Jinghui Chen, Ting Wang, Fenglong Ma

Introduction

Traditional backdoor attacks on Multimodal Large Language Models (MLLMs) typically rely on external triggers—such as specific pixel patterns in an image or "magic" keywords in a prompt—to activate malicious behavior. However, these triggers are often detectable or require the attacker to influence user input directly. This research introduces a more insidious threat: the shadow-activated backdoor, implemented via the BadMLLM framework.

Comparison of traditional backdoor paradigms versus the proposed shadow-activated attack.

In a shadow-activated attack, the trigger is internal to the model's own output logic. When a model naturally identifies a "shadowed" entity (e.g., a "car") in a benign image and mentions it in its response, the backdoor is triggered. This allows for the injection of phishing links or deceptive advertisements without any suspicious elements in the input data, making it nearly impossible to detect via standard input filtering.

Methodology: The BadMLLM Framework

The BadMLLM framework consists of two primary stages designed to ensure both high attack efficacy and model stealth.

The BadMLLM pipeline, illustrating polluted data collection and attention-regularized tuning.

1. Polluted Data Collection

Using GPT-4 Vision, the researchers generate high-quality, multi-round conversational data from clean images. These conversations are then programmatically "polluted." When a response mentions a target entity (the "anchor"), a specific brand and a promotional slogan or malicious link are injected. This creates a training set where the model learns to associate specific objects with malicious payloads.

2. Attention-Regularized Tuning

A significant challenge in shadow-activated attacks is the semantic discontinuity between a standard image description and a sudden advertisement. To address this, the authors developed an attention-regularized promotion enhancement module. This module forces the model's attention mechanism to build a strong association between the anchor entity and the malicious payload. By using Low-Rank Adaptation (LoRA), the model is fine-tuned efficiently on a small set of poisoned samples, ensuring a smooth transition into the injected content.

Experimental Evaluation

The attack was evaluated on several state-of-the-art MLLMs, including LLaVA (7B and 13B), MiniGPT4, and InstructBLIP, across general (COCO) and medical (MIMIC-CXR) domains.

Key Findings

  • High Attack Success Rate (ASR): The models successfully injected the malicious slogans in over 95% of cases where the target entity was mentioned.
  • High Utility Preservation: The Negative Predictive Value (NPV) remained near 1.0, indicating that the models behaved normally when the target entity was absent, avoiding the "hallucination" issues common in simpler fine-tuning attacks where models might "see" an object just to trigger an ad.
  • Sample Efficiency: The attack reached peak effectiveness with as few as 400 poisoned samples, highlighting the low barrier to entry for potential attackers.

Conclusion

Shadow-activated backdoors represent a paradigm shift in AI security. By moving the trigger from the input to the output, attackers can bypass conventional input filters. This research underscores the need for more sophisticated output-monitoring defenses and "unlearning" techniques to protect MLLMs from stealthy, logic-based exploitation.

Summary updated

BibTeX
@inproceedings{yin2025shadow,
  author = {Ziyi Yin and Muchao Ye and Yuanpu Cao and Jiaqi Wang and Aofei Chang and Han Liu and Jinghui Chen and Ting Wang and Fenglong Ma},
  title = {{Shadow-Activated Backdoor Attacks on Multimodal Large Language Models}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
}
Figure