The problem attestation solves
When you send data to an ordinary cloud server, you are trusting a lot of people you will never meet: the application operator (Lit), the cloud provider (Phala), the OS administrators, anyone with physical access to the machine. Any of them could, in principle, read your data, swap the code for a malicious version, or copy out a private key. You have no way to tell. “Trust us” is the only guarantee. Remote attestation removes that trust. It lets a remote machine produce hardware-signed, mathematical proof of exactly what code it is running. You can check the proof yourself, and no operator (including Lit) can forge it. You no longer have to trust the operator. You still trust the processor maker’s hardware (AMD’s) and the math that checks its signature. Attestation tells you which code is running. It doesn’t tell you that the code is free of bugs, which is one reason the Lit Chipotle source is public. This is the idea behind the broader Proof of Cloud movement: cloud services that prove what they run rather than asking you to take their word for it.What a TEE is
A Trusted Execution Environment is a hardware-isolated region of a CPU. Lit Chipotle runs inside AMD SEV-SNP (Secure Encrypted Virtualization with Secure Nested Paging), a TEE built into AMD EPYC server chips. Inside the TEE:- Memory is encrypted by the CPU. Even someone with root on the host, physical access to the RAM, or a hypervisor cannot read the plaintext.
- The launch is measured. Before the VM starts, the processor hashes its initial state (firmware, kernel, boot parameters) into a value the VM cannot change.
- Secrets generated inside (like the TLS private key) never leave. There is no API to extract them, by design.
What an attestation report is
On request, the processor produces an attestation report: a small binary document, signed by a key that only that AMD chip holds, that describes the VM it is running. Think of it as a notarized receipt the silicon hands you, saying “here is exactly what I am running.” (Intel calls the same thing a quote.) Three fields carry most of the weight:
Two numbers come out of these:
- The OS image hash identifies which operating system image booted. The launch measurement can be recomputed from that image’s published parts.
- The compose hash proves which application code booted — it is the
SHA-256 of
app-compose.json, which holds the exact, image-digest-pinned docker-compose that defines Lit Chipotle, plus its metadata. The explainer videos call it the release hash.
How a stranger turns a report into trust
Receiving a report is not enough — anyone can hand you a document. The value comes from four independent checks, each of which you can run yourself:- Is the report real? Verify the chip’s signature on the report, and the chip’s certificate against AMD’s published root keys. This proves the report came from genuine SEV-SNP hardware (not a simulator, not debug mode). Check too that it answers the random number you just sent, so it is not a recording.
- Is the OS one I trust? Check the launch measurement against a known-good dstack OS release — and confirm that release is whitelisted on-chain (see below).
- Is the code one I trust? Recompute the compose hash from the public source and confirm it matches the report — and that it is whitelisted on-chain.
-
Am I really talking to that TEE? The TLS certificate for
api2.chipotle.litprotocol.comwas generated inside the TEE and bound into a signed report. Once you have checked that binding and pinned the certificate, a successful HTTPS handshake proves your connection terminates in the attested enclave — no proxy in the middle. A handshake on its own, before those checks, does not prove this. (See Zero-Trust TLS.)
Why this is stronger than “trust the operator”
Put the pieces together and the trust model inverts:- The cloud provider cannot read your data — memory is CPU-encrypted.
- Lit cannot silently change the code — a new version cannot get keys until its compose hash is whitelisted on Base by a multisig, visible to everyone.
- No single Lit employee can change that whitelist — it takes a multisig quorum.
- You do not have to trust any of the above — you re-derive every measurement and read the on-chain whitelist yourself.
The SDK runs these checks for you
@lit-protocol/core-sdk runs
all four checks with no configuration. A client created for the production API
verifies the server before its first request, and if verification fails the request
rejects with an AttestationError and nothing is sent:
- Freshness. The SDK sends a random nonce to
GET /attestation/v3?nonce=…and requires the signed report to commit to it, so a response cannot be replayed. - The connection is pinned. In Node.js the SDK checks that the TLS key of its connection belongs to the attested VM, then pins every API connection to that key. A request can only reach a VM that was verified.
- It re-verifies. After ten minutes the client verifies again in the background, and a client idle for over an hour verifies before its next request.
AttestationError with a stable code (for example
untrusted_hardware, stale_evidence, measurement_mismatch, not_governed,
tls_binding_failed).
Browsers cannot read or pin TLS certificates: there the check proves that genuine
Lit evidence was served at the origin, and the requests that follow rely on the
browser’s own TLS validation. Verify from a server when the channel matters.
The check trusts AMD’s root key and the Base blockchain. It reads Base through public
RPC endpoints by default; pass your own with attestation: { rpcUrls: [...] } for
stronger guarantees.
If you do not use the SDK
Calling the HTTP API directly works, and nothing verifies the server for you. To get the same guarantee, verify the attestation and bind the verified identity to the connection that carries your requests, including through any proxy or gateway of your own that terminates TLS. The Full Verification Guide shows each check and how to pin a connection to the verified key.What’s next
Verify in 30 Seconds
One SDK call that verifies the live API, plus the Phala Trust Center report.
On-Chain KMS
How Base smart contracts — not Lit or Phala — gate key release to the enclave.
Upgrade Governance
How a new release is reviewed and approved by the Safe multisig before it can run.
Full Verification Guide
Repeat each of the SDK’s checks by hand, one layer at a time.
Further reading
- Proof of Cloud — the verifiable-cloud movement
- AMD SEV-SNP overview
- Phala: Attestation Overview
- Phala: Complete Chain of Trust