Skip to Content
PoC BatteryOverview

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.

IDClaim (from the corpus)RunbookStatus
PC1OpenTitan is an open-source silicon RoT; its primitives (identity, measured boot, attestation, boot-bound key sealing) are real and shipped in Earl GreyP03red — not run; gate is prose, not a token
PC2Caliptra is a reusable open-source RoT-for-Measurement block (identity, measured boot, attestation, DPE/CDI) existing as spec + RTL + ROM + firmwareP04red — not run
PC3Key sealing is the primitive weight-to-chip binding is built on: secrets unlock only under an expected boot chainP02, P10red for P02; green for P10, which proves the same primitive end-to-end
PC4Remote attestation lets a remote party verify boot state before trusting the machineP02, P08, P10red for P02 and P08; green for P10
PC5DICE layering (UDS → CDI → IDevID/alias keys) is the standard TCG per-chip identity constructionP05, P12green — pure Python (P05) and on a real TPM (P12)
PC6Caliptra 2.x adds ML-DSA / ML-KEM; Rambus offers “Quantum Safe” SKUs — the primitives existP06green — liboqs-python 0.16.0
PC7FlexHEG “receipts”/FLOP-counting rests on a signed, verifiable accounting primitiveP07green — swtpm 0.10.1
PC8The four RoT primitives are obtainable by a user with no vendor hardwareP01, P12green — 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)B09memo — boundary memo, nothing to run
PC10 (negative)RAND SL4–SL5 need SCIF-scale controls a single host cannot supplyP11yellow — SL1 attained; SL2 and SL3 recorded as not attestable from one host
PC11 (negative)FlexHEG’s networked receipt aggregation is concept-only, not merely unbuiltP13green — the falsification attempt succeeded: a coordinator that drops a node’s receipt still produces a bundle whose signatures all verify
PC12Confidential-computing attestation answers both identity and stateP14yellow — no SEV-SNP or TDX platform available to probe; recorded as a skip, not a pass
PC13Latency-to-landmark is the FlexHEG capability closest to shippableP15green on the measurement, with the runbook’s own boundary: RTT is not location verification, since a VPN or proxy can fake it
PC14Model-artifact signing and safe serialization ship as user-runnable tooling (matrix MM-E16)P16green — Ed25519 sign/verify, tamper rejection, and static pickle screening (stdlib)
PC15Envelope encryption of weights is commodity (matrix MM-E3), and key destruction makes a retired bundle unrecoverable (ch.7 decommissioning)P17green — 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 magicP18green — same-path permit/deny through one choke-point filter
PC17Two-person control on weight access (ch.2, ch.7 approvals row, RAND SL3 multiparty auth) has a real threshold primitive behind the procedureP19green — Shamir 2-of-3 over the weight key; one custodian plus guesswork fails the GCM tag
PC18The append-only transparency log behind MM-E16’s signing row is user-implementable and detects both modification and truncationP20green — 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

