Confidential Inference via Trusted Virtual Machines

A June 2025 Anthropic post and a 32-page whitepaper written with Pattern Labs on confidential inference, the use of hardware trusted execution environments and attestation so that user data and model weights are decrypted only inside a small, verified loader; the post sketches Anthropic's planned design, which for now trusts the compute provider's hypervisor and physical security and leaves the API server outside the protected boundary, and the whitepaper sets out general design principles and a threat model, without reporting any measurements.

Anthropic, with Pattern Labs · 2025-06-18 · original

Anthropic's post of 18 June 2025, with a 32-page whitepaper written with Pattern Labs (now Irregular), sketches a planned design for confidential inference. User data and model weights are decrypted on the inference server only inside a small, trusted "model loader and invoker" in a hypervisor-isolated virtual machine, which runs only code signed by Anthropic's continuous-integration server and receives keys from a keyserver after TPM attestation. The protection is narrower than the post's opening aim of a cryptographic guarantee: the API server still handles user data in cleartext, the compute provider's hypervisor and physical security are trusted for now, and trust rests on the keyserver. The whitepaper gives general design principles and a threat model. Neither document reports a deployment, measurements or an outside audit.

Running a model requires decrypting both the user's prompt and the model's weights, because, as the whitepaper notes, techniques such as homomorphic encryption are not yet usable at the scale and speed inference needs (footnote 2). The post "Confidential Inference via Trusted Virtual Machines", published on 18 June 2025 under Anthropic's Announcements label, asks how to keep that decrypted data confined to a small, verifiable part of the system. It accompanies a whitepaper written with the AI security company Pattern Labs, "Confidential Inference Systems: Design principles and security risks" (Version 1.0, June 2025, 32 pages). The post gives two reasons for the work: model weight security, as one component of protecting frontier models against capable attackers, and user security, proving that sensitive user data is kept private. It calls itself "just a sketch of our research to start a conversation" and says it is too early to say what designs or features will follow. Neither document reports experiments or measurements.

Terms used in this note

  • Confidential computing. The whitepaper quotes the Confidential Computing Consortium's definition: protecting data in use by computing inside a hardware-based, attested trusted execution environment (Overview).
  • Trusted execution environment (TEE). An isolated environment whose memory the operating system cannot read, with debugging and monitoring features disabled, and which can produce a signed attestation that it runs the expected code (Overview, "Meeting the requirements").
  • Attestation. A signed record of measurements (hashes) of the boot process, operating system and workload, produced with a hardware root of trust such as a trusted platform module (TPM), that a remote party can check before trusting the environment ("Secure cryptographic attestation").
  • Key management system (KMS) or keyserver. The service that holds decryption keys and releases them only to environments whose attestation it accepts.

The design in the post

The post states the guiding principle that sensitive data should stay encrypted except where it is processed ("Inference service"). User data has to be in cleartext at two points: the API server, which tokenizes prompts and handles request logic, and the inference server, which runs the model on accelerators. Model weights need to be in cleartext only on the inference server. The post focuses on the inference server.

Because not all accelerators fully support confidential computing yet, the planned design puts a small, trusted "model loader and invoker" in a separate virtual machine isolated by the hypervisor. The loader decrypts data, sends it to the accelerator, invokes computations and returns encrypted results. It presents itself to the rest of the inference server as a "virtual accelerator" and accepts only programs signed by Anthropic's secure continuous-integration server, which, the post says, "ensures that any code that's run has been reviewed by multiple engineers". The rest of the inference server is untrusted and can change often without affecting confidentiality. The post's aim is that confidentiality holds "no matter what the rest of the system does," provided the loader runs correctly ("Inference service").

The loader's environment is meant to have encrypted, hardware-isolated memory, disabled debugging and cryptographic proof of the code being run ("Trusted environment"). The post is explicit about a gap in the first property: the features needed to share encrypted host memory with an accelerator "aren't well established" yet, so for now Anthropic relies on its compute providers for physical datacenter and hypervisor security. The other two are achieved with a TPM that measures each boot stage; a keyserver releases keys only when the measurements match. The keyserver therefore decides what counts as trusted, and the post says Anthropic is exploring arrangements in which other parties validate the trusted code and run independent keyservers.

The post's flow for a request: encrypted before it reaches Anthropic; decrypted, processed and re-encrypted at the API server; handled encrypted by the inference server; decrypted only inside the loader; and encrypted again before the completion leaves it ("Conclusions"). Weights are stored encrypted, decrypted only in the loader, and never released from it. Possible future additions at the loader layer include egress bandwidth limits on servers holding cleartext weights and requiring "a signature from a safety classifier" before inference runs ("Future directions"). The post closes by suggesting that hardware designers who have not already done so consider building confidential computing into their chips, since a hardware root of trust on the accelerator would shrink the trust boundary.

What the planned design protects against, by the post's own account

