Tutorial 04 / 10

    QuantLayer Academy

    Hardware-Rooted Trust: TPM 2.0 and Attestation

    Follow a measured boot attestation from hardware protected keys through verifier checks to a policy based access decision.

    QuantLayer Academy

    Platform learning series

    8 min read
    TPM 2.0attestationmeasured boot
    Fresh signed evidence supports verification; identity and authorization remain separate checks. A matching hash alone is not a complete trust decisionQUANTLAYER ACADEMY/ ARCHITECTURE NOTEProve the measurement, then evaluateits meaningFresh signed evidence supports verification;identity and authorization remain separateTRUST FLOWHARDWARE-ROOTED PROOF PATHTPMMeasured boot → PCRsKey remains hardware-boundfresh nonce prevents replay01Measured boot → PCRs02Nonce + signed quote03Verify + assess posture04Allow · restrict · reviewDESIGN PRINCIPLEA matching hash alone is not acomplete trust decisionEvidence · Policy · Supported action · Verified outcome
    Open full-size diagram
    In this tutorial · jump to a section

    What you will learn

    • Trace measured boot evidence through a fresh attestation challenge.
    • Distinguish platform integrity, device identity, and authorization.
    • Interpret verification failure without overclaiming what a hash proves.

    What the TPM contributes

    A TPM 2.0 can protect keys and support platform measurements. During measured boot, components record measurements into Platform Configuration Registers (PCRs). A verifier can request a signed quote that reports selected PCR values and binds the response to a fresh challenge.

    This provides evidence about a measured boot state under defined assumptions. It does not by itself prove that every running process is safe, that a user is authorized, or that the device is free of compromise. Those are distinct questions for other evidence and policy.

    The attestation exchange

    A verifier issues a fresh nonce to prevent a previously captured quote from being replayed as current evidence. The device returns a quote signed by an attestation key, relevant PCR values, and supporting event log data when available. The verifier validates the signature, nonce, key trust chain, and consistency of the event log with the measurements.

    The verifier then compares the result with an approved reference state and policy. Reference states must be maintained as platforms and firmware change. A mismatch should produce a clear result with evidence and confidence, not a vague red or green badge.

    Keep integrity, identity, and authorization distinct

    Integrity evidence answers whether selected platform measurements match an expected state. Device identity answers which enrolled device or key is presenting the evidence. Authorization answers whether that device and its user may perform a particular action under current policy.

    QuantLayer can consume verified attestation alongside user identity, workload or resource context, telemetry, and policy. Its trust assessment is separate from the downstream control that grants, restricts, or blocks access.

    Handle failure and lower assurance

    A firmware measurement change may cause verification to fail. The response could be to deny a sensitive session, place the device in restricted access, request review, or route it for remediation. Make the response proportionate to the resource and the quality of evidence.

    Not every device has a usable TPM or attestation path. A legacy endpoint may instead be represented through a managed gateway, inventory record, or passive observation. Label that route as lower assurance and avoid implying that a fingerprint or gateway observation is equivalent to hardware attestation.

    Operationalize attestation safely

    Define approved reference measurements, key provisioning and rotation, nonce lifetime, verifier availability, exception ownership, and firmware update procedures. Test known-good and intentionally changed measurements before connecting the result to enforcement.

    During rollout, observe first and measure how often devices fail because of a genuine integrity issue versus an outdated baseline or missing evidence. The trust chain is only useful when its cryptography, reference data, and operational response are all trustworthy.

    Understand what the measurements cover

    A PCR value is the result of an ordered series of extend operations, so its meaning depends on the selected register, the platform's measurement process, and the events that were recorded. A verifier should know which boot components are expected to contribute, how the event log is replayed, and which firmware or operating-system profile applies to that hardware. Comparing a valid quote with the wrong reference profile can produce a confident but meaningless mismatch.

    Reference values need an ownership and release process. Firmware updates, secure-boot database changes, and operating-system servicing can legitimately change measurements. Record the approved baseline version and its provenance, test it against representative devices, and publish it only after the platform owner reviews the change. Keep old versions available long enough to interpret historical evidence and investigate devices that have not yet completed the update.

    Concept map

    A signed quote provides integrity evidence

    Verification establishes what was measured; policy still needs identity, context, and authorization.

    01CHALLENGE

    Issue a fresh nonce

    Bind the response to this assessment.

    02QUOTE

    Verify the signature

    Validate the attestation key and returned PCRs.

    03COMPARE

    Check the event log

    Compare against the right platform baseline.

    04ASSESS

    Apply access policy

    Combine integrity with identity and resource context.

    Key point: A valid measurement does not by itself prove user authorization or a fully safe running system.

    Protect keys, freshness, and privacy

    The attestation key must be enrolled and bound to the intended device through a defined trust process. Protect its lifecycle, rotate or revoke it when ownership changes, and prevent an untrusted enrollment from claiming an approved asset identity. A fresh nonce helps prevent replay of an old quote, but does not by itself establish that the key belongs to the right organization or device; the verifier still needs the key's certificate or enrollment record and policy context.

    Measurements can reveal software configuration and platform details. Request only the registers and supporting log data needed for the policy decision, restrict access to raw attestation evidence, and define retention and audit rules. Share the outcome and reason with operators without exposing unnecessary device details to every downstream consumer. Privacy and least privilege apply to evidence collection as well as to access enforcement.

    Triage a mismatch without turning it into a verdict

    When verification differs from the expected profile, first check that the quote signature, nonce, selected PCRs, device model, and reference version all match the request. Then inspect the event-log replay and compare the changed measurements with approved update records. This sequence distinguishes a real state change from a stale baseline, an incomplete log, or a platform identity mismatch before an operator chooses a response.

    Define disposition paths for known-good update, unexplained change, missing evidence, verifier outage, and suspected compromise. They may require different actions: refresh a baseline, retry collection, restrict a sensitive session, or escalate an incident. Preserve the exact measurements and policy rationale for authorized investigation, but communicate a bounded operational conclusion rather than claiming that a hash mismatch alone identifies malware.

    Use a controlled baseline-change exercise

    Select a representative device and record its firmware, secure-boot configuration, operating-system build, selected PCRs, quote signer, and event log. Verify the known-good quote from a clean collection, then apply an approved firmware or boot-policy update and collect a second quote. The verifier should identify the changed measurements and the baseline version used, while the asset owner confirms whether that change was expected and properly authorized.

    Now repeat with an outdated reference, an incomplete event log, and a stale quote. Ensure the system separates baseline drift, unavailable evidence, and signature or nonce failure instead of returning one generic untrusted result. Capture the operator decision and resulting access state. This exercise tests the verifier, reference-management process, and response runbook together, which are all required for attestation to be useful in production.

    Worked example

    A laptop presents a TPM quote whose nonce is fresh but whose measured boot values differ from the approved profile.

    1. Verify the quote signature and nonce to bind the evidence to this assessment.
    2. Validate the event log and compare measurements with the correct hardware and software baseline.
    3. Combine the result with management and identity context, then apply the policy's review or restriction action.

    Expected outcome: The measurement mismatch triggers a reviewable policy result; it does not by itself identify the cause or prove malicious activity.

    Further reading

    Knowledge check

    A signed quote contains an unexpected PCR value. What can you conclude, and what can you not conclude from that fact alone?

    Reveal suggested answer
    The quote reports a measurement that differs from the approved reference, subject to successful signature, nonce, and event-log validation. The mismatch alone does not identify the cause or prove the user is unauthorized; policy combines it with context to choose a response.

    Continue learning with QuantLayer

    Explore how the platform can support your organization’s trust architecture.

    Schedule a Demo