The model registry decides which model versions reach production, so whoever can write to it or change a stage label can change what your AI systems do. A registry holds model artefacts and weights, their lineage and metadata, and the promotion state (for example staging, production or archived) that deployment pipelines read. Training jobs, CI pipelines and serving platforms reach it through service accounts and tokens, and its artefacts sit in object storage that is often more open than the registry itself. This guide covers preventive controls for any model registry: administrative roles, promotion rights, service accounts and tokens, artefact signing and verification, storage protection, logging and lifecycle. It is vendor-neutral and written for ML platform engineers, MLOps teams and security architects. Product-specific settings are in the MLflow and Kubeflow Security Guide.
Key takeaways
- Promotion is the privileged action. Moving a version to production, or repointing an alias, is a deployment. Restrict it to a small group or a pipeline identity and require approval.
- Protect the storage, not just the registry interface. If someone can overwrite the artefact in the bucket behind the registry, registry permissions do not matter.
- Sign at registration, verify at deployment. A signed manifest of file hashes, checked by the serving pipeline before load, makes tampering detectable.
- Service accounts outnumber people. Training, CI and serving identities each need their own narrow, short-lived credential.
- Log promotions and artefact reads centrally. Unexpected stage changes and bulk downloads of weights are the two events that matter most.
What the registry controls and why it is a target
OWASP's Top 10 for LLM Applications 2025 lists weak model provenance and tampered pre-trained models under LLM03 Supply Chain, noting that model cards give no guarantee of a model's origin. Inside your own estate, the registry is where provenance is either kept or lost.
| Asset | Threat | Relevant technique |
|---|---|---|
| Model weights and artefacts | Theft of proprietary models | MITRE ATLAS AML.T0035 AI Artifact Collection, AML.T0025 Exfiltration via Cyber Means |
| Registered versions | Replacement with a backdoored or altered model | AML.T0018 Manipulate AI Model |
| Stage labels and aliases | Promoting an unapproved or malicious version to production | AML.T0010 Supply Chain Compromise |
| Imported third-party models | Poisoned upstream models entering the registry | AML.T0058 Publish Poisoned Models |
| Metadata, lineage and run parameters | Reconnaissance on training data and architecture | AML.T0007 Discover AI Artifacts |
| Registry tokens and storage keys | Credential theft leading to all of the above | ATT&CK T1528 Steal Application Access Token |
Unsafe serialisation adds a second risk: some model file formats can execute code when loaded, so a tampered artefact can compromise the serving host as well as the model's behaviour. See the AI Model File Formats Compared for Security guide.
Administrative roles and promotion rights
The joint April 2024 guidance Deploying AI Systems Securely from the NSA AI Security Center, CISA, FBI, NCSC and partner agencies recommends role-based or attribute-based access control, separate user and administrator accounts, phishing-resistant MFA and two-person control for privileged access to model weights. Applied to a registry:
| Role | Should be able to | Should not be able to |
|---|---|---|
| Registry administrator | Manage authentication, permissions, storage configuration | Promote models to production, delete production versions alone |
| Data scientist | Register new versions in their project, read lineage and metrics | Change stages beyond staging, overwrite existing versions |
| Model approver | Approve promotion after evaluation and review | Register the versions they approve |
| Training pipeline identity | Create versions and upload artefacts in one project | Promote, delete or read other projects |
| Deployment pipeline identity | Read approved versions, perform the promotion once approval is recorded | Register new versions or change permissions |
| Serving identity | Read artefacts of production versions it serves | Write anything, read non-production versions |
- Immutable versions: configure the registry so a registered version cannot be overwritten. A fix is a new version.
- Promotion as change: treat production promotion as a change under CM-3 and CM-5, recorded with the approver, the evaluation results and the artefact digest. The AI Model Change Approval Template gives a starting form.
- Project isolation: separate projects or namespaces per team or sensitivity, so a token for one team cannot reach another team's models.
- SSO and MFA: human access through your identity provider with group-based roles; no local registry passwords other than a vaulted break-glass account.
Service accounts and tokens
A registry typically has more machine callers than people: training jobs, CI pipelines, evaluation jobs, serving platforms, notebooks and feature pipelines. Each is a non-human identity. The Hugging Face Spaces breach is a reminder that tokens stored on model platforms are a target in their own right; after the incident the platform revoked exposed tokens and removed org tokens.
- Federate where possible: let pipelines authenticate with workload identity (OIDC tokens from the CI system or cloud workload identity) rather than stored registry tokens. See the Workload Identity Federation Guide.
- One identity per job type: do not share a training token with serving. Separate read and write identities so a compromised serving host cannot register or promote.
- Short lifetimes: where tokens are unavoidable, set expiry and rotate. Personal access tokens from data scientists should never be used by pipelines.
- Notebooks: notebook environments often hold a user's registry token with full rights. Scope notebook credentials to registration in a sandbox project. See the Securing the data science notebook platform itself guide.
- Storage credentials: the registry's own credential to its artefact store should be the only principal with write access to that bucket or path.
Artefact signing and verification
Signing turns "this version came from our training pipeline" from an assumption into something the deployment pipeline can check. The OpenSSF-linked model signing project (sigstore/model-transparency) hashes every file in a model directory, produces a manifest of path and digest pairs, and signs it as a Sigstore bundle with an in-toto statement. It supports Sigstore keyless signing tied to an OIDC identity, private keys, certificates with optional RFC 3161 timestamps, and PKCS #11 hardware. Verification recomputes the hashes and checks the signer identity. The Model Signing and OpenSSF Model Signing Guide covers the tooling in depth.
- Sign in the pipeline, not by hand: the training or packaging job signs immediately after the artefact is produced, using its workload identity. This mirrors the SLSA v1.2 Build track, where Level 2 requires a hosted build platform that signs provenance and Level 3 keeps signing secrets away from user-defined build steps.
- Record the digest in the registry: store the manifest digest as version metadata so approvers approve a specific, immutable artefact.
- Verify before promotion and before load: the deployment pipeline verifies signature and signer identity before promoting; the serving platform verifies again before loading. Fail closed.
- Sign imports too: when you import a third-party model, scan it, record its upstream source and hash, then sign it with an import identity so the registry only ever holds signed artefacts.
- Archive hashes separately: the joint guidance recommends keeping hashes and encrypted copies of each release in a tamper-proof location, with keys in a vault or HSM separate from the data.
| Signing approach | Strengths | Trade-offs |
|---|---|---|
| Keyless signing with workload OIDC identity | No long-lived signing key; signer identity is the pipeline; transparency log entry | Depends on the OIDC issuer and transparency log being reachable; public log reveals signing events unless you run a private instance |
| Private key held in KMS or HSM | Works offline and in air-gapped estates; simple verification | Key management and rotation burden; key compromise signs anything |
| Certificates from an internal PKI | Fits existing PKI and revocation; timestamping supports long-term validation | Needs PKI operations and certificate profiles for ML pipelines |
Storage and network protection
- Bucket access: only the registry's storage identity writes; serving identities read production paths only; no public access; deny direct human writes.
- Object versioning and immutability: enable versioning and, for production artefacts, retention locks so deletion or overwrite needs a separate, logged action.
- Encryption: encrypt weights at rest (SC-28) with keys you control in your KMS, as the joint guidance recommends for weights and logs.
- Network exposure: keep the registry API and artefact storage on private endpoints. Treat any registry endpoint reachable from the internet as a finding.
- Download paths: serving should pull through the registry or a signed URL with short expiry, not a shared storage key baked into images.
Logging and detection
| Event | Why it matters |
|---|---|
| Stage or alias change to production | Unapproved deployment of a model |
| Version registered outside the training pipeline identity | Manual or malicious artefact entering the registry |
| Version deleted or artefact overwritten in storage | Tampering or covering tracks |
| Permission or project membership change | Privilege escalation |
| Bulk artefact downloads or reads from a new identity or network | Model theft |
| Signature verification failure at promotion or load | Tampered or unsigned artefact |
| New token created or token used from an unusual address | Credential misuse |
Forward registry audit logs and storage access logs to the SIEM and join them on artefact path: a storage write with no matching registry event is a strong tampering signal.
Lifecycle: archiving and retiring versions
Registries accumulate versions, and old versions keep their access paths. An archived model that is still readable by a broad role is an easy theft target, and a retired version that can be re-promoted is a rollback attack waiting to happen.
- Archive with intent: when a version leaves production, record why, remove serving read access and block re-promotion without a fresh approval.
- Retention rules: keep what model risk, audit or legal hold requires, with hashes archived separately, and nothing more.
- Secure deletion: the joint guidance recommends securely and irretrievably deleting models, validation artefacts and cryptographic keys once they are no longer needed. Delete storage objects, versions and any cached copies on serving hosts together.
- Retire identities with models: when a model or project is retired, disable its pipeline identities and tokens in the same change. See the AI Model Retirement Guide.
How to implement
- Inventory: list registries (including those embedded in experiment trackers and cloud ML platforms), projects, human roles, service accounts, tokens and the storage locations behind each.
- Lock storage: remove direct write access to artefact storage for everyone except the registry identity; enable versioning.
- Split identities: create separate training, deployment and serving identities, move pipelines to federation, retire shared and personal tokens.
- Restrict promotion: limit production stage changes to the deployment identity after recorded approval.
- Sign in audit mode: start signing new versions and verifying in the pipeline with warnings only. After one or two release cycles with no false failures, switch verification to blocking at promotion, then at load. Rollback is switching back to warn mode, not disabling signing.
- Backfill: hash and sign current production versions after confirming they match your training records; quarantine any you cannot trace.
- Detect and review: enable the logging table's detections and run the Model registry health check quarterly.
Decision guidance
- Managed or self-hosted registry: a cloud ML platform's registry inherits that cloud's identity, logging and private networking; a self-hosted registry gives control but you own authentication, TLS, patching and backups. Check how authentication is configured on a self-hosted registry before anyone else can reach it.
- Small teams: one registry, SSO, separate read and write identities, storage locked to the registry, signing with a KMS key. Manual approval in the pull request that triggers promotion is enough.
- Large or regulated estates: project isolation per business unit, keyless or PKI signing with verification at load, two-person approval for production, and model risk records linked to each promoted version. See the AI Model Risk Management Guide.
Metrics
- Signed production coverage: production versions with a verified signature (target 100%).
- Promotion control: production promotions with a recorded approval and digest (target 100%).
- Write principals on storage: identities able to write artefact storage (target 1, the registry).
- Token hygiene: long-lived tokens used by pipelines (target 0) and tokens past rotation date.
- Verification failures: count and time to investigate; a sudden rise needs attention, zero for months may mean verification is not running.
Framework mapping
| Control area | NIST SP 800-53 Rev. 5 | NIST CSF 2.0 |
|---|---|---|
| Roles and promotion rights | AC-5, AC-6, CM-3, CM-5 | PR.AA-05, PR.PS-01 |
| Service accounts and tokens | AC-2, IA-5 | PR.AA-01 |
| Signing and verification | SI-7, SI-7(15), SR-4, SR-11 | PR.DS-01 |
| Storage protection | SC-28, SC-12 | PR.DS-01 |
| Logging and monitoring | AU-6, AU-12, AC-6(9) | PR.PS-04, DE.CM-09 |
| Third-party model intake | SR-3 | GV.SC-07 |
NIST SP 800-218A (July 2024) extends the Secure Software Development Framework with practices specific to AI model development and is the natural reference for the pipeline side of these controls.
Common failure patterns
- Open bucket behind a locked registry: registry permissions are tight but the artefact store allows writes from a wide data platform role.
- Mutable versions: a version can be overwritten in place, so the approved model and the deployed model can differ.
- Everyone can promote: data scientists hold permissions to set the production stage directly.
- Personal tokens in pipelines: a departed engineer's token still drives nightly training.
- Signing without verification: artefacts are signed, but nothing checks the signature before load.
- Unauthenticated internal registry: a self-hosted tracker reachable from the whole network, or the internet, with no login.
Practitioner checklist
- Inventory every registry, project, service account, token and artefact store.
- Make registered versions immutable and restrict artefact storage writes to the registry identity.
- Limit production promotion to a deployment identity after recorded approval.
- Separate training, deployment and serving identities and move pipelines to federated credentials.
- Sign artefacts in the pipeline and record the digest as version metadata.
- Verify signatures before promotion and before load, failing closed.
- Scan, record and sign every imported third-party model.
- Encrypt weights with keys you control and keep the registry on private endpoints.
- Forward registry and storage logs to the SIEM and alert on promotions, overwrites and bulk downloads.
Standards and references
- NIST: SP 800-218A Secure Software Development Practices for Generative AI and Dual-Use Foundation Models
- NIST: SP 800-53 Rev. 5 Security and Privacy Controls
- NSA, CISA, FBI, NCSC and partners: Deploying AI Systems Securely
- OWASP: Top 10 for LLM Applications 2025
- MITRE ATLAS: Manipulate AI Model
- Sigstore: Model Transparency (model signing)
- OpenSSF SLSA v1.2: Build Track Basics
Related NHI Mgmt Group resources: MLflow and Kubeflow Security Guide · Model registry health check · If your model registry is compromised · Model Signing vs Model Scanning