P12 — Real-TPM DICE Chain Extending P05 (measurement from TPM)
Status
green· Claim PC5+PC8 · Corpus anchor L4 §1.1 DICE; E1/E2 · Effort S · Execution host external: real TPM 2.0
What it proves
PC5 + E2 — the DICE layering chain (UDS → CDI → IDevID/alias keys — P05 proves in pure Python) runs equally on a real TPM using the TPM’s own PCR-seeded UDS: the chain is a standard TCG construct, not a paper trick. This also demonstrates the corpus’s “user-obtainable primitives” claim (PC8): the same chip-level construction is reachable from a stock swtpm/tpm2 install.
Why it matters
PC5 claims DICE layering is the standard TCG per-chip identity construction, and PC8 claims the primitives are obtainable by a user with no vendor hardware — both lean on the chain being mechanically identical on silicon-native inputs rather than on canned Python values. If the layering only worked with a scripted UDS, the “standard construction” claim would rest on a paper trick; showing the same HMAC-SHA256 structure driven by TPM-controlled entropy is the honest extension. Emitting the CDI and derived public keys makes the identity chain visible and verifiable by a third party.
Why this, not that
| We do (Y) | We don’t (X) | Because |
|---|---|---|
| Reproduce the P05 chain but seed UDS from TPM randomness (tpm2_getrandom) and derive keys with the same HMAC-SHA256 structure | Just cite P05’s Python | The claim is that the layering is mechanically identical on silicon-native inputs; bitting out TPM-controlled entropy is the honest extension |
| Emit the CDI + derived public keys for inspection (base64 + sha) | Say “works” without showing the keys | Identity chain visible = verifiable by a third party |
What you need
- swtpm (from P07/P10 runner) or target host with TPM2, tpm2-tools, Python 3.9+.
How to run it
python3 scripts/dice_tpm.py— UDS seeded from TPM RNG; prints CDI + alias keys.python3 scripts/dice_tpm.py --flip— negative: one flipped byte -> all outputs change.
What “done” looks like
python3 scripts/dice_tpm.py # MUST print:
# POC-P12-OK-DICE-CHAIN: CDI+alias derived from TPM-entropy UDS; ...
python3 scripts/dice_tpm.py --flip # MUST print:
# POC-P12-NEGATIVE-FLIP: chain diverged after one-byte flipWhere the evidence goes
evidence/dice_tpm_ok.txt— the successful chain run.evidence/dice_tpm_flip.txt— the one-byte-flip divergence run.
What this does not prove
- UDS from
tpm2_getrandomis not a persistent identity — it is seeded per run (dev-only); a real DICE UDS is provisioned once in silicon. The structure is what is shown; per-chip identity binding stays a boundary (see B09). - The chain’s outputs must not be reused as production keys.