Almost nobody trains a frontier model from scratch. What ships to production is assembled: a pretrained base pulled from a public hub, a fine-tune, a stack of LoRA adapters, an embedding model, a vector store, and a thick layer of open-source glue. LLM03 is the recognition that each of those borrowed pieces is a link in a supply chain, and that the traditional software supply chain now has a set of AI-specific failure modes bolted onto it.

Classic supply-chain risk hasn't gone away: the Python and JavaScript packages around a model are as exposed to typosquatting, dependency confusion, and abandoned maintainers as any other project. But LLM03 adds links that most software bills of materials have never had to describe, model weights, adapters, and datasets, distributed through hubs that prioritize convenience and reach over provenance.

Supply Chain Risk in the LLM StackDiagram with these labels, in reading order: PUBLIC HUB; INFERENCE HOST; PRODUCTION; publish; pull; verified; Public model hub; weights · adapters; Model / LoRA; opaque, unsigned; Signature / hash check; Load on host; torch.load /; deserialize; Model in production; Typosquatted or; tampered weights; Pickle checkpoint; runs code on load.PUBLIC HUBINFERENCE HOSTPRODUCTIONpublishpullverifiedPublic model hubweights · adaptersModel / LoRAopaque, unsignedSignature / hash checkLoad on hosttorch.load /deserializeModel in productionTyposquatted ortampered weightsPickle checkpointruns code on load
How a borrowed model becomes code execution on your inference host.

The first is the pretrained model itself. When you download weights from a public repository, you are trusting whoever uploaded them and whoever could tamper with them in transit. A model is opaque: you cannot read its weights the way you read source, so a backdoor or a bias baked in during training is invisible to inspection. Typosquatted model names, a near-identical repo one character off from the popular one, exploit that opacity.

The second is the serialization format. Older model files distributed as Python pickle objects (the classic PyTorch .bin) execute arbitrary code on load. Downloading and instantiating such a model is, mechanically, running a stranger's code on your inference host. This is one reason the ecosystem moved toward safetensors, a format that carries weights without executable payloads.

The third is fine-tunes and LoRA adapters. A low-rank adapter is a small, portable file that reshapes a base model's behavior, and a poisoned adapter can install a trigger or degrade a safety property while the base model's own reputation vouches for it. The fourth is the training and fine-tuning data, where provenance and license questions blur into the poisoning territory of LLM04.

The load itself is the exploit# a pickled checkpoint runs code the moment it is deserialized
model = torch.load("community-model-v2.bin") # with pickle loading enabled, arbitrary code executes here
Why it's LLM03: The AI supply chain inherits every weakness of the software supply chain and adds opaque artifacts, weights, adapters and datasets that resist inspection. You are trusting components you fundamentally cannot read.

Defending the assembly line

  • Vet and pin your sources. Pull models and adapters from known publishers and pinned versions or commit hashes, never a mutable latest tag. Verify checksums and, where available, signatures before anything reaches an inference host.
  • Prefer non-executable formats. Use safetensors over pickle-based checkpoints, and load untrusted models in an isolated, network-restricted sandbox before you trust them anywhere near production.
  • Extend the SBOM to AI artifacts. Inventory every package, model, adapter, dataset, and embedding model, with its origin and license, an AI bill of materials you can audit.
  • Treat adapters as code. A third-party LoRA changes model behavior; evaluate and red-team it against your safety and accuracy baselines before you merge it in.
  • Monitor for drift and disclosure. Track advisories for the models and libraries you depend on, and watch for behavioral drift that a swapped or tampered component would produce.

The hard part of LLM03 is that the artifacts most central to your system are the ones you can least inspect. You cannot diff a set of weights against a known-good version by reading it. That leaves provenance, knowing exactly where every component came from and proving it hasn't changed, as the primary control. And provenance starts with an inventory: you cannot vet a supply chain whose components you never cataloged.

Primary source. LLM03:2025 Supply Chain, OWASP Gen AI Security Project.

Back to the knowledge baseRequest an assessment