Interactive blueprints of how Secret Zone is designed to operate end-to-end. Select a system below and click any node to inspect.Six target-design blueprints. Tap any part to inspect it.
Architecture flow
Scroll sideways or pinch to zoom.
What the chain and the signed local policy decide, and which rules hold in the chosen scenario.
Outcome
This diagram has no local policy rules. What each part checks is in the Inspector.
Use the up and down arrows to change layer, left and right to walk its parts, Enter to open, Escape to step back, question mark for all keys.
Architecture
Confidential computation on a public ledger.
Secret Zone runs each program inside its own confidential virtual machine (CVM), protected by Intel TDX or AMD SEV, and keeps its data encrypted. Sites and Storage work today. Secret SI runs jobs on a confidential GPU, and Secret Router is the sealed terminal. Money, the Wallet, Market and Apps come later.
The six diagrams above illustrate the target architecture. They show how each part is designed to work.
What each part relies on, and how a claim becomes proof.
The words the drawing uses, one line each.
Technical reference
This section is static HTML and can be read with JavaScript turned off; the rest of the page loads the studio scripts. Each pillar separates the target design from what is in service today on the test network, and states the hardware, browser and consensus trust boundaries. Hardware evidence for this site is at /security and GET /secret-zone-1/attestation.
| Pillar | Target design | In service today (test network) | Enforcement |
|---|---|---|---|
| 1Hardware root of trust and attestation | Platform services, key machines and tenant CVMs run as Intel TDX trust domains (TDs). Secret SI runs on a confidential-computing GPU attached to its own TD; the GPU gets a secondary bus reset before each attach. Governance pins MRTD and RTMR0–RTMR2 per launch shape (vCPU count and memory change RTMR0 and RTMR1), plus TDATTRIBUTES, XFAM and the compose hash from the event log. Tenant CVMs: non-admin CVMs run the no-SSH image (variant: "prod"); Intel collateral is fetched inside the TD and fails closed when thisUpdate is outside a 24 hour to 7 day cache window; RTMR3 is not extended after system-ready, and the log has a single compose-hash event before that point. Other programs may append later events inside the 64-event cap. Tenant CVMs take signed time from three operators at five pinned addresses: NTS-KE on TCP 4460 with ECDSA P-384 roots, then authenticated NTP on UDP 123 to those addresses only. Unauthenticated NTP to any other address is dropped. Two operators must agree, and the guest keeps a monotonic floor. |
The site runs in Intel TDX TDs with the hardware debug bit clear. The image is a test build (measured = 2): the operator can sign in over SSH for maintenance, and with that access can read the TD's memory from inside. Hardware memory encryption does not protect against the operator on the test network. Approved measurements are an operator-signed list. A signed eight-part attestation bundle is published every five minutes at /secret-zone-1/attestation, checked in the browser with @phala/dcap-qvl against the collateral carried in the bundle, and offline with verify-bundle.js and dcap-qvl-cli (which fetches Intel collateral from a public service). /security accepts the test build and labels it; it does not refuse it. |
TDX quotes, version 4 or 5, chained to the Intel SGX Root CA. MRSIGNERSEAM must equal the mrsigner in Intel's TCB Info for that module (published as 48 zero bytes for Intel's module), and SEAMATTRIBUTES must be zero. The live checker requires Intel status UpToDate. The chain checker also allows platform status SWHardeningNeeded when every advisory id is on the governance allow-list, and rejects OutOfDate, ConfigurationNeeded and Revoked. The live bundle's 64-byte report_data is SHA-512(u16be(27) || "secret-zone-1/attest-bundle" || u16be(32) || SHA-256(statement)). A target CVM session quote's report_data is SHA-512 over the tag secret3-cvm-v1/session, nonce, the 32-byte TLS exporter, length-prefixed hostname, length-prefixed SPKI, PK_hpke, user_compose_sha256, assignment_id and sha256(collateral); the static discovery quote uses the tag secret3-cvm-v1/static and adds issued_at. Chain and RA-TLS quotes use their own layouts. Target: the CVM verifier refuses variant: "debug" unless overridden. |
| 2End-to-end transport | Tenant CVMs have no shared wildcard certificate and no TLS-terminating proxy outside the TD. Each CVM makes an ECDSA P-256 key in TD memory and obtains its own single-name Let's Encrypt certificate on TCP 443 by ACME TLS-ALPN-01 (RFC 8737), renewing on ARI (RFC 9773) every 6 hours with a 60-day fallback, including while its containers are stopped; ephemeral_tls keeps the key in RAM only. TLS ends at the CVM's own measured trusted side, which relays plaintext HTTP and WebSocket traffic over the internal bridge to the holder's gVisor sandbox. Secret SI ends TLS inside its own TD with a per-assignment certificate that TD obtains by TLS-ALPN-01; the Edge does not hold that key. Public attestation and HPKE are off unless that CVM opts in. When enabled, POST /.well-known/secret3-attestation returns a live quote bound to the RFC 8446 exporter (EXPORTER-secret3-cvm-v1, empty context, 32 bytes), and /.well-known/secret3-hpke and /.well-known/secret3-hpke-ws offer RFC 9180 HPKE to a RAM-only X25519 PK_hpke rotated on every deploy. Browser JavaScript cannot read the TLS exporter, so Path A needs a native client or secret3-cvm-proxy; browser Path B defends against an active attacker only once verified code is loaded through that proxy. Platform login and transfer bodies are sealed to the Accounts and money programs' ML-KEM-768 keys before the Edge sees them, and answers are signed with ML-DSA-65. |
The Edge TD ends TLS 1.3 for secret.zone. The key is made inside the TD (stated by this build); the certificate's SPKI SHA-256 is in the five-minute bundle and can be compared with openssl s_client. A sealed copy of the key is kept so a restart can reuse it, and on the test network the operator could open that copy. Internal programs authenticate each other by per-connection RA-TLS (stated by the build; not browser-checkable). Sign-in is SRP-6a; the password never leaves the browser. Per-CVM TLS-ALPN-01, the attestation and HPKE paths, and ML-KEM sealing of login and transfer bodies are not part of what this bundle proves. |
Sole ALPN acme-tls/1 on the challenge. The exporter binding detects a machine-in-the-middle even with a stolen PK_tls. Verifiers refuse mode: "static" for authentication and do not fall back from POST to GET on 503. HPKE is DHKEM(X25519, HKDF-SHA256) / HKDF-SHA256 / AES-256-GCM with info secret3-cvm-hpke-http-v1 or secret3-cvm-hpke-ws-v1, an enc replay cache, timestamp AAD, strict monotonic counters, an explicit flags=1 end of stream, and every stream aborted on redeploy. CAA allows Let's Encrypt with tls-alpn-01 only and sets issuewild ";". cvm.secret.express is filed for the Public Suffix List private section; non-admin names wait until that entry is live, and until browsers ship it, sibling names are not a browser origin boundary. A custom domain needs a TXT record at _secret.<name> of secret-verify=<value>, seen the same way on two pinned ECDSA DNS-over-HTTPS resolvers. CVM certificates in certificate transparency logs are judged against a dedicated attested registry (exact name, P-256, chain to ISRG Root X2), with an alert when the daily page cap truncates a read. |
| 3Threshold key custody and fork protection | Policy lives in public chain modules (x/program, x/host, x/pccs) and is read only from proven chain state, never from an LCD, REST endpoint or webhook. Validators hold no key share. Custody is a committee of TDX key machines disjoint from the execution set (K ∩ S = ∅). It starts as a (2, 2) ML-DSA-65 committee (Mithril, FIPS 204) with two operator_ids, two platform ids and kms_one_host false. Larger committees are a later seat vote (at most 6 members, threshold above half) and need a t-of-n release format that is not yet specified; an external audit of the threshold signing crate is required before launch. Each key machine has its own ML-KEM-768 key pair, never split: no GetKmsKey, no SignCert, no CA key under threshold ECDSA. Each key machine runs the fork tool: header H is accepted only when at least k of the ed25519 consensus keys in its measured config have commit signatures on it, and each header must link by hash to the last one it accepted. Stake is not the count, and the tool does not use the CometBFT light client. Stateful programs keep hash-chained, Padmé-padded AES-256-GCM-SIV logs anchored by MsgSubmitObjectHash parent-hash compare-and-swap, with one writer proven by WriterOf (expected_epoch, one-block YieldProof hand-over). Only the remediation program may anchor to a bucket tip instead: the host stores tip_floor_epoch and tip_floor_writes and refuses an older tip. |
The test network runs on one operator's machines. Custody is "keys on the host's disk": sealing keys the host can read, labelled on /security. Logs are hash-chained and encrypted; the receipt shows "History anchor: none". The threshold key machines, the fork tool and the chain anchors (MsgSubmitObjectHash, WriterOf) are not in service and are not what the bundle proves. |
A key machine refuses a header at or below its height floor, or one that does not link to the last header it accepted. An ICS-23 proof is the IAVL leaf, then the simple Merkle proof of the module root, queried at height H-1 so it matches the AppHash in header H. While kms_one_host is false, the protocol rejects a duplicate operator_id, a duplicate platform id (PPID) or K ∩ S ≠ ∅; diversity of legal entity, site and CPU generation is reviewed by governance, not enforced by the protocol. Release: b_i = SHA3-256("secret-zone-1/release" || u16be(len(L)) || L || u64be(v) || u16be(len(op_i)) || op_i || SHA3-256(ct_a || ct_b) || ss_i), where ct_a and ct_b are the two 1088-byte ciphertexts in ascending operator_id order. The data key is b_a XOR b_b; the boot key is SHA-256 of that XOR; kinds 6 and 7 use the XOR as HKDF-SHA3-256 input. Release is refused unless t = n = 2. chain_id is bound into wrap ids, permits, log AAD and quotes. The Mithril implementation must be constant-time and free of floating point; its fixed-point error bound is part of the audit. |
| 4Builds and minimal trusted base | A forked dstack guest OS with a dm-verity read-only root and verified program volumes; production images have no SSH, shell or debugger. The measured compose reach is compiled into the guest's nftables. Tenant CVMs, Site Builders and GPU runs keep user containers in gVisor (runsc --platform=systrap --network=sandbox) with no access to configfs-tsm, guest-agent sockets or vsock. CVM working disks are LUKS v2 with a key made in RAM at boot, and are wiped when the TD is replaced; stop and start keep them. Builds use a fixed path (/build/secretprograms) so the image bytes, the worker compose and compose_hash can be reproduced; MRTD and RTMR0–RTMR2 follow per launch shape. Releases ship as content-addressed Zone OCI artifacts. The shared Rust program core runs the writer as four OS threads (logic, store, committer, checkpointer), runs signature checks on a separate pool with one worker per CPU, uses no async runtime, and is tested by a seeded, deterministic fault-injection simulation. |
The forked dstack OS with dm-verity volumes, the measured reach firewall (inside the machine, which the operator can sign in to) and disposable single-build gVisor Builder TDs are in service. The shared Rust program core and its compile and symbol gates are built and in review, and not yet rolled out to the test network. Source repositories are private. Program receipts will mark the profile basis = 1 (stated by the release signer, not independently rebuilt); the live bundle carries no basis byte. The fixed-path builds and the signed release manifest keep the measurements reproducible if source access is ever granted. |
Compile-time gates ban tokio, async-std, smol, SystemTime::now(), unapproved cipher, HTTP and SRP crates, and crates a profile disables. A compiled-binary signing-symbol allow-list and a debug and test-hook deny gate. The KMS build refuses the Mithril kat-only feature and the dealer, local-DKG and resharing entry points. Before boot: the Zone OCI digest, the dm-verity root and the dstack-mr measurement are checked. |
| 5Governance, upgrades and operator isolation | Split authority: chain x/program version windows decide what may run (min_version, revoked, deadline_height, urgency, one_way, policy_seq); an offline-signed local update-policy.toml (valid at most 90 days) decides when programs other than the key machines roll (auto, canary, windowed, manual). The key machines (keys) stay manual. An ICS-23 proof that a pending key-machine measurement row is present freezes non-emergency rolls of other programs; that proof is the fence. An unprivileged watcher proposes plans; the root host tool re-verifies every proof and floor, header time within 120 seconds, a second-RPC block-id quorum for stops and halts, the dstack-mr measurements and host calm. A two-slot hand-over boots a standby, checks its quote, key release and state sync, moves the writer in one block by YieldProof and expected_epoch, soaks, and retires the old TD through its host unit, never by guest ACPI or a host reboot. |
Program updates roll one guest at a time by replacement under operator-approved playbooks, with unit-based TD stops, MAC- and IP-guarded bridge ports and host health guards. Two-slot hand-overs are built and not yet switched on. The chain watcher, the signed update-policy.toml and YieldProof moves wait on chain integration. |
Conflict order is P0 through P8: a host-safety freeze (P0) and the key-machine manual lock (P1) outrank a chain revocation (P2), which outranks local mode (P8). A hash or measurement mismatch, or a crash during soak, quarantines the version; with no admitted version left the program is HALTED. Schema changes roll reader first, then writer; one_way needs a manual step. The host tool appends an audit log and never deletes it; the host administrator can still change the file. |
| 6Disclosed trust boundaries | The remaining trust boundaries are listed below: silicon and physical access, first-load browser code, the operator on the test network, consensus and governance, and identity and metadata. | /security separates rows the browser checks from rows the build states, labels the test build and the keys on the host's disk, and gives a command-line check with verify-bundle.js, dcap-qvl-cli and openssl s_client. |
Out-of-band checks with verify-bundle.js today; for tenant CVMs, the target secret3-cvm-verify command and the local attesting proxy secret3-cvm-proxy. Receipts flag custody: chain-checked, or keys on the host's disk. |
Attestation depends on the TDX module, the SGX quoting enclave and the Intel SGX Root CA; choosing TDX leaves that quoting base in place, and confidential GPU runs add NVIDIA's. In the WireTap class, an attacker with physical access to a machine can extract its attestation key and forge quotes as that machine. In the TEE.fail class, a physical memory-bus adversary breaks confidentiality. Neither is closed by a microcode update, and the PCK revocation list does not help, because Intel does not revoke for physical attacks. Allowlisting machines by platform id limits which machines may be admitted; it does not detect a forged quote that still verifies under Intel's key.
One key machine alone cannot release a data key. Cryptographic code on the key and password paths is constant-time; program logic is not hardened against host-driven controlled-channel or single-stepping attacks. Against a software adversary, the host OS, hypervisor and VMM are outside TDX's memory-confidentiality boundary. A physical bus adversary is not.
Accepted residuals
k measured validator signatures.A page served by the system it checks, /security included, depends on WebPKI and certificate transparency for its first-load code; green marks in a browser are self-served, not independent proof. On the test network it also depends on the operator, who can open the sealed copy of the site's TLS key.
Independent checks run out of band: verify-bundle.js, dcap-qvl-cli and openssl s_client today; for tenant CVMs, secret3-cvm-verify or secret3-cvm-proxy, which checks the Path A exporter quote before any browser asset is trusted. Inside a tenant CVM, TLS and Path B HPKE end at the measured trusted side, which relays plaintext over the internal bridge to the holder's gVisor sandbox. The remediation API seals requests to its program's ML-KEM-768 key and signs answers with ML-DSA-65, but the Edge serves that page.
The test network runs on one operator's machines, with a test build the operator can sign in to, keys on the host's disk, an operator-signed measurement list and private source. We do not claim cryptographic erasure, multi-operator custody or third-party source reproducibility.
The fixed-path builds and the signed release manifest (cvm-releases.v1.json) keep the measurements reproducible if source access is ever granted. That alone would not list the public suffix, add a second operator or put the no-SSH image into service.
The fork tool trusts a fixed, measured list of validator consensus keys and a threshold k. It does not follow validator-set changes or stake. k colluding listed keys can sign a fork that a guest accepts, including keys that have since unbonded, until a new measured release drops them; a stake majority without those k keys cannot.
A host that withholds headers halts new releases, which costs liveness only. Governance changes to the measurement and machine allowlists (M, S) are public and auditable, not cryptographically prevented.
Accounts is the identity service: a broken Accounts can act as a user in the programs that ask it. The edge operator sees connection metadata (address, timing, size); programs on the public path are not given the visitor's address.
Wrap and unwrap amounts are public on the chain, and the link between them is only as private as the traffic in between.
GET /secret-zone-1/attestation: the signed eight-part attestation bundle, refreshed every five minutes. GET /verify-bundle.js: a dependency-free Node.js verifier. /security: the in-browser DCAP check and the command-line recipe.
POST /.well-known/secret3-attestation: the live exporter-bound quote. GET /.well-known/secret3-attestation: a discovery cache, refused for authentication. /.well-known/secret3-hpke and /.well-known/secret3-hpke-ws: RFC 9180 DHKEM(X25519, HKDF-SHA256) with AES-256-GCM. Checked with secret3-cvm-verify or secret3-cvm-proxy.
Today: SRP-6a sign-in on the RFC 5054 Appendix A 3072-bit group, generator 5, SHA-256, with the password never leaving the browser; TLS 1.3; TDX DCAP quotes.
Target: Argon2id (version 0x13, 32-byte output) on the user's device before SRP-6a. Login and transfer bodies sealed under ML-KEM-768 (FIPS 203). Committee signing by a (2, 2) ML-DSA-65 committee (FIPS 204, Mithril). The program-core seal: AES-256-GCM-SIV (RFC 8452) with a content-derived salt, a 32-byte key commitment, the authenticated position and Padmé padding (at most 12% overhead). Chain facts through the fork tool's k-of-n commit check and ICS-23 (iavl and simple) proofs.