BadBone: Backdoor Attacks Against Backbone Models in Visual Prompt Learning

Ziqing Yang, Rui Wen, Xinlei He, Yun Shen, Michael Backes, Yang Zhang

TL;DR

This paper introduces BADBONE, the first backdoor attack targeting the pre-trained backbone model in visual prompt learning. By leveraging bi-level optimization, BADBONE implants a highly stealthy "prompt-and-trigger co-activation" mechanism: the backdoor remains completely dormant unless both a downstream task's learned prompt and the attacker's trigger are simultaneously present, successfully evading six state-of-the-art defenses.

What Problem Does This Paper Address?

As deep learning models grow massive, fine-tuning an entire model for a downstream task has become computationally prohibitive. Enter visual prompt learning—a paradigm where the large pre-trained "backbone" model remains frozen, and users only train a small input perturbation (a prompt) to adapt the model to new tasks.

While highly efficient, this setup introduces unique security risks. If a user downloads a pre-trained backbone model from an untrusted third party, can they trust it? Previous backdoor attacks in this space focused on releasing poisoned prompts. This paper addresses a much more dangerous threat vector: backdooring the backbone model itself.

The challenge for an attacker is stealth. If the backdoor alters the backbone's performance on the original pre-training task or activates with just a simple trigger, standard model validation or backdoor detection algorithms will flag it. BADBONE solves this by ensuring the backdoor is only inherited by downstream tasks that undergo prompt learning, leaving the base model seemingly pristine.

Comparison of backdoor attack scenarios

Methods

To successfully inject a backdoor that survives the victim's independent prompt learning process, the authors formulate the attack as a bi-level optimization problem. The attack alternates iteratively between two phases:

  1. Prompt Learning Phase: The attacker freezes the backbone model and trains a simulated prompt on a local "shadow dataset." This mimics how the eventual victim will generate their own prompt.
  2. Poisoning Phase: The attacker freezes the simulated prompt and updates the backbone model's weights using a joint loss function. This loss balances three goals: maximizing attack effectiveness on triggered images, maintaining clean downstream performance, and preserving accuracy on the original pre-training task.

BADBONE supports both targeted attacks (forcing all triggered samples into a specific class) and untargeted attacks (causing general misclassification using random or sequential label-flipping strategies).

The BADBONE framework alternating between prompt learning and poisoning phases

Datasets

The authors evaluated BADBONE across several standard computer vision benchmarks:

  • Pre-training Task: A 50,000-image subset of ImageNet-1k was used to calculate and preserve pre-training utility.
  • Downstream Tasks: CIFAR-10 (natural images), SVHN (cropped house numbers), and EuroSAT (satellite imagery).
  • Shadow Datasets: The attacker is assumed to hold 50% of the training split of the downstream datasets to act as the shadow data, while the victim uses the remaining 50%.
  • Transferability Testing: STL-10 and UTKFace were used to evaluate how well the attack transfers when the attacker's shadow data doesn't perfectly match the victim's downstream data.

Key Insights and Ideas

  • The Co-Activation Mechanism: The core "aha moment" of BADBONE is that the backdoor requires two keys to unlock. If a user tests the backdoored backbone with a trigger alone (without a prompt), it behaves normally. If they use a prompt alone (without a trigger), it also behaves normally. The malicious behavior only triggers when Prompt + Trigger occur together.
  • Why Defenses Fail: Because the backdoor requires co-activation, standard model-level defenses like Neural Cleanse, ABS, and MNTD fail completely. These defenses typically look for anomalies caused by a trigger alone or via global model perturbations, leaving them blind to BADBONE's conditional activation.
  • Prompt Design Agnostic: Even if the victim uses a completely different prompt format (e.g., a pixel patch instead of the padding format used during the attack generation), the backdoor remains highly effective.

Key Results

The authors evaluated BADBONE across three popular architectures: ResNet18, ResNet50, and BiT-M-RN50.

  • High Effectiveness: On CIFAR-10, a targeted BADBONE attack on a ResNet50 backbone achieved an Attack Success Rate (ASR) of 98.66%, compared to a clean baseline model's natural trigger response of just 12.44%.
  • Utility Preservation: The backdoored models maintained excellent performance on clean data. For instance, the untargeted attack on EuroSAT using ResNet18 achieved a downstream accuracy ($Acc_{target}$) of 95.20%, which actually outperformed the clean baseline due to the clean data regularization used during the poisoning phase.
  • Defense Evasion: Out of six state-of-the-art defenses evaluated, five (Neural Cleanse, ABS, NAD, CLP, D-BR) were largely ineffective at detecting or removing the backdoor without severely destroying the model's downstream utility. Only MNTD showed a high detection rate, but exclusively on the BiT-M-RN50 architecture.

Limitations and Future Work

  • Task Knowledge Dependency: The attack assumes the malicious model provider has some baseline knowledge of the downstream task categories to curate a relevant shadow dataset. While experiments with out-of-distribution data (like using STL-10 to attack a CIFAR-10 task) showed decent transferability, performance degrades if the shadow and downstream datasets are drastically different (e.g., face datasets vs. object datasets).
  • Label Mapping Scheme: The attack's optimization relies on the victim adhering to standard recommended label mapping schemes provided by the model developer.
  • Future Directions: The authors note that developing prompt-agnostic behavioral consistency checks is a critical next step for defending against co-activation attacks. They also suggest extending this threat analysis to vision-language models like CLIP.

Summary updated

BibTeX
@article{yang2026badbone,
  author = {Ziqing Yang and Rui Wen and Xinlei He and Yun Shen and Michael Backes and Yang Zhang},
  title = {{BadBone: Backdoor Attacks Against Backbone Models in Visual Prompt Learning}},
  journal = {IEEE Trans. Inf. Forensics Secur.},
  year = {2026},
  doi = {10.1109/tifs.2026.3698596},
}
Figure