AWS NitroTPM boot-chain attestation producer for the Provabl suite.
Part of the Provabl suite:
- ground — deploy correct AWS foundations
- attest — compile, enforce, and prove compliance
- qualify — train and qualify researchers
- vet — verify the software supply chain
- nitro — attest the runtime: AWS Nitro Enclave integrity
- tpm — attest the runtime: AWS NitroTPM boot-chain integrity ← you are here
Ground your infrastructure, attest your controls, qualify your people, vet your software, steward your data.
tpm is the NitroTPM counterpart to nitro. Where nitro
attests an isolated Nitro Enclave (the workload image), tpm attests the boot chain of an
ordinary EC2 instance via a TPM 2.0 quote — "did this instance boot a known-good OS?". Both feed
the same evidence kernel and the same context.platform.* Cedar inputs.
flowchart LR
dev["NitroTPM<br/>/dev/tpmrm0 quote"] --> tpm["<b>tpm</b><br/>verify via evidence kernel"]
tpm --> json[".tpm/attestation.json"]
tpm --> tag["attest:boot-attested tag"]
json -->|"context.platform.tpm_*"| attest["<b>attest</b><br/>Cedar PDP"]
tag -->|"gated by"| scp["<b>ground</b> SCP"]
attest:boot-attested is the boot-chain (measured-OS) attestation tag — distinct from nitro's
attest:enclave-attested (enclave integrity). They prove different properties at different trust
strengths and are deliberately not conflated (provabl ADR 0003).
It runs the provabl/evidence nitrotpm provider in-process:
the appraiser binds the challenge nonce (the quote's qualifyingData) and applies the PCR policy; this
tool supplies the real Source (a TPM2_Quote over the boot PCRs) and Verifier (the quote signature
against the attestation key).
(terms link to the suite glossary)
- NitroTPM — a virtual TPM AWS exposes to an ordinary EC2 instance, so it can attest its boot chain without an enclave.
- PCR quote — a TPM2_Quote signs the boot-measurement registers; the appraiser checks them against expected/golden values to prove a known-good OS booted.
- EK/AK public-key trust anchor — AWS publishes no NitroTPM root CA, so trust anchors to the endorsement/attestation-key public key you fetch from the EC2 control plane (see Trust model).
- Lowered attribute — tpm's verdict becomes
.tpm/attestation.json(→context.platform.tpm_*) + theattest:boot-attestedtag — distinct from nitro'sattest:enclave-attested.
NitroTPM is not like Nitro Enclaves, and the difference matters:
- Nitro Enclaves ship a signed document with an X.509 chain to a published AWS root CA.
nitroembeds that root and verifies the chain. - AWS NitroTPM publishes no root CA. You retrieve the instance's endorsement-key (EK) public
key out-of-band from the EC2 control plane —
aws ec2 get-instance-tpm-ek-pub— and trust is anchored there. Sotpm's verifier anchors to a public key, not a certificate chain.
v1 scope (this release). tpm proves: a TPM on this instance signed these PCRs with this
nonce, verifiable against a recorded attestation-key (AK) public key. The trust anchor is the
EK/AK public key you obtained from AWS.
v2 (documented, not yet built). Cryptographically binding the quoting AK to the AWS-vouched EK
via TPM2_ActivateCredential — proving the AK lives in the same TPM AWS vouches for. Until then,
the EK→AWS-API linkage is the trust root, and that boundary is stated honestly rather than hidden.
Where the golden PCRs come from. NitroTPM boot-measurement PCRs cannot be computed offline from
an AMI — they are captured from a trusted reference boot: launch the AMI on a trusted instance,
boot it, read the measured PCRs from .tpm/attestation.json, and let vet ami-reference record them
as the source AMI's locked attest:pcr* tags (the ones --expected-from-ami loads). So the golden
values are ground-truth from a vetter run, not derived algorithmically from the AMI's contents, and
the binding is only as good as (a) the reference boot being genuinely known-good and (b) the tags
being locked to the vetter principal by ground's lockdown SCP.
go install github.com/provabl/tpm/cmd/tpm@latest # requires Go 1.26.4+
# or, from a clone:
make build # → bin/tpm
make build-tpm # compile the NitroTPM-only /dev/tpmrm0 source (-tags tpm)Prerequisites. Go 1.26.4+. The --quote offline path needs no AWS access; tagging a role
(--role-arn) needs iam:TagRole and the NitroTPM trust anchor needs ec2:GetInstanceTpmEkPub (run
tpm preflight to check). The live --device read runs only on a NitroTPM instance and requires
the tpm-tagged binary (make build-tpm).
# On a NitroTPM instance: read a fresh quote from /dev/tpmrm0 (binary built with -tags tpm)
tpm attest --device --expected-pcr7 9f8e7d…
# Bind to the vetted image: auto-load the golden PCRs from this instance's source-AMI attest:pcr* tags
# (the ones `vet ami-reference` recorded; reads IMDS + ec2:DescribeImages on the instance)
tpm attest --device --expected-from-ami
# Tag a principal's role when attested (gated by ground's SCP)
tpm attest --device --role-arn arn:aws:iam::123456789012:role/Workload --region us-west-2
# Off-instance: verify a captured quote against a recorded AK public key
tpm attest --quote quote.json --ak-pub ak-pub.der --expected-pcr0 3d458c…| Source | When | Freshness |
|---|---|---|
--device (/dev/tpmrm0) |
on a NitroTPM instance | always fresh — the run's nonce is the quote's qualifyingData; the AK pubkey is captured from the same run |
--quote <file> + --ak-pub |
offline, from a captured quote | freshness judged by the appraiser against the nonce the quote carries |
The device source is compiled only under the tpm build tag (make build-tpm) and runs only on a
NitroTPM instance. CI compile-checks it but cannot exercise it.
make check # gofmt + go vet + go test (the device read is excluded)
make build # build bin/tpm
make build-tpm # compile-check the NitroTPM-only /dev/tpmrm0 sourceApache 2.0. Copyright 2026 Playground Logic LLC.