liveBook · Manning

Trusted execution environment

As explained in Server-Side WebAssembly

A trusted execution environment is an isolated hardware-backed execution area that protects code and data from access by software outside the environment.

A trusted execution environment (TEE), also called an enclave, is a hardware-backed area where code and data remain protected while they are being processed. Unlike ordinary memory, which may expose clear-text data to anyone inspecting RAM, a TEE encrypts memory access on the fly. section 9.2.1

Confidential computing uses TEEs to protect data in use, complementing protections for data at rest and data in transit. CPU support includes Intel SGX, AMD SEV, ARM TrustZone and CCA, and RISC-V Keystone. section 9.2.1

Training an AI model on private hospital data

A hospital can keep patient records confidential while an institution protects its proprietary model. Both are loaded into an enclave on an untrusted server, where the computation runs without exposing either input to the hosting environment. section 9.2.1

Wasm fits TEE deployments when the environment benefits from:

  • A minimal runtime and language-agnostic execution model that help keep the trusted computing base small. section 9.5
  • Sandboxed execution for multiple tenants running securely side by side. section 9.5
Figure 9.2 The three states of data: at rest, in transit, and in use. Each state represents a potential point of vulnerability where data can be exposed or compromised if not properly protected.

Use the three data states to locate the TEE’s role: it addresses exposure while data is actively being processed in memory. section 9.2.1

How Server-Side WebAssembly covers it

How deep it goes
Explains enclave architecture, memory encryption, processor support, and a multiparty scenario without detailing implementation procedures.
Examples
Uses proprietary AI training with hospital patient records and diagrams of data states and enclave-based computation.
What you can do after
Evaluate how enclaves protect sensitive inputs during joint computation and why Wasm suits constrained, multi-tenant environments.
How it connects
Connects trusted execution environments with confidential computing, secure multiparty computation, WebAssembly, sandboxing, and trusted computing bases.

Also explained in

Compare how 3 books explain trusted execution environment →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Server-Side WebAssembly. The section links point to the parts of the book it draws on.