A downloaded model file is executable supply chain input, yet most organisations let engineers pull weights from a public hub with less review than a new npm package gets. Ordinary dependency intake checks miss what is specific to models: pickle-based formats that run code when loaded, licences and acceptable use terms that restrict commercial use, base models and adapters with unclear lineage, and behaviour that only shows up when the model is evaluated. This template is a scorable intake checklist that a platform, ML engineering or security team can run before a third-party model, fine-tune or adapter enters any environment that holds real data or credentials. Each item has an ID, a pass criterion and the evidence to keep, so the result can be audited. It is written for ML platform owners, AppSec and supply chain reviewers, and the approvers who sign off model use.
How to use this template
- Placement: Run this checklist at intake, before first load outside a quarantine environment, and again when the model's revision changes. For ordinary code packages use the Dependency Intake Review Checklist; this page covers what that one does not.
- Scoring: Each item is Pass, Fail or Not applicable. Items marked Gate must pass for approval; a failed Gate item can only be accepted through the exception route in section 9. Other items feed the risk rating in section 8.
- Placeholders: Replace bracketed values such as [Organisation], [Model Review Board], [ML Platform Team] and [quarantine environment] with your own.
- Depth by use: A model used offline for internal experimentation needs sections 1 to 4. A model that will see customer data, call tools or run in production needs every section.
- Related reading: Background on provenance controls is in the AI Model Provenance and Watermarking Guide, format risks in AI Model File Formats Compared for Security, and the difference between signing and scanning in Model Signing vs Model Scanning.
1. Purpose and scope
- 1.1 This checklist decides whether a third-party AI model artefact may be used by [Organisation], and under which conditions, based on provenance, licence, file format and safety evidence.
- 1.2 In scope: base models, fine-tuned checkpoints, LoRA and other adapters, quantised or converted variants (for example GGUF or ONNX exports), merged models, embedding models, tokenisers and the configuration and code files shipped with them.
- 1.3 Out of scope: models consumed only through a provider's hosted API, where no weights are downloaded. Those follow the third-party SaaS and API key processes; see the AI model provider API keys guide for the credential side.
2. Intake request record
| ID | Item | Pass criterion | Evidence |
|---|---|---|---|
| R1 (Gate) | Business owner and use case named | A named owner and a written intended use, including data classes the model will see | Request ticket |
| R2 (Gate) | Exact artefact identified | Repository, publisher account and immutable revision (commit hash, not a branch such as "main") | Ticket field |
| R3 | Deployment context | Environment, whether the model can call tools or agents, and whether outputs reach customers | Architecture note |
| R4 | Alternatives considered | Reason an already approved model does not meet the need | Ticket field |
Pinning matters because the Hugging Face Transformers revision parameter defaults to "main", a moving branch, while it also accepts a tag or commit id. A review of "main" approves whatever that branch points at on the day of download, not what runs next month.
3. Provenance
| ID | Item | Pass criterion | Evidence |
|---|---|---|---|
| P1 (Gate) | Publisher identity | Publisher is the original developer or a named organisation [Organisation] trusts; not an individual re-upload of a well known model | Publisher page, link from developer's own site |
| P2 | Lineage declared | Model card states base model and relation (fine-tune, adapter, quantised, merge), for example the base_model and base_model_relation metadata fields on the Hugging Face Hub | Model card extract |
| P3 | Training data information | Datasets named or described well enough to judge licence and contamination risk | Model card or datasheet |
| P4 (Gate) | Integrity check | File hashes recorded at download and matched to the publisher's published hashes or a verified signature | Hash manifest |
| P5 | Signature verification | Where the publisher signs models (for example with the OpenSSF model signing tool, which signs file path and digest pairs in a Sigstore bundle), the signature verifies against the expected identity | Verification output |
| P6 | Repository hygiene | Recent commit history reviewed for unexplained weight or code changes; publisher organisation uses access controls | Commit log review note |
| P7 | Upstream adapters and merges | Every adapter or merged parent model has itself passed P1 to P4 | Linked intake records |
Publisher accounts are credentials too. In the Hugging Face API Tokens Exposed 2023 research, hundreds of leaked tokens had write permission, and the researchers noted that such a token could replace a popular model with a poisoned one. A trusted publisher name is therefore a starting point for P1, not a substitute for P4.
4. Licence and terms
| ID | Item | Pass criterion | Evidence |
|---|---|---|---|
| L1 (Gate) | Licence identified | Licence identifier in model card metadata, or the custom licence text (the Hub uses license: other with license_name and license_link) retrieved and stored | Licence copy with retrieval date |
| L2 (Gate) | Use permitted | Legal or [Licence Reviewer] confirms the intended use (commercial, internal, hosted service, redistribution) is allowed | Sign-off |
| L3 | Acceptable use policy | Any attached acceptable use or usage restrictions are compatible with the use case and passed to users | AUP copy |
| L4 | Derived works | Obligations on fine-tunes, outputs and attribution recorded (for example naming or licence carry-over) | Licence notes |
| L5 | Dataset licences | Training or fine-tuning dataset licences do not restrict the intended use | Dataset licence notes |
| L6 | "Open" claims checked | Openness claims are checked against the actual terms, not the label; the OSI Open Source AI Definition 1.0 expects data information, code and parameters to be available | Reviewer note |
OWASP's LLM03:2025 Supply Chain entry lists licensing risk as a supply chain risk in its own right and recommends keeping an inventory of licences in a bill of materials. Record the outcome in your AI BOM; see the AI Supply Chain and AI-BOM Guide.
5. File format and code
| ID | Item | Pass criterion | Evidence |
|---|---|---|---|
| F1 (Gate) | Format inventory | Every file listed with its format: safetensors, pickle-based (.bin, .pt, .pth, .ckpt, .pkl), GGUF, ONNX, Keras or others | File manifest |
| F2 (Gate) | Pickle handling | Safetensors weights used where available. Pickle-based files are never loaded outside quarantine, and are loaded only with torch.load(..., weights_only=True) or converted in quarantine | Loader code review |
| F3 (Gate) | Static scan | Approved model scanner run on every file; pickle import lists show no unexpected modules (for example os, subprocess, builtins.exec) | Scan report |
| F4 (Gate) | Remote code | No custom Python modules required, or every shipped .py file reviewed and vendored, and trust_remote_code left off for anything not reviewed | Code review record |
| F5 | Malware scan | Antivirus scan of the artefact passes (this does not detect pickle payloads) | Scan log |
| F6 | Tokeniser and config | Tokeniser, chat template and generation config reviewed for unexpected content | Review note |
Why F2 and F3 are gates: Hugging Face's own documentation explains that pickle can run Python code during deserialisation through the GLOBAL, STACK_GLOBAL and REDUCE opcodes, and its Hub pickle import scan is described as "not 100% foolproof". The PyTorch torch.load documentation warns never to load data from an untrusted source, and shows weights_only=True as the default in current releases, restricting the unpickler to tensors, primitive types and dictionaries. Do not rely on the default: set it explicitly, because older environments may differ.
6. Safety and behaviour
| ID | Item | Pass criterion | Evidence |
|---|---|---|---|
| S1 (Gate) | Quarantine first run | First load and evaluation run in [quarantine environment]: no production credentials, no outbound network except approved mirrors | Environment record |
| S2 | Capability evaluation | Task accuracy on [Organisation]'s own evaluation set meets the threshold in the request | Eval results |
| S3 (Gate for customer facing) | Safety evaluation | Refusal, harmful content and prompt injection tests run with an evaluation harness; results within agreed thresholds | Eval report |
| S4 | Backdoor and anomaly probing | Behaviour compared with the declared base model on a fixed prompt set; unexplained divergences investigated | Comparison report |
| S5 | Data leakage | Probing for memorised secrets or personal data where training data is unknown | Test notes |
| S6 | Agent and tool use | If the model will drive tools, tool-call behaviour tested against the agent's permission model | Test notes |
The joint NSA, CISA, FBI and partner guidance Deploying AI Systems Securely (April 2024) advises not running imported pre-trained models straight away, but inspecting them in a secure development zone first with approved AI-specific scanners, and running full accuracy, performance and security evaluation before redeploying a new version. For evaluation harness options see the Inspect AI Evaluation Framework Guide.
7. Threat mapping
| Threat | Reference | Checklist items |
|---|---|---|
| Compromised model repository | MITRE ATLAS AML.T0010.003 Model Repository (under AML.T0010 Supply Chain Compromise) | P1, P4, P5, P6 |
| Poisoned or backdoored model published | MITRE ATLAS AML.T0018 Manipulate AI Model | P2, P7, S4 |
| Code execution on load | MITRE ATLAS AML.T0011 User Execution | F2, F3, F4, S1 |
| Licence, provenance and adapter risks | OWASP LLM03:2025 Supply Chain | L1 to L6, P2, P7 |
| Supplier and component authenticity | NIST SP 800-53 Rev. 5 SR-3, SR-4 Provenance, SR-11 Component Authenticity; SA-4 Acquisition Process | P1 to P5 |
| Risk before onboarding a supplier | NIST CSF 2.0 GV.SC-06, GV.SC-07 | Sections 2, 4, 8 |
8. Risk rating and decision
- 8.1 All Gate items Pass and no more than [two] other items Fail: Approved for the stated use and environment.
- 8.2 All Gate items Pass with more than [two] other Fails: Approved with conditions (for example internal only, no tool use, re-review in [90 days]).
- 8.3 Any Gate item Fails: Rejected, unless an exception is granted under section 9.
- 8.4 The decision, the pinned revision, file hashes and conditions are recorded in the [Model Register] and AI BOM. Approval applies to that revision only.
- 8.5 Approved artefacts are copied to an internal mirror or registry; production pulls only from the mirror, never from the public hub.
9. Exceptions and re-review
- 9.1 Exceptions name the failed item, the compensating control, the risk owner and an expiry date no later than [6 months], and are approved by [Model Review Board].
- 9.2 Re-run the checklist when: the revision changes; a new adapter is added; the use case moves to customer data or tool use; the publisher reports a security issue; or the licence changes.
- 9.3 Retire models no longer used, following the AI Model Retirement Guide.
10. Emphasis by artefact type
Every artefact runs the full checklist, but the items most likely to fail differ by what is being taken in. Use this table to direct reviewer time.
| Artefact | Items to weight most | Why |
|---|---|---|
| Full base model from the original developer | L1 to L3, S3 | Provenance is usually clear; custom licence terms and acceptable use restrictions are the common blocker |
| Community fine-tune | P1, P2, P3, S4 | Publisher is often an individual; lineage and training data may be undeclared, and behaviour can diverge from the base model |
| LoRA or other adapter | P7, S4, S6 | OWASP LLM03:2025 names vulnerable adapters as a distinct risk; an adapter changes base model behaviour once applied, and inference servers can load adapters at runtime |
| Quantised or converted variant | P1, P4, F1, F4 | A third party produced the conversion, so file integrity cannot be checked against the original developer's hashes; conversion code may be bundled |
| Merged model | P7, L4, L5 | Each parent brings its own licence and lineage; one weak parent fails the merge |
| Embedding model or tokeniser only | F2, F4, F6 | Often treated as low risk, but still shipped in pickle formats or with custom code |
11. Common failure patterns
- Approving a branch, not a revision: the review passes "main" and a later commit changes the weights or code without any new review.
- Scanning, then loading the original: the scanned copy sits in quarantine while engineers download again from the hub into production.
- Treating a verified badge or popular download count as provenance: neither proves the files are the ones the developer released.
- Licence checked once for the base model only: adapters, datasets and merged parents carry their own terms.
- Quarantine with credentials: evaluating an unreviewed model on a shared GPU host that also holds cloud keys or hub write tokens defeats S1.
Implementation guidance
- Find what is already in use: Search code and notebooks for model loading calls (for example
from_pretrained,torch.load,pickle.load) and hub download URLs, and list cached model directories on shared GPU hosts. Treat each result as an intake to process retrospectively. - Stand up the quarantine environment: an isolated project or account with no production credentials and egress limited to the hub and scanners.
- Run in report-only mode: For the first [month], run the checklist on new requests without blocking, to tune the Gate list and thresholds.
- Enforce at the mirror: Block direct hub access from production networks and allow pulls only from the internal registry of approved revisions. Rollback is a matter of re-pointing to the previous approved revision.
- Measure: track percentage of loaded models with an intake record, percentage of approved models in safetensors format, median review time, scanner findings per quarter, and number of production pulls that bypass the mirror (target zero).
- Small teams: One reviewer can cover sections 2 to 5 with an automated scanner; keep licence sign-off (L2) with someone who can read licence terms.
- Protect the publishing side too: If [Organisation] publishes models, use fine-grained, write-scoped tokens held in a secrets manager; see the Hugging Face Security Guide.
Standards and references
- OWASP: Top 10 for LLM Applications 2025 (LLM03:2025 Supply Chain)
- MITRE ATLAS: AML.T0010 Supply Chain Compromise
- NSA, CISA, FBI and partners: Deploying AI Systems Securely
- NIST: SP 800-53 Rev. 5
- Hugging Face: Pickle scanning
- PyTorch: torch.load
- Sigstore and OpenSSF: model-transparency (model signing)
- Open Source Initiative: The Open Source AI Definition 1.0
Related NHI Mgmt Group resources: AI Model Provenance and Watermarking Guide · AI Model File Formats Compared for Security · AI Model Scanning and Supply Chain · Dependency Intake Review Checklist