techlist.io

Hypervisor

2 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.

Figma2023-10-232 min readCurated summary

Server-side sandboxing: Virtual machines | Figma Blog

Virtual machines provide strong workload isolation by separating guest systems from the host and from one another through a hypervisor. However, VMs are not a complete security solution: hypervisor vulnerabilities can enable escapes, while compromised workloads may still abuse network access or credentials. Figma therefore treats VMs as one layer in a broader defense-in-depth sandboxing strategy. ## The VM Security Model - A VM acts like an independent computer with its own CPU, memory, disk, and operating system. - The hypervisor manages multiple VMs on a physical host and enforces separation between: - The host and guest VMs - Individual guest VMs - The primary escape risk is a **VM escape**, in which malicious code breaks through the guest boundary and accesses the host or other guests. - Hypervisors provide a useful security boundary, but they have a large and complex attack surface because they mediate operating-system and hardware operations. - Cloud providers such as AWS and Microsoft Azure rely heavily on hypervisor-based VM isolation, meaning most cloud workloads inherently depend on this boundary unless they use bare-metal instances. ## VM Permissions and Blast Radius - Preventing VM escapes is only one part of the security model. - A compromised workload may still: - Make network calls to exfiltrate data - Invoke other services - Abuse credentials assigned to the VM - VM capabilities must therefore be restricted to limit the damage caused by a compromised job. - Security depends not only on the hypervisor, but also on carefully controlling the guest’s permissions, network access, and available resources. ## Engineering Trade-offs - VMs generally offer stronger isolation than lighter-weight mechanisms such as containers and seccomp. - Their disadvantages include greater operational complexity, resource overhead, and dependence on the security of the hypervisor. - Building or deeply analyzing a specialized hypervisor requires substantial expertise because of its broad attack surface. - In many cloud environments, relying on VMs is unavoidable, so teams should focus on reducing guest privileges and layering additional controls around the VM. A VM should be treated as a strong isolation boundary, not an all-purpose security guarantee. The safest design combines hypervisor isolation with restricted permissions, controlled networking, and other defenses that minimize the impact of a compromised workload.