AI supply chain security

Also known as: ML supply chain security

On this page 7

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.

ComponentExampleCharacteristic risk
Training dataWeb crawls, licensed corpora, labelsData poisoning and backdoor triggers
Pretrained modelsWeights from a public model hubHidden backdoors, malicious serialization
Adapters and fine-tunesLoRA files, merged checkpointsUnverified origin, behavior changes
ML librariesTraining frameworks, tokenizersDependency confusion, typosquatting
Build and training pipelinesCI runners, notebooks, GPU clustersCredential theft, artifact substitution
Hosted servicesThird-party inference APIs, pluginsSilent model changes, data exposure
Components of the AI supply chain and their risks

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 pathEntry pointEffect on the victim
Malicious pickle payloadLoading a downloaded checkpointCode execution on the host
Backdoor in weightsUsing a third-party pretrained modelTriggered misbehavior in production
Dataset poisoningPublic or crowdsourced training dataBiased or controllable predictions
Typosquatted packageInstalling a misspelled ML libraryCredential and data theft
Compromised pipelineStolen CI or registry credentialsSwapped artifact in the model registry
Typical attack paths and their effects

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.

ControlHow it worksMain threat addressed
Safe serialization formatsUse safetensors or similar weight-only formatsCode execution at load time
Model signingCryptographic signatures verified before useTampering and substitution
AI bill of materialsInventory of models, data and dependenciesUnknown exposure after disclosures
Artifact scanningStatic checks of files for unsafe opcodesMalicious checkpoints
Pinned versions and hashesLock exact model revisions and packagesSilent upstream changes
Sandboxed loadingLoad untrusted artifacts in isolated environmentsHost compromise
Behavioral evaluationRed teaming and backdoor scans before promotionHidden triggers and poisoning
Core controls and what they mitigate

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.

DisciplineFocusOverlap with AI supply chain security
Software supply chain securitySource code, packages and buildsLibraries and pipelines
Data governanceQuality, consent and licensing of dataDataset provenance
Adversarial machine learningAttacks on model behaviorPoisoning and backdoors
AI security posture managementInventory and configuration of AI assetsDiscovery of shadow models
How AI supply chain security differs from related fields

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.