The post opens with the aim "to ensure that their trust is cryptographically guaranteed" and says the tools can be used "to prove that sensitive user data is kept private" (introduction). The design it then sketches provides narrower properties, and the post states each limit itself; this section collects them and sets them against the whitepaper's terms. The comparison is this note's.

  • Who sees user data in cleartext. The API server decrypts, processes and re-encrypts every request ("Conclusions"), and its security is "beyond the scope" of the post ("Inference service"). In the whitepaper's terms this is encryption terminating at the service rather than end-to-end encryption to the enclave ("Encryption of the model inputs and outputs"), so user data is protected from the untrusted parts of the inference server, not from the API server.
  • Whether the cloud provider is trusted. The whitepaper's threat model assumes attackers control everything outside the TEE, including the host and the hypervisor ("The confidential inference threat model"). The post's interim design instead relies on "our compute providers to maintain security at the physical datacenter and in hypervisor software", because encrypted host memory cannot yet be shared with accelerators ("Trusted environment"). Its loader corresponds to the whitepaper's second accelerator approach, bridging a CPU environment to an accelerator without native support, which the whitepaper calls "not airtight".
  • Who decides what is trusted. Attestation is checked by a keyserver, and the decision whether an environment is trusted "ultimately rests on the keyserver" ("Trusted environment"). The post does not say who runs it; independent keyservers and outside validation of the code are described as being explored. The whitepaper notes that without a way for the data owner to audit the workload, "the data owner must explicitly trust the model owner, not just the service provider" ("Optional authenticity and containment requirement").
  • What the code review covers. The loader's correctness rests on Anthropic's internal signing and review; the whitepaper's binary-assurance methods (reproducible builds, binary analysis, a third-party binary) are not mentioned in the post.

For model weights the post's claim is simpler: stored encrypted, decrypted only in the loader, never released from it ("Conclusions"), within the same reliance on the compute provider.

What the whitepaper covers

The whitepaper is general rather than a description of Anthropic's systems. It names no individual authors. Pattern Labs, since renamed Irregular, announced it on 19 June 2025 as the result of "a research collaboration between Irregular (formerly Pattern Labs) and Anthropic"; the same announcement notes that Irregular's CEO, Dan Lahav, is a co-author of the RAND report on which the whitepaper's security-level discussion draws.

Parties and goals. Inference involves a model owner, a data owner (the user) and a service provider; each wants confidentiality without having to trust the other two (Overview). The paper separates the confidential data aspect (inputs and outputs) from the confidential model aspect (weights and architecture); a system may implement either or both ("The two aspects of confidential inference").

Link to weight security levels. It draws on RAND's report Securing AI Model Weights (Nevo et al., 2024), which defines five security levels. For the top two, SL4 and SL5, meant to resist state-level attackers, the whitepaper says RAND strongly recommends confidential computing where available, with physical-attack protections, keys generated and kept inside the TEE, and prespecified, audited, signed code ("Confidential computing for SL4 and SL5").

Accelerators. Two approaches are described: accelerators with native TEE support (NVIDIA H100 confidential computing is the example), or bridging a CPU enclave to an accelerator that lacks it, which the paper says "is not airtight" because data passes to the GPU unencrypted ("Trusted execution environments with AI accelerators").

Components. A reference design has three parts: the inference service (a model-agnostic enclave that loads and invokes the model and must hold no model-owner secrets); the model provisioning procedure (encrypting weights, with a trade-off analysis of three places to run the KMS); and the enclave build environment, where binary assurance can come from reproducible builds, binary analysis, or a pre-assured third-party or open-source binary ("Components and their design principles").

Threat model. Attackers are assumed to control everything outside the TEE, and each party treats the others as potential threats ("Threat model"). The paper separates systemic risks in the components relied on (hardware side channels, hypervisor flaws, vendor supply-chain compromise, cryptographic breaks including future quantum computers) from introduced risks in a particular implementation (debug-mode enclaves, parsing bugs, man-in-the-middle attacks on enclave traffic, permissive KMS policies, decommissioned vulnerable enclaves that still have key access, excessive key reuse, "harvest now, decrypt later" theft of encrypted weights, and compromised build or development environments).

Limitations and open questions

  • The post is a design sketch and reports no deployment, performance cost, or security evaluation.
  • It relies on compute providers for physical and hypervisor security until accelerators can share encrypted memory.
  • The whitepaper says its threat section is "not a comprehensive security review" and that confidentiality of weights outside inference, such as backups and training, is out of scope ("Limitation of scope").
  • Trust ultimately rests on the keyserver and on code review of the signed loader, so the guarantee is only as strong as those processes. No outside audit of the design is reported.
  • Outside work on the class of system: a December 2025 LessWrong post, "Private AI clouds are the future of inference" (by the user perfectfwd), which cites the whitepaper, argues that TEE-based inference is weaker than end-to-end encryption because users must still trust the hardware vendor, the attestation and build chain, and abuse-monitoring exceptions; it notes that common TEEs exclude most physical attacks from their threat models and cites 2025 research that broke several of them with commercial interposer hardware costing under $1,000. The post discusses deployed systems from other companies, not Anthropic's design.

Research questions

  1. What is the performance cost of routing inference through a trusted loader? Neither document reports overhead. Latency and throughput measurements with and without the loader would show whether the design is practical at scale.
  2. How would a safety-classifier signature requirement work in practice? The post mentions it as a possible future safeguard. A specification of which classifier signs what, and how a refusal is enforced at the loader, would show how a content policy could be tied to cryptographic enforcement.
  3. Can outside parties verify the trusted code? The post mentions independent keyservers and outside validation. A published reproducible build of the loader, checked by a third party, would test whether users can verify the guarantee rather than rely on Anthropic.
  4. Which of the whitepaper's introduced risks are most likely in real deployments? The list is qualitative. A red-team exercise against a reference implementation, reporting which risks were exploitable, would rank them.

How it connects

This item is about infrastructure security, and neither document links to other notes in the library. The nearest notes are:

  • ASL-3. The post links to Anthropic's ASL-3 activation announcement, which has no note here, for the egress bandwidth controls it mentions. The Claude Opus 4 and Sonnet 4 system card records the deployment decision of the same period: Claude Opus 4 under the ASL-3 Standard (May 2025).
  • User privacy. Clio protects users' privacy at a different point: in the analysis of conversations after the fact, where analysts see only aggregate patterns, rather than during inference.

References

Reviewed: checked against sources, 12 Nov 2026 · editorial review, 23 Nov 2026 · 4 revisions