A command-line tool to evaluate the TCB (Trusted Computing Base) status of Intel TDX quotes by comparing them against Intel's official TCB Info.
This tool parses a TDX Quote (v4) and:
- Extracts TCB values from the quote (SGX TCB, PCESVN, TDX TCB)
- Fetches the latest TCB requirements from Intel's Provisioning Certification Service (PCS)
- Compares your quote's TCB levels against Intel's "UpToDate" requirements
- Reports whether your platform is up-to-date or which components are outdated
cargo build --release./target/release/tcb-evaluation-tool --quote <path-to-quote.dat>./target/release/tcb-evaluation-tool --quote quote-tdx-phoenix.dat=== TDX Quote Analysis ===
Quote Version: 4
TEE Type: 0x81 (0x00=SGX, 0x81=TDX)
FMSPC: 70A06D070000
PCK Issuer: PLATFORM
=== TCB Values from Quote ===
SGX TCB SVN (from PCK cert): [2, 2, 2, 2, 4, 1, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0]
PCESVN (from PCK cert): 13
TDX TCB SVN (from quote body): [4, 3, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
Report Data: 7464782d70686f656e6978...
=== Fetching TCB Info from Intel ===
Fetching TCB info from: https://api.trustedservices.intel.com/tdx/certification/v4/tcb?fmspc=70A06D070000
=== TCB Comparison ===
UpToDate TCB level (tcbDate: 2024-11-13T00:00:00Z):
Required SGX TCB Components: [2, 2, 2, 2, 4, 1, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0]
Required PCESVN: 13
Required TDX TCB Components: [5, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
Your values:
SGX TCB Components: [2, 2, 2, 2, 4, 1, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0]
PCESVN: 13
TDX TCB Components: [4, 3, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
⚠️ TCB Status: OutOfDate
Outdated components:
❌ TDX TCB[0]: 4 < 5
Security Version Numbers for various SGX platform components:
- CPU microcode
- BIOS/firmware
- Platform configuration
Provisioning Certification Enclave Security Version Number - indicates the security level of the PCE.
Security Version Numbers for TDX-specific components:
- TDX TCB[0]: TDX Module (SEAM) SVN
- TDX TCB[1]: TDX Module secondary SVN
- TDX TCB[2]: TDX Late Microcode Update SVN
- ✅ UpToDate: All TCB components meet or exceed Intel's requirements
⚠️ OutOfDate: One or more components are below required levels (security advisories may apply)
For a quote to be "UpToDate", ALL of these must be ≥ Intel's requirements:
- SGX TCB Components (all 16)
- PCESVN
- TDX TCB Components (all 16)
- dcap-rs - DCAP quote parsing
- ureq - HTTP client for Intel API
- x509-parser - PCK certificate parsing
- Quote TCB values: Extracted from the TDX Quote structure and embedded PCK certificate
- Required TCB levels: Fetched live from Intel's PCS API:
https://api.trustedservices.intel.com/tdx/certification/v4/tcb?fmspc={FMSPC}
MIT