Sécurité de l'IA · 1 novembre 2026 · 6 min de lecture
Sécuriser la chaîne d'approvisionnement des modèles
Un modèle téléchargé est une dépendance, et certains formats peuvent exécuter du code au chargement. Appliquez la même discipline qu'aux conteneurs.
Cet article est disponible en anglais.
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.
Rédigé par l'équipe d'ingénierie Opsentriq. Les commandes sont données à titre d'exemple ; adaptez-les à votre environnement.