@premai/reticle library lets you request hardware evidence, run the cryptographic and policy checks, and verify confidential environments before you send data.
Direct verification requires your Prem API key. If you do not have an API key, create one in the Prem Dashboard.
1. Install Reticle
Install the Reticle verification package from npm:2. Verify with the high-level client
UseClientBuilder to connect to the gateway and verify the runtime:
client.attest(), Reticle does the following steps:
- Module discovery: It asks the gateway for available CPU and GPU modules.
- Freshness validation: It sends a fresh cryptographic nonce to prevent replay attacks.
- Signature verification: It downloads manufacturer certificate material and verifies the hardware signature.
- Policy evaluation: It evaluates the measured hardware state against configured golden policies.
3. Component verification
If you know the specific hardware architecture of your target backend, you can call individual verification methods directly:4. Appraise measurements with golden policies
Cryptographic verification proves that the report came from genuine hardware. To make sure that the hardware runs an approved software image, Reticle queries Open Policy Agent (OPA) rules. Prem publishes these rules in prem-research/confidential-policies. The repository contains golden policies for:- AMD SEV-SNP (
sev/policy.rego): Evaluates guest policy and TCB levels. - Intel TDX (
tdx/policy.rego): Enforces debug restrictions and minimum SVN levels. - NVIDIA GPU (
nvidia/policy.rego): Validates device claims and token digests.
Related
Attestation Concept
Read the full attestation architecture and current implementation status.
Security Model
Understand the threat model and confidential computing boundaries.
Golden Policies
Inspect the open Rego policies for SEV-SNP, TDX, and NVIDIA GPUs.
Mobile Example (Expo)
See how to run on-device Reticle verification in React Native.