techlist.io

Model Weights Security

1 posts

Anthropic2025-06-184 min readCurated summary

Confidential Inference via trusted VMs

Anthropic is researching "Confidential Inference," a set of tools that lets it process user data in encrypted form and prove that the data is readable only inside servers it can verify as trustworthy. The approach serves two goals: protecting frontier model weights from increasingly capable threat actors, and giving users a cryptographic guarantee that their sensitive prompts stay private. The post, written with Pattern Labs, presents this as early research meant to start a discussion, not a finished product. ## Core Principle: Encrypted Except During Processing Sensitive data should stay encrypted everywhere except at the moment it is processed. Anthropic enforces this with confidential computing, building a chain of trust that attests to the security of its software and then uses that attestation to decide which software may access the encryption keys. - Two components handle cleartext user data: the API Server, which tokenizes prompts and runs most request logic, and the Inference Server, which runs the model on hardware accelerators. - For model weights, only the Inference Server handles sensitive data. - The post focuses on the Inference Server. The API Server's security is acknowledged as equally important but is outside its scope. ## Trusted Model Loader Design Because not all accelerators fully support confidential computing, Anthropic is exploring a design built around a small, secure "model loader and invoker": - The loader accepts encrypted data, decrypts it, and sends it to the accelerator. - It invokes accelerator operations and returns encrypted results to the caller. - Only the trusted loader can see decrypted data. The rest of the Inference Server is untrusted and can change often without affecting overall security, since it can only send requests to the loader. - In Anthropic's implementation, the loader runs on a separate virtual machine isolated by the hypervisor and presents itself as a "virtual accelerator" that is agnostic to model architecture. - The virtual accelerator accepts only programs signed by Anthropic's secure CI server, which ensures multiple engineers have reviewed any code that runs. If the loader runs correctly, confidentiality holds regardless of what the rest of the system does, so verifying that the loader is running correctly is critical. ## Establishing a Trusted Environment The loader runs in a confidential computing environment with three properties: - **Encrypted, hardware-isolated memory** separated from other workloads. This guards against some physical attacks and a malicious hypervisor, but sharing encrypted host memory with an accelerator is not yet well established. Until that gap closes, Anthropic relies on its compute providers for physical datacenter and hypervisor security. - **Disabled debugging features.** - **Cryptographic proof** that the correct code is running. The last two are achievable with widely supported practices, using a Trusted Platform Module (TPM) as the root of trust. The TPM measures each boot stage and produces a hash that attests the loader is isolated as expected, runs signed and reviewed code, and has debugging disabled. A keyserver checks this proof and releases decryption keys only to environments that prove they are secure. The keyserver ultimately decides what counts as trusted. Anthropic is also exploring setups where independent parties validate the trusted code and run their own keyservers, which could offer stronger confidentiality guarantees for each piece of data. ## Future Safeguards As models become more capable, Anthropic may add protections at the loader layer, such as: - Additional egress bandwidth limits on servers that hold cleartext model weights. - Requiring a signature from a safety classifier before inference can run. ## End-to-End Request Flow - The request is encrypted before it reaches Anthropic's servers. - The API Server decrypts, processes, and re-encrypts it before passing it on. - The Inference Server handles the request in encrypted form and decrypts it only when sending it to the trusted loader. - Completions are encrypted before leaving the loader and return to the caller through the API Server. - Model weights can be stored encrypted, decrypted only at the loader, and never released from it. ## Recommendation for Hardware Designers Chip makers that have not yet done so should build confidential computing into their hardware. A hardware root of trust attached to the accelerator would significantly shrink the trust boundary of systems like this one.