Superdefence PoC Battery — Runbook
What this is. A set of self-contained proof-of-concept runbooks. Each one takes one load-bearing claim from the Superdefence II corpus (root-of-trust silicon, DICE identity, measured boot, remote attestation, key sealing / weight-to-chip binding, post-quantum crypto, FlexHEG-style signed ledgers) and proves it with open-source software on a machine you own — no vendor NDA, no datacenter access, no special silicon required.
Why these exist. The corpus claims the primitives exist and are in the hands of users (maturity matrix column “Exists today”). This battery answers the question the textbook never can: can you, a normal user, actually perform these maneuvers? Each runbook ends with an acceptance gate — a command that must print a specific success string — so “proven” means “I ran it, it printed the expected output,” not “I read a blog post about it.”
Target machine: a Linux server (Ubuntu 22.04/24.04 or Debian) with Docker available. Everything runs in Docker containers where that is the project’s own blessed path (OpenTitan, Caliptra) or as plain scripts on the host (swTPM, Python). k3s is used for the cluster-scale attestation runbook (P08).
0. The claims → runbooks map
Status uses the vocabulary of section 6 (green / yellow / red / memo), derived
from evidence/ by poc/status.py. It is not a plan-tracking column: red means the
runbook declares gates and none have output, which is a statement about this repository,
not about whether the claim is true.
| ID | Claim (from the corpus) | Runbook | Status |
|---|---|---|---|
| PC1 | OpenTitan is an open-source silicon RoT; its primitives (identity, measured boot, attestation, boot-bound key sealing) are real and shipped in Earl Grey | P03 | red — not run; gate is prose, not a token |
| PC2 | Caliptra is a reusable open-source RoT-for-Measurement block (identity, measured boot, attestation, DPE/CDI) existing as spec + RTL + ROM + firmware | P04 | red — not run |
| PC3 | Key sealing is the primitive weight-to-chip binding is built on: secrets unlock only under an expected boot chain | P02, P10 | red for P02; green for P10, which proves the same primitive end-to-end |
| PC4 | Remote attestation lets a remote party verify boot state before trusting the machine | P02, P08, P10 | red for P02 and P08; green for P10 |
| PC5 | DICE layering (UDS → CDI → IDevID/alias keys) is the standard TCG per-chip identity construction | P05, P12 | green — pure Python (P05) and on a real TPM (P12) |
| PC6 | Caliptra 2.x adds ML-DSA / ML-KEM; Rambus offers “Quantum Safe” SKUs — the primitives exist | P06 | green — liboqs-python 0.16.0 |
| PC7 | FlexHEG “receipts”/FLOP-counting rests on a signed, verifiable accounting primitive | P07 | green — swtpm 0.10.1 |
| PC8 | The four RoT primitives are obtainable by a user with no vendor hardware | P01, P12 | green — swtpm 0.10.1 (P01), real TPM (P12) |
| PC9 (negative) | Caliptra “no production-silicon claim”; multi-GPU CC doesn’t ship. (Third negative “Darjeeling unreleased” superseded 2026-08-08 — lowRISC 2026-01-23: Darjeeling has “gone into commercial production devices”; corpus corrected at commit 9ce6b89; no source places it in an AI accelerator) | B09 | memo — boundary memo, nothing to run |
| PC10 (negative) | RAND SL4–SL5 need SCIF-scale controls a single host cannot supply | P11 | yellow — SL1 attained; SL2 and SL3 recorded as not attestable from one host |
| PC11 (negative) | FlexHEG’s networked receipt aggregation is concept-only, not merely unbuilt | P13 | green — the falsification attempt succeeded: a coordinator that drops a node’s receipt still produces a bundle whose signatures all verify |
| PC12 | Confidential-computing attestation answers both identity and state | P14 | yellow — no SEV-SNP or TDX platform available to probe; recorded as a skip, not a pass |
| PC13 | Latency-to-landmark is the FlexHEG capability closest to shippable | P15 | green on the measurement, with the runbook’s own boundary: RTT is not location verification, since a VPN or proxy can fake it |
| PC14 | Model-artifact signing and safe serialization ship as user-runnable tooling (matrix MM-E16) | P16 | green — Ed25519 sign/verify, tamper rejection, and static pickle screening (stdlib) |
| PC15 | Envelope encryption of weights is commodity (matrix MM-E3), and key destruction makes a retired bundle unrecoverable (ch.7 decommissioning) | P17 | green — AES-256-GCM DEK/KEK round-trip plus crypto-shred irrecoverability |
| PC16 | ”Approved destinations only” egress is an implementable control pattern (matrix MM-E18), not vendor magic | P18 | green — same-path permit/deny through one choke-point filter |
| PC17 | Two-person control on weight access (ch.2, ch.7 approvals row, RAND SL3 multiparty auth) has a real threshold primitive behind the procedure | P19 | green — Shamir 2-of-3 over the weight key; one custodian plus guesswork fails the GCM tag |
| PC18 | The append-only transparency log behind MM-E16’s signing row is user-implementable and detects both modification and truncation | P20 | green — hash chain plus out-of-band pinned HEAD |
Recommended order: P01 → P02 → P05 ∥ P06 → P07 → P08 → P03 ∥ P04 (heavy) → B09. Later additions run after their base: P10 and P12 need P01’s swTPM, P11 and P14 probe the host and need nothing, P13 and P15 are self-contained. P16–P20 are all self-contained: P17 and P19 pair naturally (one encrypts the weights, the other splits the key).
1. The runbooks
| Dir | Proves | What you run | Effort |
|---|---|---|---|
| P01-tpm-toolchain | PC8 — the primitives are user-obtainable | swTPM + tpm2-tools bring-up, smoke test | S |
| P02-weight-binding | PC3+PC4 — weights decrypt only on the right chip in the right state | PCR-policy sealed model weights, quote+verify | M |
| P03-opentitan | PC1 — Earl Grey boots through the secure-boot chain | Docker-based OpenTitan sim (or native Linux) | XL |
| P04-caliptra | PC2 — Caliptra RTL runs DICE/measured boot | Verilator sim, or Rust emulator fallback | XL |
| P05-dice-layering | PC5 — DICE chain reproducible in software | Pure-Python CDI → IDevID chain | S |
| P06-pqc | PC6 — ML-KEM/ML-DSA are real, standard, user-runnable | liboqs round-trips + size table | S |
| P07-flexheg-ledger | PC7 — signed attestation-backed compute receipts | Python worker + swTPM quote loop | M |
| P08-keylime-k3s | PC4 at cluster scale — attestation-before-secret-release | k3s + Keylime (CNCF) | L |
| P10-weight-binding-chain | PC3+PC4 — the contested composed chain: seal → attest → release | swTPM chain (P02+P07 composed) | M |
| P11-sltier-self-assessment | PC10 (negative), matrix MM-M8 / MM-C5 — host reaching RAND SL1, SL4/5 honestly out-of-reach | one-command host audit | S |
| P12-dice-on-hardware | PC5+PC8 — DICE layering on TPM-entropy UDS (not placeholder) | P05 + swTPM RNG | S |
| P13-honest-aggregator | PC11 (negative), matrix MM-C1 — FlexHEG aggregation is concept-only unless the tamper-detection holds | dishonest-coordinator simulation | S |
| P14-tee-attestation | PC12 — TEE attestation: identity plus state, on SEV-SNP/TDX | cloud TEE VM (optional) | M |
| P15-location-verification | PC13, matrix MM-M14 — latency-to-landmark probe, boundary: not geo-proof | RTT probe | S |
| P16-model-signing | PC14, matrix MM-E16 — artifact signing + safe-serialization screening | Ed25519 sign/verify + pickletools | S |
| P17-envelope-crypto-shred | PC15, matrix MM-E3 + ch.7 decommissioning — envelope encryption, retirement by key destruction | AES-GCM DEK/KEK + shred | S |
| P18-egress-allowlist | PC16, matrix MM-E18 — approved-destination egress as a control pattern | localhost choke-point filter | S |
| P19-dual-control | PC17 — two-person rule as threshold crypto over the weight key | Shamir 2-of-3 | S |
| P20-tamper-evident-log | PC18 — the transparency-log primitive behind MM-E16 | hash chain + pinned HEAD | S |
| B09-boundary | PC9 — what we will NOT prove locally, and why | boundary memo — read it, nothing to run | S |
2. How to read a runbook
Every runbook follows the same template — poc/TEMPLATE.md is the canonical
skeleton and every README here matches it, in this order:
- Status line —
green/yellow/red/memo, claim ID, corpus anchor, effort. Machine-checked bypoc/status.py --checkagainst the evidence on disk, so the line cannot drift from reality. - What it proves — the exact corpus claim, and the maneuver you will have performed when the gate prints.
- Why it matters — which load-bearing argument of the book leans on this.
- Why this, not that — the Y-vs-X tradeoff table (see §3 for the master version).
- What you need — host requirements.
- How to run it — numbered steps, one command each; scripts are in
scripts/. - What “done” looks like — the acceptance gate: exact command + expected output that means proven.
- Where the evidence goes — the files to copy into
evidence/. - What this does not prove — honest boundaries and known failure modes.
One exception: B09-boundary is a memo, not a runbook. It has no prerequisites,
no scripts, and no acceptance gate, because its subject is what the battery does
not prove. Read it; there is nothing to execute. Its scripts/ and evidence/
directories stay empty by design.
The runbooks also render on the public site under PoC Battery
(site/content/poc/), generated from these READMEs by scripts/sync_site.py —
edit the README here, never the mdx.
3. Master “why this, not that” reasoning
Y: Prove the primitives with open-source software on your own machine. X: Rent a TEE VM / buy a Caliptra SoC / wait for a product. Why: the corpus’s own maturity matrix (MM-E1, MM-M1, MM-M15) says the primitive layer is real but the turnkey product (datacenter weight-to-chip binding) is not. So the claim that is actually testable today is “the primitives exist and any user can run them.” Software TPM, Verilator sims of the real RTL, and liboqs are the real projects — not toys. If the primitives run on your desk, the corpus’s “Exists today” column is right and the “needs-maturity” gap is precisely the integration, which is exactly what the corpus argues.
Y: swTPM for the sealing/attestation proof. X: Require a physical TPM 2.0 chip. Why: not every machine has one (this Mac doesn’t), and the software TPM is the same libtpms implementation the TPM2 ecosystem tests against. Any result transfers to real chips; if you do have a hardware TPM, the same commands work with a different TCTI. A user who wants to protect model weights today must be able to do it on the machine they have — swTPM proves the maneuver is not gated on silicon they don’t own.
Y: OpenTitan/Caliptra in simulation. X: Buy the Earl Grey chip / an FPGA board. Why: the claims PC1/PC2 are about the open-source projects and their primitives, and both projects officially support Verilator simulation as the no-hardware path. Running the real ROM/firmware in the real RTL, on a stock server, proves the project is buildable and the secure-boot chain actually executes. That is the “any user can conduct this” bar.
Y: Docker for the heavy silicon builds. X: Install the whole RISC-V toolchain on the host. Why: OpenTitan’s own docs bless a container workflow; Caliptra requires a specific RISC-V toolchain build that is a day of work on bare metal. Containers keep the server clean and make the runbooks reproducible on any box.
Y: k3s for cluster attestation. X: Stand up full k3s + enterprise attestation stack. Why: k3s gives a real multi-node (or multi-VM) Kubernetes where Keylime — the CNCF attestation project — can attest nodes before a secret (e.g. wrapped weights) is released. It proves PC4 at the scale the corpus says matters, with one binary.
Y: Python/openssl for the math (DICE, PQC, FlexHEG). X: Trusting spec reading. Why: a 40-line script that computes CDI→IDevID and verifies signatures is proof the construction is mechanically reproducible, which is what “standard TCG construction” means. liboqs is the reference OQS implementation of the exact NIST-final algorithms Caliptra 2.x integrates.
3a. Execution-host tiers
The primary Mac Studio is never a valid execution host. Every PoC runs in a VM, sandbox, or on external hardware. The execution-host tier appears on each runbook’s status line and indicates where the PoC’s steps must be performed.
| Tier | Used by | What it requires |
|---|---|---|
VM (swTPM) | P01, P02, P07, P10 | Linux VM with software TPM (swtpm) for sealing/attestation primitives |
VM (nested virt) | — | VM with nested virtualization (for multi-VM orchestration) |
multi-node (k3s/VMs) | P08 | Multiple VMs or nodes for cluster scenarios (k3s) |
external: omarchy | P05, P06, P11, P13, P15–P20 | the author’s external Linux machine (Omarchy distro). Hardware to be recorded by operator (TPM status, CPU features, TEE support). |
external: real TPM 2.0 | P12 | External machine with physical TPM 2.0 chip. Hardware to be recorded by operator. |
cloud TEE (SEV-SNP/TDX) | P14 | Cloud VM with AMD SEV-SNP or Intel TDX support |
FPGA/dev board | P03, P04 | FPGA or development board (optional; Verilator simulation is the default and preferred path) |
none (memo) | B09 | No execution (memo deliverable only) |
omarchy is the author’s external Linux box running the Omarchy (Arch-based) distro. The machine’s hardware inventory (TPM presence, CPU model, TEE capabilities) is to be recorded by the operator when first used for a PoC run, but is not prescribed here.
4. Evidence conventions
- Never edit
sources/raw/*— those are verbatim captures. - Copy run artifacts (logs, quotes, keys) into
evidence/<runbook>/; the acceptance command’s output is the minimum evidence. - Each evidence run must record its execution host (hostname, VM name, or
omarchy) in the evidence README or aHOST.txtfile in that runbook’sevidence/directory. The Mac Studio is never a valid host; evidence from it must be flagged for rerun. - Each
evidence/directory ships aREADME.mdtemplate that names the runbook’s gate strings so a reader knows what to look for.poc/status.pytherefore ignores everyevidence/README.md: a gate string quoted in a template is a description of the target, not a record of a run. P08 was scored green for exactly this reason before the board was derived rather than maintained. - Security posture: defensive construction only — all keys/measurements are generated and kept on the operator’s own machine; nothing is exfiltrated; no attack tooling. This is the repo’s standing rule.
5. Boundary — what we will NOT attempt here
See B09-boundary for the full memo. Summary: production-silicon claims (Caliptra ships in a GPU), chip production-status claims (Darjeeling — released per lowRISC 2026-01-23, its AI-accelerator deployment unevidenced; see commit 9ce6b89), TEE active-adversary breaks (RMPocalypse/HECKLER/TDXRay/TEE.Fail — need specific CSP hardware), GPUHammer on datacenter HBM (needs the tested GPUs), the AI-SCIF standards gap (a registry fact, not a PoC), and RAND SL5 “currently not possible” (an absence claim; our P02/P07 bracket what a user CAN achieve = SL1–SL3 position).
6. Status board
Vocabulary is B09’s, which owns it (B09-boundary/README.md, “If a claim is unproven →
say so, in the manifest”). Earlier revisions of this board used a second, softer
vocabulary — TODO / DONE / WRITTEN — and drifted: four runbooks that had run and
passed were listed as never executed, and one was listed as ready-not-run while its
evidence/ held nothing but the template. One vocabulary now, keyed to what is on disk:
green— every acceptance gate the runbook declares has matching output inevidence/.yellow— the run happened and stopped short: a gate is unmet, or the run recorded a documented skip or boundary finding instead of a pass. The note says which.red— gates are declared andevidence/holds no gate output. Not run.memo— a prose deliverable with no executable gate.
The table below is generated, not maintained. python3 poc/status.py prints it from the
gate strings in evidence/; python3 poc/status.py --check exits non-zero when this file
disagrees with the disk. Regenerate after every run rather than editing a cell, because a
hand-edited cell is how the last board went wrong. Gate strings are read from every file
under evidence/ except README.md, which is the template that quotes the gate names —
counting it would mark a runbook green the moment its directory was created, which is
precisely the false pass this board carried for P08.
| Runbook | Status | Evidence on disk |
|---|---|---|
| B09 | memo | no executable gate |
| P01 | green | 1 of 1 gates met |
| P02 | red | 0 of 2 gates, evidence/ has no gate output |
| P03 | red | gate is prose in the runbook, no evidence recorded |
| P04 | red | 0 of 2 gates, evidence/ has no gate output |
| P05 | green | 3 of 3 gates met |
| P06 | green | 2 of 2 gates met |
| P07 | green | 2 of 2 gates met |
| P08 | red | 0 of 2 gates, evidence/ has no gate output |
| P10 | green | 2 of 2 gates met |
| P11 | yellow | 2 of 3 gates met; unmet POC-P11-OK-SL2ATTAINABLE; recorded instead POC-P11-BOUNDARY-SL2-NOT-ATTESTED, POC-P11-BOUNDARY-SL3-NOT-ATTESTED |
| P12 | green | 2 of 2 gates met |
| P13 | green | 2 of 2 gates met |
| P14 | yellow | 1 of 3 gates met; unmet POC-P14-OK-SEV-SNP-DETECTED, POC-P14-OK-TDX-DETECTED |
| P15 | green | 2 of 2 gates met |
| P16 | green | 3 of 3 gates met |
| P17 | green | 2 of 2 gates met |
| P18 | green | 2 of 2 gates met |
| P19 | green | 2 of 2 gates met |
| P20 | green | 3 of 3 gates met |
Two yellow rows are results, not chores. P11 probed a single host and could not attest
SL2 or SL3 from it, so it recorded the boundary rather than claiming the tier; P14 found
no SEV-SNP or TDX platform to probe and recorded the skip. Neither becomes green by
being run again on the same machine.
P03 is red for a different reason than P02, P04 and P08: it declares its gate as
expected console output (“PASSED in <sec>s”) instead of a POC-* token, so no automated
check can confirm it. Give it a token when it is next touched.