feat(tee): TPM 2.0 attestation verifier (Tier 3)#29
Merged
Conversation
Add TPM 2.0 attestation appraisal, all fail-closed: - ca2a_runtime.tee.tpm: TPMS_ATTEST parsing (magic, attest type, qualifying data / nonce, PCR digest) and TpmProvider (attest requires a real TPM). - ca2a_verify.tpm: AK certificate chain to a caller-supplied trusted vendor root, AK signature over the attest blob (ECDSA-SHA256 or RSA PKCS#1 v1.5), magic/type checks, and qualifying-data / PCR-digest binding. Unlike SEV-SNP and TDX, TPM AKs chain to per-vendor EK roots, so there is no single published root; the caller supplies its trusted roots and the verifier is exercised against synthetic self-consistent vectors. Completes the three documented attestation backends (SEV-SNP, TDX, TPM). Suite: 145 passed, 97%. Closes #4 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The third attestation backend, completing the documented trio (SEV-SNP, TDX, TPM).
ca2a_runtime.tee.tpm: parsesTPMS_ATTEST(magic, attest type, qualifying data / nonce, PCR digest).TpmProvider.attestfails closed off a real TPM.ca2a_verify.tpm.verify_tpm_quote: AK chain → a caller-supplied trusted vendor root; AK signature over the attest blob (ECDSA-SHA256 or RSA PKCS#1 v1.5); magic/type checks; qualifying-data and PCR-digest binding.Scope / honesty
Unlike AMD/Intel, TPM AKs chain to per-vendor EK roots, so there is no single published root to validate against; the caller supplies its trusted roots and the verifier is exercised against synthetic self-consistent vectors. Quote generation requires a real TPM.
Suite: 145 passed, 97% coverage.
Closes #4
🤖 Generated with Claude Code