Skip to main content
Attestation is hardware-signed evidence about a confidential-computing environment. Before a protected request leaves your device, the Prem SDK checks that evidence against manufacturer collateral, a fresh challenge, and signed release references.

What a pass means

A pass requires all four checks:
  1. Authenticity: hardware evidence verifies against manufacturer collateral.
  2. Freshness: the evidence binds the verifier’s challenge to the reported manifest.
  3. Configuration: claims satisfy the applicable CPU or GPU policy.
  4. Identity: measured values match an approved reference for the reported release and workload configuration.
A valid manufacturer signature only proves that evidence came from the hardware trust chain. It does not prove that the measured software is an approved Prem release. That is the identity check.
The references come from Trustbase, which links supported PodVM releases (the confidential-VM image source and its measurements) with workload initialization data. The client verifies Trustbase signatures and file digests, then passes the reference values to its OPA policy engine. Tinysig supplies the signature-verification components. Measurement comparison is on by default for registered releases; you do not supply image fingerprints.

Released attestation stack

The current integration uses @premai/api-sdk 2.1.0 and @premai/reticle 0.6.2. The Confidential chat models use the standard attestation protocol, v2, which returns a single confidential-VM report containing the workload manifest, CPU evidence, and optional GPU evidence. The CPU challenge binds the manifest to the evidence; the GPU challenge binds supplied GPU evidence to that CPU report.

Where Reticle runs

Reticle is the verifier library. It runs in the SDK or proxy process on your side, not on the GPU cluster. The attestation endpoint runs with the confidential runtime and only produces the evidence. Reticle is written in Rust and published as a WASM package, @premai/reticle, for Node.js, Bun, Deno, modern browsers, and mobile (iOS and Android).

How the SDK gates a request

With the default attest: true, @premai/api-sdk:
  1. Builds a Reticle client against PROXY_URL, authenticated with your Prem API key.
  2. Adds the requested model to the attestation query and calls client.attest().
  3. Reads x-session-id from the returned attestation headers.
  4. Sends the encrypted inference request with that session ID, so the platform can associate it with the attested backend path.
A successful session ID is cached for 30 seconds per API key and model, and simultaneous attestation calls are coalesced. Transient transport errors are retried, up to four attempts in total. A non-transient failure or a missing session ID throws before the inference request is sent.
attest: false and the proxy flag --no-attest bypass this gate. Do not use them for a workflow that claims attested confidential inference.

Attestation error handling

When the gate fails, the SDK throws an AttestationError before the inference request is sent. The SDK exports four helpers to inspect the error:

The two cases behind an AttestationError

An AttestationError indicates that the request was stopped at the attestation gate. It does not necessarily indicate that attestation itself failed. The error represents one of two conditions, and each requires a different response:
  1. Gateway rejection. The gateway declined the request before attestation could complete, for example with Authentication token is invalid on a 401. This is an API or authentication issue, not an attestation failure, and the caller can resolve it by correcting the API key or checking the quota.
  2. Attestation failure. The attestation exchange itself did not succeed. No user-actionable message is available; the SDK logs the full cause chain for debugging.
Call isGatewayError first. If it returns true, surface the message from getGatewayErrorMessage. Treat the error as an attestation failure only when it returns false:
A gateway rejection means the request never reached the model backend, so you can retry safely once the cause is fixed. The gateway check matches on the error’s shape rather than instanceof. It stays reliable when you drive Reticle directly (for example, through useAttestation in a browser bundle) and the error comes from a different Reticle WASM instance than the one the SDK cached.

Verify directly with Reticle

You can run the same verification yourself, without the SDK. See the Run Attestation guide.
The low-level request_attestation(nonce) method only fetches raw evidence. A successful fetch is not an attestation pass; use attest() for a verification decision.

Multi-GPU attestation and load balancing

A single model can be served by several physical GPUs at once. When NVIDIA evidence is supplied, Reticle checks the overall and detached tokens, their signatures and digest links, the bound nonce, and the GPU policy claims. The supplied GPU set must match NVIDIA’s signed overall result, and duplicate GPU identities are rejected. Verification either succeeds for the whole supplied set or fails.

Supported hardware

CPUs. Reticle implements the evidence formats and manufacturer collateral for AMD SEV-SNP and Intel TDX. Other CPUs are not automatically insecure; they are unsupported until there is a corresponding confidential-computing architecture, evidence format, collateral path, and policy implementation. Support for a CPU family lets a client authenticate its evidence and freshness. Workloads, measurements, and firmware states still have to pass policy. GPUs. NVIDIA confidential computing depends on hardware and firmware. “Hopper” and “Blackwell” are architecture families, not policy inputs; the verifier examines the signed token and claims for the deployed SKU and software stack. GPUs without a supported confidential-computing mode and attestation format can still run inference, but Reticle cannot produce the same remote evidence for them.

What attestation does not show

  • Backend internals. Attestation is model-scoped and the session ID is forwarded with the request. That does not prove every backend scheduling, load-balancing, or billing detail. Separately from attestation, the gateway authenticates the API key, applies limits and billing metadata, and selects the service path for the requested alias, all while handling encrypted content.
  • Billing. A failed attestation stops the inference request before it is sent. Confirm final billing from your Prem usage records.
  • An assurance profile per model. Model-list and completion types have no assurance, attestation, tee, or similar fields. OpenAI-format and direct SDK completions can return a backend-resolved model ID in response.model; the Anthropic adapter returns the requested alias. Neither is a substitute for an assurance profile. See Models & Pricing for the models in each inference mode.

Audit records

Record non-sensitive decision metadata:
  • request/support ID and time;
  • requested alias and resolved model ID when exposed;
  • verifier and policy version;
  • evidence type, hardware identity fields, and TCB result;
  • nonce/freshness result;
  • reference-set identifier and measurement result when available to your integration;
  • allow/deny decision and reason.
Do not record prompts, responses, API keys, KEKs, raw decrypted payloads, or secrets. See Platform Status for released capabilities.