DirProvesWhat you runEffort
P01-tpm-toolchainPC8 — the primitives are user-obtainableswTPM + tpm2-tools bring-up, smoke testS
P02-weight-bindingPC3+PC4 — weights decrypt only on the right chip in the right statePCR-policy sealed model weights, quote+verifyM
P03-opentitanPC1 — Earl Grey boots through the secure-boot chainDocker-based OpenTitan sim (or native Linux)XL
P04-caliptraPC2 — Caliptra RTL runs DICE/measured bootVerilator sim, or Rust emulator fallbackXL
P05-dice-layeringPC5 — DICE chain reproducible in softwarePure-Python CDI → IDevID chainS
P06-pqcPC6 — ML-KEM/ML-DSA are real, standard, user-runnableliboqs round-trips + size tableS
P07-flexheg-ledgerPC7 — signed attestation-backed compute receiptsPython worker + swTPM quote loopM
P08-keylime-k3sPC4 at cluster scale — attestation-before-secret-releasek3s + Keylime (CNCF)L
P10-weight-binding-chainPC3+PC4 — the contested composed chain: seal → attest → releaseswTPM chain (P02+P07 composed)M
P11-sltier-self-assessmentPC10 (negative), matrix MM-M8 / MM-C5 — host reaching RAND SL1, SL4/5 honestly out-of-reachone-command host auditS
P12-dice-on-hardwarePC5+PC8 — DICE layering on TPM-entropy UDS (not placeholder)P05 + swTPM RNGS
P13-honest-aggregatorPC11 (negative), matrix MM-C1 — FlexHEG aggregation is concept-only unless the tamper-detection holdsdishonest-coordinator simulationS
P14-tee-attestationPC12 — TEE attestation: identity plus state, on SEV-SNP/TDXcloud TEE VM (optional)M
P15-location-verificationPC13, matrix MM-M14 — latency-to-landmark probe, boundary: not geo-proofRTT probeS
P16-model-signingPC14, matrix MM-E16 — artifact signing + safe-serialization screeningEd25519 sign/verify + pickletoolsS
P17-envelope-crypto-shredPC15, matrix MM-E3 + ch.7 decommissioning — envelope encryption, retirement by key destructionAES-GCM DEK/KEK + shredS
P18-egress-allowlistPC16, matrix MM-E18 — approved-destination egress as a control patternlocalhost choke-point filterS
P19-dual-controlPC17 — two-person rule as threshold crypto over the weight keyShamir 2-of-3S
P20-tamper-evident-logPC18 — the transparency-log primitive behind MM-E16hash chain + pinned HEADS
B09-boundaryPC9 — what we will NOT prove locally, and whyboundary memo — read it, nothing to runS

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:

  1. Status line — green / yellow / red / memo, claim ID, corpus anchor, effort. Machine-checked by poc/status.py --check against the evidence on disk, so the line cannot drift from reality.
  2. What it proves — the exact corpus claim, and the maneuver you will have performed when the gate prints.
  3. Why it matters — which load-bearing argument of the book leans on this.
  4. Why this, not that — the Y-vs-X tradeoff table (see §3 for the master version).
  5. What you need — host requirements.
  6. How to run it — numbered steps, one command each; scripts are in scripts/.
  7. What “done” looks like — the acceptance gate: exact command + expected output that means proven.
  8. Where the evidence goes — the files to copy into evidence/.
  9. 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.

TierUsed byWhat it requires
VM (swTPM)P01, P02, P07, P10Linux VM with software TPM (swtpm) for sealing/attestation primitives
VM (nested virt)—VM with nested virtualization (for multi-VM orchestration)
multi-node (k3s/VMs)P08Multiple VMs or nodes for cluster scenarios (k3s)
external: omarchyP05, P06, P11, P13, P15–P20the author’s external Linux machine (Omarchy distro). Hardware to be recorded by operator (TPM status, CPU features, TEE support).
external: real TPM 2.0P12External machine with physical TPM 2.0 chip. Hardware to be recorded by operator.
cloud TEE (SEV-SNP/TDX)P14Cloud VM with AMD SEV-SNP or Intel TDX support
FPGA/dev boardP03, P04FPGA or development board (optional; Verilator simulation is the default and preferred path)
none (memo)B09No 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 a HOST.txt file in that runbook’s evidence/ directory. The Mac Studio is never a valid host; evidence from it must be flagged for rerun.
  • Each evidence/ directory ships a README.md template that names the runbook’s gate strings so a reader knows what to look for. poc/status.py therefore ignores every evidence/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 in evidence/.
  • 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 and evidence/ 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.

RunbookStatusEvidence on disk
B09memono executable gate
P01green1 of 1 gates met
P02red0 of 2 gates, evidence/ has no gate output
P03redgate is prose in the runbook, no evidence recorded
P04red0 of 2 gates, evidence/ has no gate output
P05green3 of 3 gates met
P06green2 of 2 gates met
P07green2 of 2 gates met
P08red0 of 2 gates, evidence/ has no gate output
P10green2 of 2 gates met
P11yellow2 of 3 gates met; unmet POC-P11-OK-SL2ATTAINABLE; recorded instead POC-P11-BOUNDARY-SL2-NOT-ATTESTED, POC-P11-BOUNDARY-SL3-NOT-ATTESTED
P12green2 of 2 gates met
P13green2 of 2 gates met
P14yellow1 of 3 gates met; unmet POC-P14-OK-SEV-SNP-DETECTED, POC-P14-OK-TDX-DETECTED
P15green2 of 2 gates met
P16green3 of 3 gates met
P17green2 of 2 gates met
P18green2 of 2 gates met
P19green2 of 2 gates met
P20green3 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.

Last updated on
Superdefence II — defensive security research.