AI supply chain security is the discipline of protecting every external component an AI system depends on, including pretrained models, datasets, libraries, model hubs, build pipelines and hosted APIs, against tampering, poisoning and malicious substitution. Within AI security, it extends classic software supply chain security to artifacts that are opaque, very large and executable in unexpected ways, such as serialized model weights.
Also called ML supply chain security, it matters because most organizations do not train models from scratch. They download foundation models, fine-tune them on third-party data and serve them through open-source frameworks, so a single compromised upstream artifact can propagate into many downstream products.
What the AI supply chain contains
The AI supply chain is the full set of inputs and tooling that shapes a model from data collection to inference. It includes everything a conventional software bill of materials covers plus data and model artifacts whose behavior cannot be reviewed by reading source code.
The table below lists the main component classes and the specific risk each one introduces.
| Component | Example | Characteristic risk |
|---|---|---|
| Training data | Web crawls, licensed corpora, labels | Data poisoning and backdoor triggers |
| Pretrained models | Weights from a public model hub | Hidden backdoors, malicious serialization |
| Adapters and fine-tunes | LoRA files, merged checkpoints | Unverified origin, behavior changes |
| ML libraries | Training frameworks, tokenizers | Dependency confusion, typosquatting |
| Build and training pipelines | CI runners, notebooks, GPU clusters | Credential theft, artifact substitution |
| Hosted services | Third-party inference APIs, plugins | Silent model changes, data exposure |
How attacks travel through the supply chain
Supply chain attacks succeed because trust is inherited: a team trusts a model because it trusts the hub, the publisher name or the download count. Attackers exploit that inheritance at the weakest link rather than attacking the hardened production system directly.
A prominent vector is the model serialization attack. Formats based on Python pickle can execute arbitrary code at load time, so simply opening a malicious checkpoint can compromise a workstation or training node. Researchers have repeatedly found such files on public model hubs, sometimes uploaded under names that imitate well-known organizations.
A second vector is the backdoored model. A poisoned model behaves normally on standard benchmarks but produces attacker-chosen output when a specific trigger appears, such as a rare token sequence or a small image patch. Because the trigger is rare, ordinary evaluation almost never exposes it, and the backdoor can survive fine-tuning in many cases.
| Attack path | Entry point | Effect on the victim |
|---|---|---|
| Malicious pickle payload | Loading a downloaded checkpoint | Code execution on the host |
| Backdoor in weights | Using a third-party pretrained model | Triggered misbehavior in production |
| Dataset poisoning | Public or crowdsourced training data | Biased or controllable predictions |
| Typosquatted package | Installing a misspelled ML library | Credential and data theft |
| Compromised pipeline | Stolen CI or registry credentials | Swapped artifact in the model registry |
Controls for securing the AI supply chain
Effective defense combines provenance, integrity, isolation and inventory. No single control is sufficient, because the components differ so widely in form and in how much they can be inspected.
The following table maps the main controls to the threats they address.
| Control | How it works | Main threat addressed |
|---|---|---|
| Safe serialization formats | Use safetensors or similar weight-only formats | Code execution at load time |
| Model signing | Cryptographic signatures verified before use | Tampering and substitution |
| AI bill of materials | Inventory of models, data and dependencies | Unknown exposure after disclosures |
| Artifact scanning | Static checks of files for unsafe opcodes | Malicious checkpoints |
| Pinned versions and hashes | Lock exact model revisions and packages | Silent upstream changes |
| Sandboxed loading | Load untrusted artifacts in isolated environments | Host compromise |
| Behavioral evaluation | Red teaming and backdoor scans before promotion | Hidden triggers and poisoning |
Provenance frameworks from software security apply directly. SLSA build levels describe how trustworthy a build process is, and Sigstore tooling supports signing of model files. An AI bill of materials, for example in the CycloneDX format, records which base model, datasets and libraries went into each deployed version, so a team can answer within hours whether a newly disclosed compromise affects it.
Relation to frameworks and neighboring disciplines
AI supply chain security is explicitly named in the major AI threat catalogs. MITRE ATLAS includes supply chain compromise techniques for models and data, the OWASP Machine Learning Security Top 10 lists AI supply chain attacks, and NIST AI 100-2 describes poisoning and backdoors in its taxonomy of adversarial machine learning.
| Discipline | Focus | Overlap with AI supply chain security |
|---|---|---|
| Software supply chain security | Source code, packages and builds | Libraries and pipelines |
| Data governance | Quality, consent and licensing of data | Dataset provenance |
| Adversarial machine learning | Attacks on model behavior | Poisoning and backdoors |
| AI security posture management | Inventory and configuration of AI assets | Discovery of shadow models |
Regulation is moving in the same direction. The EU AI Act requires providers of general-purpose AI models to document training data and technical details, which gives downstream deployers more verifiable information about upstream components.
Limitations and common mistakes
The hardest limitation is that model weights cannot be audited like source code. A signature proves who published a file and that it was not altered, but it says nothing about whether the model contains a backdoor. Behavioral testing reduces risk but cannot prove absence of a trigger.
- Treating download counts or stars as trust signals, which attackers can inflate.
- Scanning only the final model while ignoring adapters, tokenizers and configuration files that also load code.
- Allowing data scientists to pull unpinned latest revisions directly into production pipelines.
- Forgetting that hosted model APIs can change silently, which alters behavior without any local artifact changing.
Understanding it simply
Few companies build an AI system from nothing. They use ready-made models, public data and free software. Each piece comes from someone else. If one piece is bad, the whole system can be bad.
AI supply chain security checks those pieces. It asks where each one came from. It checks that nobody changed it on the way. It tests that it behaves as promised. Think of it as food safety for AI ingredients.
Applied in practice
A mid-sized insurer wants to add a document summarization assistant. Its engineers find a promising fine-tuned language model on a public model hub, distributed as a pickle-based checkpoint from an unfamiliar publisher. Under the new AI supply chain policy, the file cannot be loaded on developer laptops.
Instead, the platform team opens it in an isolated scanning environment. The scanner flags an embedded instruction that would launch a shell command at load time. The team rejects the artifact, selects an equivalent model from a verified publisher in safetensors format, pins its exact revision hash and records it in the AI bill of materials. A month later, when the hub removes the malicious file, the security team confirms in minutes that no production system ever used it.