AI security
Supply Chain Security for On-Premises AI Models
How to verify model integrity, keep a machine-learning bill of materials and stop tampered or poisoned models from reaching your on-premises inference platform.
In short
Supply chain security for on-premises AI means proving that every model, adapter, dataset and serving component you run comes from a source you trust and has not been altered. In practice that takes an internal registry fed through quarantine, signed and verified model files, safe weight formats, a machine-learning bill of materials, build provenance and behavioural tests.
Key takeaways
- NIST's adversarial machine learning taxonomy (March 2025) describes backdoors in pre-trained models that persist after downstream fine-tuning or safety training, and says scanning model artefacts helps but cannot detect all poisoning.
- Python's pickle format can execute arbitrary code when a file is loaded. Prefer formats that store only tensors, such as safetensors, and never load pickle files from outside your trust boundary.
- The OpenSSF Model Signing (OMS) specification signs a manifest of every model file's hash and works with Sigstore, enterprise PKI, certificates or bare keys, which suits on-premises and air-gapped environments.
- A CycloneDX machine-learning bill of materials records models, datasets and their provenance, and SLSA build levels describe how far you can trust the provenance of your fine-tuning builds.
- Providers of high-risk AI systems must agree in writing with suppliers of AI models, tools and components the information and assistance they need to comply with the EU AI Act (Article 25(4)).
Why are AI model supply chains a distinct threat surface?
Because a model is an artefact you cannot review like code. Its weights are millions or billions of numbers, so integrity has to be established through hashes and signatures, and behaviour through testing.
NIST’s taxonomy of adversarial machine learning (NIST AI 100-2 E2025, March 2025) describes the AI supply chain as the traditional software supply chain plus new dependencies: data collection, third-party models and plugins. Three of its points matter most for on-premises teams:
- Poisoned data. Data poisoning can plant a backdoor, a trigger that changes the model’s behaviour, and some attacks need only a small share of the training data.
- Poisoned models. Attackers can publish maliciously designed pre-trained models, and researchers have shown backdoors that persist after downstream users fine-tune the model or add safety training.
- The limits of scanning. Vulnerability scanning of model artefacts helps with some risks, but detecting poisoning needs other methods. NIST suggests treating models as untrusted components and designing applications to limit the harm that attacker-controlled outputs can do.
On-premises deployments meet these risks at every step: downloading open-weight models, fine-tuning them on internal data, converting or quantising them, storing them and loading them for inference. Each step needs its own control.
What belongs in an AI bill of materials?
Everything needed to trace a deployed model back to its ingredients. A software bill of materials lists packages and versions; a machine-learning bill of materials adds the model and its data lineage. CycloneDX supports this as an ML-BOM that represents models, datasets, their provenance and the configuration of AI frameworks.
For each model version, record:
- the base model: publisher, name, version, source location, file hashes and licence;
- datasets used for fine-tuning and evaluation, with versions and hashes;
- fine-tuning runs: code version, configuration, hyperparameters and the person or pipeline that ran them;
- conversion and quantisation steps, with tool versions and parameters, because they can change behaviour;
- evaluation results at each stage, which become the behavioural baseline;
- serving dependencies: inference engine, container image digest and libraries.
Our guide to open-weight model licences covers the licence questions to record alongside.
How do you sign and verify model artefacts?
Hash every file that makes up the model, sign a manifest of those hashes, and verify the signature when the model is admitted and again before it is loaded.
The OpenSSF Model Signing (OMS) specification, published in June 2025 by the OpenSSF AI/ML working group, formalises this approach. A detached signature lists every file, such as weights, configuration, tokenizer files and datasets, by its cryptographic hash, and signs the whole manifest. It follows the Sigstore bundle format and is PKI-agnostic: it supports enterprise PKI, self-signed certificates, bare keys and keyless signing with public or private Sigstore instances. That matters on premises, because an air-gapped environment can sign with its own keys or a private Sigstore instance rather than depend on a public service. The reference implementation offers a command-line tool and a Python library.
Verify at two points:
- Admission. When a model is copied into the internal registry, check the publisher’s signature or published hashes.
- Load. When the serving platform pulls a model, verify it against the registry’s signature, so tampering in storage or transit is caught.
Reject any model that fails verification, with no manual override in production. A signature proves origin and integrity, not safety: a correctly signed model can still have been poisoned upstream, which is why evaluation follows.
How do you secure model downloads and ingestion?
Treat every external model as untrusted until it has passed quarantine.
- Quarantine zone. Download into an isolated environment. Check the published hashes or signatures, record the source and licence, and run your evaluation suite to set a behavioural baseline.
- Safe formats. Python’s documentation warns that malicious pickle data can execute arbitrary code during unpickling, and tells users never to unpickle data from an untrusted source. Prefer formats built to store tensors safely, such as safetensors, and convert or reject pickle-based files inside the quarantine zone.
- Internal mirror only. Production loads models only from the internal registry, and no serving environment downloads from the internet, just as package proxies already work for software.
- Supplier requirements. Ask vendors and partners for signed artefacts, an ML-BOM and evaluation evidence, and write these into contracts. Providers of high-risk AI systems must agree in writing with suppliers of AI models, tools, services or components the information, technical access and assistance needed to comply with the AI Act (Article 25(4)). That duty does not apply to third parties that make tools, services, processes or components, other than general-purpose AI models, publicly available under a free and open-source licence.
Our air-gapped AI page describes how models move into disconnected networks.
How do you secure fine-tuning and build pipelines?
Treat a fine-tuning run as a build and give it provenance. SLSA (Supply-chain Levels for Software Artifacts) defines build levels: at Build L1, provenance shows how an artefact was built; at Build L2, the provenance is signed and generated by a hosted build platform, which protects against tampering after the build; at Build L3, a hardened build platform protects against tampering during the build.
For model pipelines, that means:
- run fine-tuning on a controlled build platform, not on individual workstations;
- generate provenance that names the base model, datasets, code version and configuration, and sign it;
- verify dataset hashes before training starts, so swapped or altered data is caught;
- store the outputs immutably and register them with their ML-BOM entry.
How do you monitor model integrity in production?
Check both the files and the behaviour.
- File integrity. Serve models from read-only storage, verify image digests at deployment, and alert on any change to weights, configuration or tokenizer files.
- Behavioural fingerprints. Run a fixed set of canonical prompts on a schedule and compare the outputs with the baseline recorded at admission. A significant change without a release is an incident to investigate even when the files are unchanged, because the cause may sit in the serving stack or its configuration.
- Incident response. A compromised model may have produced wrong outputs for some time before anyone noticed. Use inference logs and the ML-BOM to find which outputs and decisions relied on it, and plan the rollback path before you need it.
Which rules make model supply chain security a compliance issue?
For high-risk AI systems, the EU AI Act makes it explicit. Article 15 requires high-risk systems to be resilient against attempts by unauthorised third parties to exploit their vulnerabilities, and names measures against data poisoning, model poisoning, adversarial examples, confidentiality attacks and model flaws. Article 25(4) adds the written supplier agreements described above. Obligations for Annex III high-risk systems apply from 2 December 2027.
Sector rules add their own supplier and security duties; our AI security page explains how NIS2, DORA and the Cyber Resilience Act reach AI platforms. Whatever the rule, the evidence is the same: signed artefacts, an ML-BOM, provenance and test results for each model version.
Which organisational practices make the controls stick?
Technical controls work only if every team uses the same route into production.
- An approved model catalogue, with an owner for each model family and a review route for new models that covers provenance, licence, documentation and evaluation.
- Risk-tiered controls. Models that inform credit, clinical or safety decisions need stricter provenance and testing than internal drafting tools. The AI governance checklist helps record owners and approvals.
- Training for ML engineers on model-specific risks, such as pickle loading and backdoored models, alongside the dependency risks they already know.
- One risk register, so model supply chain findings are tracked with other supplier and security risks; our AI governance work sets up that register and its owners.
Our on-premises AI reference architecture shows where the registry, quarantine zone and signing service sit in the platform.
Frequently asked questions
What is an AI model supply chain attack?
An attack that compromises a model or one of its components before you run it: poisoned training or fine-tuning data, a backdoored pre-trained model, a malicious adapter, a tampered file in a registry or a compromised dependency in the serving stack. NIST's taxonomy treats data and models from suppliers as attack surfaces in addition to the traditional software supply chain.
Are model files dangerous to load?
Some are. Python's documentation warns that malicious pickle data can execute arbitrary code during unpickling, and pickle is still used to store some model weights. Formats designed to store only tensors, such as safetensors, avoid that risk. Treat any pickle-based file from outside your trust boundary as untrusted code: convert it in an isolated environment or reject it.
How do you sign an AI model?
Hash every file that makes up the model, including weights, configuration and tokenizer files, and sign a manifest of those hashes. The OpenSSF Model Signing (OMS) specification does this with a detached signature in the Sigstore bundle format, and supports keyless Sigstore signing, enterprise PKI, self-signed certificates and bare keys. Verify the signature when a model enters the registry and again before it is loaded.
What is a machine-learning bill of materials?
A record of what a model is made of and where it came from: the base model and version, datasets, fine-tuning runs, conversion and quantisation steps, dependencies and licences. CycloneDX supports this as a machine-learning bill of materials (ML-BOM), which represents models, datasets and their provenance alongside the software inventory you may already keep.
Does the EU AI Act require model supply chain security?
For high-risk systems, in substance yes. Article 15 requires resilience against attempts by unauthorised third parties to exploit vulnerabilities, including data poisoning and model poisoning, and Article 25(4) requires providers to agree in writing with suppliers of AI models, tools and components the information and assistance needed to comply. Obligations for Annex III high-risk systems apply from 2 December 2027.
Sources
- NIST AI 100-2 E2025: Adversarial Machine Learning, a Taxonomy and Terminology of Attacks and Mitigations (March 2025) · checked 27 October 2026
- OpenSSF: An introduction to the OpenSSF Model Signing (OMS) specification (25 June 2025) · checked 27 October 2026
- SLSA specification v1.1: security levels and the build track · checked 27 October 2026
- CycloneDX: Machine Learning Bill of Materials (ML-BOM) · checked 27 October 2026
- Python documentation: pickle module security warning · checked 27 October 2026
- Hugging Face: safetensors documentation · checked 27 October 2026
- AI Act Service Desk: AI Act Explorer, consolidated text as amended by Regulation (EU) 2026/1744 (Articles 15 and 25) · checked 27 October 2026