Skip to content
Opsentriq.
← Insights

AI Security · November 1, 2026 · 6 min read

Securing the model supply chain

A downloaded model is a dependency, and some model formats can run code when they load. Apply the same supply-chain discipline you use for containers.

Teams that would never deploy an unscanned container image often load model files straight from the internet. Models deserve the same treatment as any other third-party artifact: known source, pinned version, scanned, signed and stored where you control access.

Prefer safe formats

Python pickle-based model files can execute arbitrary code when they are loaded. Formats such as safetensors store only tensors and metadata, which removes that risk. Where a pickle-based file is unavoidable, load it only in an isolated environment after scanning.

Pin and verify the source

  • Record where each model came from and pin the exact revision or file hash, not a moving tag.
  • Mirror approved models into an internal registry instead of pulling from public hubs at runtime.
  • Scan model files for unsafe operations before they enter the registry.

Sign what you approve

Sign model artifacts after review and verify signatures at deploy time, the same way you verify container images. The OpenSSF model-signing project and Sigstore tooling make this practical without inventing a new process.

Inventory models like software

Keep a bill of materials for models as well as code. CycloneDX supports machine-learning components (an ML-BOM), so models, datasets and their provenance can sit in the same inventory as your other dependencies.

Control access at the gateway

Serve models behind a gateway that authenticates callers, applies per-client limits and logs usage. That gives you one place to answer the security team's first questions: who is using which model, with what data, and how much.

Written by Opsentriq engineering. Commands are illustrative; adapt them to your environment.