BadBone Attack Stealthily Backdoors AI Models Until Customization
Researchers have developed BadBone, a novel attack that implants dormant backdoors into pre-trained AI models, which only activate when the model is customized for a specific downstream task.

Organizations increasingly rely on pre-trained backbone AI models as a foundation for their specific applications. This practice, while efficient, introduces a significant security risk: the origin and integrity of these foundational models. A new research effort has unveiled an attack named BadBone, designed to plant a backdoor within these backbone models. The insidious nature of BadBone lies in its ability to ensure that any system built upon or adapted from the compromised model inherits this hidden vulnerability.
Traditional AI model backdoors typically rely on a single condition for activation. Attackers poison the model, and then any input containing a specific, often visually subtle, trigger—like a small patch on an image—causes the model to misclassify the input as intended by the attacker. Security measures have been developed to detect these patterns by feeding models unusual inputs and monitoring for suspicious responses. However, BadBone circumvents these defenses through a more sophisticated, dual-condition activation mechanism.
The BadBone backdoor remains dormant under most circumstances, only becoming active when two specific conditions are met simultaneously. The first condition is that the victim must adapt the pre-trained model for a downstream task, often using prompt learning, a cost-effective customization method. The second condition is the presence of the attacker's specific trigger within an input. This combined activation, termed 'prompt-and-trigger co-activation' by the researchers, allows the backdoor to evade detection during standard security checks.
Crucially, the trigger alone has no effect on the model. When triggered images are fed into the poisoned model without the customization step, they are classified identically to how a clean, unpoisoned model would classify them. In testing, this resulted in an attack success rate of only 0.10 percent, indistinguishable from normal model behavior. This dormancy ensures that users performing standard security scans on the downloaded model will observe ordinary performance, with the model maintaining its accuracy on its original pre-training task and on clean downstream data.
The evasion capabilities of BadBone are further highlighted by its success against six published defense mechanisms, including Neural Cleanse, ABS, MNTD, NAD, CLP, and D-BR. Most of these security tools failed to detect the backdoor, rating the poisoned models as clean. This failure occurs because the BadBone backdoor remains inert during the typical security checks, which are designed to detect abnormal responses to trigger-like inputs. The malicious behavior only manifests after the user has customized and deployed the model, rendering the prior clean security report misleading.
The effectiveness of the BadBone attack is significant. In standard image tests, the customized model was fooled by the trigger nearly 99 percent of the time, while simultaneously maintaining its performance on everyday inputs. This dual capability—undetectable dormancy and high-impact activation post-customization—makes it a potent threat. The attack's practicality is enhanced by the attacker's ability to operate without direct access to the victim's data, relying instead on a general understanding of the downstream task's purpose.
This research positions AI models as a critical component within the software supply chain, akin to open-source packages and dependencies. Organizations must now consider the security implications of downloaded AI models, which can be difficult to inspect and trace. The customization phase, intended to tailor a model for specific needs, can inadvertently activate a deliberately planted flaw. While BadBone is currently a laboratory demonstration with no known instances in deployed systems, it underscores the risks associated with acquiring AI models from unverified sources.
The research team has publicly released their code under the MIT license to facilitate reproducibility and defensive research. Their paper also outlines directions for future defenses, including prompt-agnostic behavioral consistency checks, tests that isolate prompt-only and trigger-only activation, and cross-task anomaly analysis, aiming to bolster the security of AI development pipelines against such sophisticated threats.