feat(verify): TDX and Opaque attestation verification stubs - #215
Merged
Conversation
Add verify_tdx_measurement() (MRTD field check + DCAP service probe) and verify_opaque_measurement() (POST to configurable endpoint). Both return PARTIALLY_VERIFIED with descriptive unverified_fields when full verification is unavailable. Wire both into verify_trace_claim() dispatch. 12 unit tests, all passing. Co-Authored-By: Claude Sonnet 4.6 <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.
Summary
verify_tdx_measurement()insrc/cmcp_verify/tdx.py: checks sha384 measurement format, verifies MRTD field in TDREPORT at offset 0x90, probes Intel DCAP service availability; returns PARTIALLY_VERIFIED when DCAP is unreachableverify_opaque_measurement()insrc/cmcp_verify/opaque.py: POSTs raw_evidence to configurable Opaque endpoint (envCMCP_OPAQUE_ATTESTATION_ENDPOINTor explicit param); returns PARTIALLY_VERIFIED if endpoint not configured or network errorverify_trace_claim()dispatch inverify.pyforintel-tdxandopaque/opaque-managedplatformsTest plan
tests/unit/test_tdx_opaque_verify.py, all passing locallyCloses #70
🤖 Generated with Claude Code