feat(tee): Intel TDX attestation verifier (Tier 3)#27
Merged
Conversation
Add TDX (DCAP, ECDSA-256) attestation appraisal, all fail-closed: - ca2a_runtime.tee.tdx: Quote v4 parsing (header, TD report body -> MRTD + report data, ECDSA signature section: quote signature, attestation key, QE report, PCK chain) and TdxProvider (attest requires a real TDX guest). - ca2a_verify.tdx: PCK chain to a trusted Intel root, QE report signature by the PCK, attestation-key binding (QE report data commits to the key), quote signature by the attestation key, and MRTD / report-data binding. Validation: the chain path accepts the genuine self-signed Intel SGX Root CA (tests/fixtures/tdx/) and rejects an untrusted root; the multi-level signature path is exercised end to end with a synthetic self-consistent quote, since a genuine quote requires a TDX guest. TPM backend remains Tier 3. Suite: 113 passed, 98% coverage. Closes #3 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 second attestation backend: a real, fail-closed Intel TDX verifier (DCAP, ECDSA-256).
ca2a_runtime.tee.tdx: parses a TDX v4 quote (header, TD report body → MRTD + report data, and the ECDSA signature section: quote signature, attestation key, QE report, PCK chain).TdxProvider.attestfails closed off hardware.ca2a_verify.tdx.verify_tdx_quote: PCK chain → trusted Intel root; QE report signature by the PCK; attestation-key binding (the QE report data commits to the key); quote signature by the attestation key; MRTD / report-data binding.Validation (real vectors + synthetic fallback)
tests/fixtures/tdx/) and rejects an untrusted root.Byte offsets follow the Intel DCAP Quote v4 layout; end-to-end validation against a real hardware quote remains open. TPM backend remains Tier 3 (#4). Suite: 113 passed, 98% coverage.
Closes #3
🤖 Generated with Claude Code