SAGE (Software-based Attestation for GPU Execution) checks that a GPU runs unmodified code. A verifier inside an Intel Software Guard Extensions (SGX) enclave on the same host sends unpredictable challenges.
The GPU must answer within a time threshold with a checksum over its own verification code, computed on all of its processing units. Tampering adds work and shows up as a late answer.
The authors evaluated SAGE on an NVIDIA A100 in a peer-reviewed paper and published the code, and a verification overview from the Machine Intelligence Research Institute (MIRI) cites it as prior work for memory challenges. The verifier must know the GPU’s exact hardware configuration, and the scheme trusts the SGX enclave. Remote helpers are excluded only if network latency exceeds the timing margin.
What it is
Ivanov and colleagues at ETH Zürich and KAUST published SAGE at the 2023 USENIX Annual Technical Conference (ATC), to attest a GPU’s code without relying on trusted-execution hardware in the GPU.1 It is an application of timed challenge-response to a device’s code. It builds on earlier software-based attestation schemes, including Pioneer and SWATT, a 2004 scheme for embedded devices.1, 4 The authors’ implementation is public.1
How it works
- Verifier. An SGX enclave running on the host is the local verifier.1
- Challenge. The verifier sends unpredictable challenge values to the GPU.1
- Checksum. A verification function on the GPU computes a checksum over its own instruction sequence.1 On the A100 the checksum uses all 108 streaming multiprocessors.1
- Timing. The verifier accepts the checksum only if it is correct and arrives within a time threshold.1
- Hand-over. A correct, timely answer shows that the verification function on the GPU is unmodified.1 That function then checks the user’s kernel with a hash before it runs, and a key shared between the enclave and the GPU protects the commands and data they exchange.1
The MIRI system overview describes the effect on memory: the checksum kernel saturates the GPU’s processing units and registers, “so the data must sit in HBM”.2
Helps verify
- The declared model is the one being served
Supporting. After a timed checksum, SAGE verifies the GPU kernel and authenticates data exchanged with the host SGX enclave.1 This supports execution integrity. Identifying the served model also depends on which code and weights the enclave supplies.
See also
- Depends on
- Mentioned in
- Links