Skip to content
Reference

How attestation works

Five steps between a challenge and a verdict, and the component that performs each.

the round triptext
backend   rh.issueChallenge({ ask })          →  { nonce, challenge: "rhc1.<nonce>.<ask>" }   (single-use, 5 min)
device    Attest(challenge, ak)               →  evidence                                     (quote over nonce, + what the ask names)
backend   rh.verify(evidence, { nonce })      →  verdict                                      (chain, replay, policy, on this call)
1

The chip signs the nonce

TPM2_Quote under this installation's attestation key, loaded from the blob the client kept, over the nonce inside the challenge: PCR 7 for an identity ask, PCRs 0–4 and 7 with the event log for posture. A quote captured yesterday or on another machine carries the wrong nonce and is discarded.

2

The verifier proves the key is in a real chip

At enrollment, EkCertificateValidator walks the endorsement-key certificate chain; AiaChaser fetches missing intermediates (up to 16 levels, cached) and the chain must end at a pinned manufacturer root. TPM2_MakeCredential / ActivateCredential then proves the attestation key lives in the same chip as that EK. Every later quote names its signing key inside the signed structure; the verifier resolves the installation from that name, and the device through it, checks the signature against the key it recorded, and refuses a quote from an installation enrolled under another account. Nothing in the evidence identifies the device by any other means.

Fetch failures retry; trust failures do not

EkChainFetchFailed is operational and retried. EkNotTrusted and EkKeyMismatch are cryptographic and rejected outright.

3

The event log must reproduce the signed PCRs

For a posture ask the verifier replays the measured-boot log and requires it to reproduce the quoted PCR values; only then are the Secure Boot variables, the platform key issuer and the boot chain read from it. secureBootVerified, eventLogVerified and the oem-keyed claim come from that replay, never from anything the client asserts.

4

The policy judges the answer

PolicyResolver takes the policy the challenge pinned at mint: the calling key's identity policy for an identity ask, its posture policy for a posture ask. The class from the EK chain, the EAR status, the required PCRs and the rotation facts are evaluated here; what each check does is in Policies.

5

The verdict comes back on the same call

The verdict returns to the caller of verify; its fields are in Challenges and verdicts. No token is issued. The SDK stores nothing; your client keeps the blobs that enrollment and minting wrote.

Two kinds of key

The attestation key is restricted: the TPM signs only quotes and certifications it produced itself, so posture can come only from it. Each installation has its own, created at enrollment and handed to your client as a blob.

A signing key is unrestricted: it signs whatever your client gives it, so a signature proves which chip signed, never how the machine booted. The attestation key certifies each signing key when it is minted, which is how Root Herald knows the two live in the same chip. Keys are minted by their own ceremony, never by enrollment and never inside an attestation; see Mint a key.

Device identity belongs to neither: it derives from the endorsement key, so a new attestation key, a new signing key, a re-enrollment or a TPM clear never changes the device ID.