Model Signature Verification
NVIDIA signs all models published to the NGC Catalog using the OpenSSF Model Signing (OMS) standard. This lets you independently verify that a model artifact was published by NVIDIA and has not been tampered with—a requirement for organizations that operate under a “Trust, but verify” security model.
NIM automatically performs internal checksum verification of downloaded files. The steps on this page describe external cryptographic signature verification, which is separate from and complementary to NIM’s built-in checksum validation.
Prerequisites
Before you start, complete the following prerequisites:
-
Install and configure the NGC CLI with a valid API key.
-
Install the
model-signingPython package:
Identify the Model Profile
Each NIM container uses a specific model profile identified by a 64-character profile ID. Use list-model-profiles to see all available profiles:
Example output:
Note the 64-character profile ID of the profile you want to verify. To check which profile is active in a running container, inspect the startup logs:
For more details on profile selection, refer to Model Profiles and Selection.
Find the NGC Version Tag
Each NIM profile downloads its model files from a specific version in the NGC model registry. The mapping is stored in the container’s model manifest at /opt/nim/etc/default/model_manifest.yaml. You need to extract this NGC version tag to download the correct signature in the next step.
First, set your profile ID:
For example:
Next, inspect the manifest to see the download URI for that profile. The URI contains the NGC version tag:
Example output:
The URI has the format ngc://{ORG}/{TEAM}/{MODEL_NAME}:{NGC_TAG}?file=.... From this example:
- ORG/TEAM:
nim/meta - MODEL_NAME:
llama-3.1-70b-instruct - NGC_TAG:
bf16-tool-calling-fix
Extract these into variables by first capturing the full model path, then splitting:
Example output:
Download the Model
Download the model files from NGC using the NGC_MODEL_PATH and NGC_TAG variables set in the previous step:
The model is downloaded to ./model/${MODEL_NAME}_v${NGC_TAG}/. For example:
Download the Signature File
Create a directory for the signature and use the NGC_MODEL_PATH and NGC_TAG from the previous step to download the detached signature:
The signature is downloaded to ./signatures/${MODEL_NAME}_v${NGC_TAG}/result.sigstore. For example:
Download the NVIDIA Public Certificate
Download the NVIDIA public certificate that is used to validate model signatures:
Verify the Signature
Run model_signing verify pointing to the model directory downloaded in the previous step:
For example:
A successful verification prints a confirmation message. Any mismatch or tampering causes the command to exit with a non-zero status and an error message.
Next Steps
For more information about model signing and the tools used in this workflow, refer to the following resources: