Secret.Zone

Security

What this site can prove about itself

The service behind secret.zone runs inside an Intel TDX machine. Every five minutes it seals a short statement about itself into a report signed by the hardware. This page fetches that evidence and checks it in this browser.

Checking…

Fetching the evidence and checking it.

Checked

This browser checked these against the evidence.

Stated

The measured build states these. A browser cannot check them.

Later

Designed for production, not in place on the test network.

Evidence

The bundle this page checked, and each of its parts.

Verify it yourself

Without this page's code, with standard tools and one short script.

This page is served by the service it checks, so its own green marks are only as good as its code. The steps below check the same evidence without it. They need curl, openssl, sha256sum, Node.js 18 or later, and Phala's open-source DCAP verifier.

  1. Fetch the evidence

    curl -sS -o bundle.bin https://secret.zone/secret-zone-1/attestation
  2. Split and check it with the short script

    The script is under 200 lines of plain Node.js with no dependencies. It holds only verification logic: it splits the bundle into its parts, checks that the quote's report data commits to the statement, replays the event log, compares every hash, and checks the signed list with Node's own crypto. Read it before running it.

    curl -sS -o verify-bundle.js https://secret.zone/verify-bundle.js
    node verify-bundle.js bundle.bin parts

    Download verify-bundle.js · SHA-256 in the file list of this release

  3. Check Intel's signature with an independent verifier

    The quote is a standard Intel TDX quote. Any DCAP verifier checks it; for example Phala's, which fetches Intel's data from a public collateral service:

    cargo install dcap-qvl-cli
    dcap-qvl verify parts/quote.bin
    dcap-qvl decode parts/quote.bin

    The verifier should report the status UpToDate. In the decoded quote, the report data must equal the value the script printed, the lowest bit of the TD attributes must be clear (debug off), and MRCONFIGID must be 01 followed by the compose hash.

  4. Compare the hashes with standard tools

    sha256sum parts/app-compose.json          # the compose hash in the statement
    grep portal_manifest parts/app-compose.json
    sha256sum parts/MANIFEST                  # equals portal_manifest
    curl -sS https://secret.zone/security.js | sha256sum
    grep ' public/security.js$' parts/MANIFEST   # the same hash
    openssl dgst -sha256 -verify parts/peer-table.key.pem \
      -signature parts/peer-table.sig.der parts/peer-table.signed
  5. Check that the connection ends in this machine

    A browser cannot see the certificate of the connection a script runs on. A terminal can:

    openssl s_client -connect secret.zone:443 -servername secret.zone </dev/null 2>/dev/null \
      | openssl x509 -pubkey -noout | openssl pkey -pubin -outform DER | openssl dgst -sha256

    The result must equal the tls secret.zone line the script printed. A relay holding another certificate fails this. Public certificate-transparency logs list every certificate issued for secret.zone; each one's key should appear in some bundle.

  6. See it renewed

    Fetch the bundle again five minutes later and run the script on both. The number must go up and the quote must change: each bundle carries its own fresh quote.

These checks rely on Intel's hardware and signatures, on the operator for the test network, and on this page's own code, which comes from the same service; the steps above check it without that.