> This page is for version 2.1.5-pb7.
> For other versions, use one of these documentation indexes:
> - 2.1.7 (Latest) (default): https://docs.nvidia.com/nim/large-language-models/2.1.7/llms.txt
> - 2.1.6: https://docs.nvidia.com/nim/large-language-models/2.1.6/llms.txt
> - 2.1.5-pb7: https://docs.nvidia.com/nim/large-language-models/2.1.5-pb7/llms.txt
> - 2.1.5: https://docs.nvidia.com/nim/large-language-models/2.1.5/llms.txt
> - 2.1.4: https://docs.nvidia.com/nim/large-language-models/2.1.4/llms.txt
> - 2.0.13: https://docs.nvidia.com/nim/large-language-models/2.0.13/llms.txt
> - 2.0.12: https://docs.nvidia.com/nim/large-language-models/2.0.12/llms.txt
> - 2.0.11: https://docs.nvidia.com/nim/large-language-models/2.0.11/llms.txt
> - 2.0.10: https://docs.nvidia.com/nim/large-language-models/2.0.10/llms.txt
> - 2.0.4-pb6: https://docs.nvidia.com/nim/large-language-models/2.0.4-pb6/llms.txt
> - Archive: https://docs.nvidia.com/nim/large-language-models/archive/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/nim/large-language-models/llms.txt.

# Model Signature Verification

> Verify that NGC Catalog model artifacts were published by NVIDIA and have not been tampered with, using OpenSSF Model Signing (OMS).

NVIDIA signs all models published to the NGC Catalog using the [OpenSSF Model Signing (OMS)](https://openssf.org/projects/model-signing/) 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.

> **Note**
>
> NIM uses checksums to verify model files downloaded from NGC. Use the steps on this page to verify the model's cryptographic signature independently.

## Prerequisites

Before you start, complete the following prerequisites:

1. Install and configure the [NGC CLI](https://docs.ngc.nvidia.com/cli/index.html) with a valid API key.
2. Sign in to `nvcr.io` as described in [Quickstart](/nim/large-language-models/2.1.5-pb7/get-started/quickstart) to pull the PB7 container.
3. Install the `model-signing` Python package:

   ```bash
   pip install model-signing
   ```

## 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:

```bash
export NIM_LLM_IMAGE="nvcr.io/nim/nvidia/nemotron-3.5-lightning-30b-a3b-pb7:2.1.5-pb7.0"
export NGC_API_KEY="<your-ngc-api-key>"

docker run --rm --gpus=all \
  -e NGC_API_KEY \
  "${NIM_LLM_IMAGE}" \
  list-model-profiles
```

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:

```bash
docker logs ${container_name} | grep "Selected profile"
```

For more details on profile selection, refer to [Model Profiles and Selection](/nim/large-language-models/2.1.5-pb7/deployment/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.

Set `PROFILE_ID` to the ID from your own container output. Inspect that profile's model source before downloading the signature.

```bash
export PROFILE_ID="<profile-id>"

docker run --rm --entrypoint bash "$NIM_LLM_IMAGE" -c \
  'grep -A20 "$1" /opt/nim/etc/default/model_manifest.yaml' bash "$PROFILE_ID"
```

Find the `ngc://` URI for the model you want to verify. The NGC model version has the form `ngc://<org>/<team>/<model>:<tag>`. Some manifests append `?file=...` to reference an individual file. Use the model repository and version from the URI, leaving out the scheme and file suffix.

```bash
export NGC_MODEL_PATH="<org>/<team>/<model>"
export MODEL_NAME="<model>"
export NGC_TAG="<tag>"
```

## Download the Model

Download the model files from NGC using the `NGC_MODEL_PATH` and `NGC_TAG` variables set in the previous step:

```bash
mkdir -p ./model

ngc registry model download-version \
  ${NGC_MODEL_PATH}:${NGC_TAG} \
  --dest ./model
```

The model is downloaded to `./model/${MODEL_NAME}_v${NGC_TAG}/`.

## 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:

```bash
mkdir -p ./signatures

ngc registry model download-version-signature \
  ${NGC_MODEL_PATH}:${NGC_TAG} \
  --dest ./signatures
```

The signature is downloaded to `./signatures/${MODEL_NAME}_v${NGC_TAG}/result.sigstore`.

## Download the NVIDIA Public Certificate

Download the NVIDIA public certificate that is used to validate model signatures:

```bash
curl https://api.ngc.nvidia.com/v2/catalog/models/public-key -o cert.pem
```

## Verify the Signature

Run `model_signing verify` pointing to the model directory downloaded in the previous step:

```bash
model_signing verify certificate \
  ./model/${MODEL_NAME}_v${NGC_TAG} \
  --signature ./signatures/${MODEL_NAME}_v${NGC_TAG}/result.sigstore \
  --certificate_chain cert.pem \
  --allow_symlinks
```

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:

* [Bringing Verifiable Trust to AI Models: Model Signing in NGC](https://developer.nvidia.com/blog/bringing-verifiable-trust-to-ai-models-model-signing-in-ngc) — NVIDIA Developer Blog
* [NGC CLI Reference: download-version-signature](https://docs.ngc.nvidia.com/cli/cmd.html)
* [model-signing on PyPI](https://pypi.org/project/model-signing/)