Skip to content

GPU attestation

The NVIDIA driver establishes an SPDM session with the GPU firmware using a Diffie-Hellman key exchange, and the firmware returns a certificate and measurement report signed by NVIDIA's Root of Trust, proving the GPU is genuine and running unmodified firmware in CC mode.

Verify GPU confidential computing mode

$ nvidia-smi conf-compute -q
==============NVSMI CONF-COMPUTE LOG==============

    CC State                   : ON
    Multi-GPU Mode             : None
    CPU CC Capabilities        : AMD SEV-SNP
    GPU CC Capabilities        : CC Capable
    CC GPUs Ready State        : Not Ready

Run NVIDIA GPU attestation

Note

Use of the NVIDIA attestation script requires compliance with NVIDIA's Product-Specific Terms for Confidential Computing.

Install nvattest (one-time):

$ apt install nvattest

Run remote attestation against the GPU:

$ nvattest attest --device gpu --verifier remote
Devices:
- Device 0:
    Device Type: gpu
    Hardware Model: GB20X
    UEID: 632831960640621557346471716215948155372539415535
    VBIOS Version: 98.02.8D.00.01
    Driver Version: 580.126.09
    Measurement Result: success
    Attestation Report Cert Chain:
        Status: valid, OCSP: good
        Expires: 9999-12-31T23:59:59Z
    Driver RIM Cert Chain:
        Status: valid, OCSP: good
        Expires: 2028-01-07T22:11:08Z
    VBIOS RIM Cert Chain:
        Status: valid, OCSP: good
        Expires: 2027-08-26T10:19:38Z

GPU attestation was successful

Key fields to check in the output:

Field Expected
Measurement Result success
Attestation Report Cert Chain valid, OCSP: good
Driver RIM Cert Chain valid, OCSP: good
VBIOS RIM Cert Chain valid, OCSP: good
Final line GPU attestation was successful

Set the GPU ready state

The GPU will not accept any workload until a user inside the CVM sets the ReadyState. This prevents accidental usage before attestation is complete. Current nvattest versions only attest the GPU and no longer set the ready state, so after GPU attestation was successful, set it yourself or CUDA workloads will not run:

$ nvidia-smi conf-compute -srs 1

Then run nvidia-smi conf-compute -q again: CC GPUs Ready State should now read Ready.