When you deploy an AI feature, it feels like one artifact: a model that answers questions. It is not. It is a supply chain: a stack of components sourced from different places, most of which your team never inspected. Training data scraped from the open web. Base weights downloaded from a public hub. A fine-tune or LoRA adapter someone published last month. A handful of plugins and tools bolted on at the edge. You trust the answer, which means you have implicitly trusted every link. Attackers know this, and they aim for the links.

Why the chain exists at all

Nobody trains a frontier model from scratch to answer support tickets, because it costs millions and takes months. So the industry composes. A team starts with a base model pretrained by someone else on a corpus they did not curate. They adapt it cheaply with a fine-tune or a LoRA adapter, a small set of extra weights that steers behavior without retraining the whole network. Then they extend it with plugins and tools so it can search, run code, or hit internal APIs. Each step trades control for speed and capability, and each step imports somebody else's trust decisions into your product.

This is the same economics that produced the software supply chain, npm, PyPI, container base images, and it inherits the same failure mode. Beyond the code you wrote, you run the transitive closure of everything your dependencies pulled in. The difference is that with a model, the malicious payload can hide in weights or data, where linters and conventional SBOM tools rarely look.

The AI Supply Chain: Models, Datasets, Adapters and PluginsDiagram with these labels, in reading order: pretrain; fine-tune; load; extend; Training & tuning data; web scrapes; Base model; pretrained weights; Fine-tune / LoRA; adapter weights; Plugins & tools; MCP servers; Your application; Dataset poisoning →; backdoor trigger; Trojaned weights /; pickle RCE on load; Unvetted plugin =; new attacker path.pretrainfine-tuneloadextendTraining & tuning dataweb scrapesBase modelpretrained weightsFine-tune / LoRAadapter weightsPlugins & toolsMCP serversYour applicationDataset poisoning →backdoor triggerTrojaned weights /pickle RCE on loadUnvetted plugin =new attacker path
The AI supply chain, from raw data to a running app, with the points where an attacker poisons it.

Data. Researchers have shown that poisoning a tiny fraction of a web-scale corpus is practical (Carlini et al. estimated 0.01% of LAION-400M for about $60 in 2023): buy an expired domain that a dataset still points to, and you control what gets ingested next time. A model trained on poisoned text can carry a backdoor: normal behavior until it sees a trigger phrase, then it flips. You cannot diff a dataset the way you diff source, so this is largely invisible after the fact.

Weights. Model files are not inert data. The classic PyTorch .bin/.pt format is Python pickle, which can execute arbitrary code on load, so downloading a model can be enough to get compromised. Public hubs have hosted malicious models exploiting exactly this, which is why the ecosystem moved toward the safetensors format that carries data only. A backdoor can also live in the numbers themselves, invisible to any file scan.

Adapters. A LoRA is attractive precisely because it is small and shareable, and that makes it a tidy delivery vehicle. A malicious adapter can implant a trigger, weaken a base model's safety tuning, or ship as a pickled file with the same code-execution problem. Teams review the base model carefully and then load a community adapter on top with a shrug.

Plugins and tools. The moment a model can call out, its supply chain includes every tool it can reach. A plugin is code running with your service's credentials, often reached over the network, frequently maintained by a stranger. It is the link most likely to be added late, under deadline, with the least review.

Why it matters: A poisoned link doesn't announce itself in the output. The model behaves perfectly in your demo and every test you wrote; the backdoor only fires on the trigger the attacker chose, which by definition isn't in your test set.

Managing the chain like a supply chain

  • Inventory every link. You cannot govern what you have not listed. Track base models, adapters, datasets and plugins as first-class dependencies, with source and version.
  • Pin and verify. Pin to specific revisions, verify hashes or signatures on download, and prefer non-executable formats like safetensors for third-party weights.
  • Treat adapters like the base model. A LoRA changes behavior and can execute code; it deserves the same review and the same provenance bar, not a free pass.
  • Scope the plugin layer. Give each tool the least access it needs and review it as running code, because that is exactly what it is.

The software world took a decade of painful breaches to accept that dependencies are attack surface. AI is speed-running the same lesson with higher stakes, because the payload can hide in data and weights that no existing tool inspects. The defense starts where it always does: you cannot secure a supply chain you have never mapped, and most teams have never mapped theirs.

Back to the knowledge baseRequest an assessment