Inside Antspace: How Anthropic Isolates Claude Web Code Execution

Security researchers have reverse-engineered the microVM architecture powering Claude's web interface, revealing Anthropic's isolation engine.

S
ShaktiSecur Editorial
Tue Sep 15 2026 · 6 min read

Security research into large language model infrastructure has taken a significant leap forward as independent developers have successfully reverse-engineered the code execution environment powering Anthropic’s web ecosystem. Deep inside the browser-based implementation of Claude lies a sophisticated micro-virtual machine setup, internally designated or referred to in client-side code as 'Antspace.' This isolated execution container allows the AI assistant to run code, render artifacts, and process user requests dynamically without risking the security of the host infrastructure or exposing underlying system primitives.

As generative AI models transition from simple chat interfaces to fully autonomous agents capable of writing, compiling, and executing code, the boundary between software execution and model safety has become a central battleground. Anthropic, known for its focus on AI safety and alignment, has built a specialized runtime that balances performance, browser responsiveness, and strict sandbox boundaries. Examining the mechanics of Antspace offers an instructive look at how modern AI platforms solve the complex engineering challenge of secure, client-side and edge-based code execution.

The Shift to Autonomous Execution Environments

When early consumer AI tools emerged, code output was purely text-based. Users were expected to copy raw snippets out of a chat window and run them within their own local development environments or integrated terminal setups. However, as user expectations evolved, major providers realized that seamless artifact generation—such as rendering interactive React components, processing data visualizations, or executing Python scripts on the fly—required server-side or embedded browser runtimes.

This shift introduced severe security challenges. Executing arbitrary code generated by a probabilistic model creates immediate vulnerabilities, including remote code execution (RCE) threats, server-side request forgery (SSRF), resource exhaustion attacks, and sandbox escapes. If an adversarial user successfully prompts a model to write malicious payloads designed to probe the host environment, an improperly isolated system could leak credentials, expose internal microservice architecture, or grant unauthorized network access.

To mitigate these risks while preserving real-time performance, engineering teams turned to lightweight virtualization. Rather than relying on heavy traditional hypervisors or simple containerization mechanisms like standard Docker daemons, modern AI platforms utilize microVMs—minimalist virtual machines designed to boot in milliseconds while providing hardware-assisted virtualization boundaries. Anthropic’s implementation of this concept within the Claude web stack represents a custom tailoring of microVM principles optimized for agentic workloads.

Unpacking the MicroVM Architecture

The recent reverse-engineering effort sheds light on how Claude coordinates between the frontend chat interface, backend coordination servers, and the isolated execution engine. At its core, the system relies on a ephemeral workspace architecture designed to spawn, execute, and destroy execution contexts with minimal latency overhead.

When a user prompts Claude to create a dynamic artifact or run a script, the web platform orchestrates a secure session managed by the Antspace runtime layer. The reverse-engineering findings reveal several key design choices:

  1. Minimalist Guest Runtimes: The operating environment inside the microVM is stripped down to essential binaries and runtime engines (such as Node.js or Python environments). By discarding unnecessary system services, background daemons, and storage overhead, the guest image achieves sub-second boot times and a tiny memory footprint.

  2. Strict Network Isolation: Network interfaces within the microVM are aggressively restricted. By default, outbound network connections are blocked or filtered through a tightly controlled proxy. This prevents executed scripts from reaching external command-and-control servers, attempting exfiltration, or scanning internal subnetworks operating alongside the AI service deployment.

  3. Ephemeral Ephemerality: Workspaces are stateless by design. State persists only for the duration of a specific interaction or user session, after which the container or virtual machine is destroyed. This prevents persistent compromise where an attacker might attempt to store malware or establish a foothold across multiple user conversations.

  4. Controlled IPC Channels: Communication between the parent host application and the guest microVM occurs over a restricted inter-process communication (IPC) interface. Data exchanged across this boundary is serialized and strictly validated, ensuring that command injection cannot trivially breach the containment layer.

Browser-Side Artifacts and Server-Side Sandboxes

One of the fascinating discoveries from analyzing the Claude web client is the multi-tiered approach to sandboxing. Not all tasks require the same level of execution isolation, and modern web architectures often split responsibilities between client-side iframe sandboxes and server-side microVMs.

For lightweight, frontend-focused code—such as rendering SVG graphics, HTML previews, or simple React UI components—the application frequently leverages isolated browser contexts (such as web workers and heavily restricted iframe elements using strict sandbox attributes). This offloads processing to the user's hardware, reducing infrastructure costs while eliminating server-side risk.

However, when tasks demand server-side execution, data transformation, or heavy processing libraries, the client delegates the request to the backend Antspace infrastructure. The client-side code acts as a orchestration terminal, receiving streams of console output, status updates, and rendered output frames from the remote microVM. This hybrid model guarantees that browser-only exploits cannot touch backend infrastructure, while server-bound tasks remain safely locked inside hardware-isolated boundaries.

Why Antspace Matters for the Broader AI Ecosystem

The discovery and analysis of systems like Antspace carry broad implications for software engineers, security researchers, and enterprise IT teams. As AI software agents gain higher levels of autonomy—moving from answering basic questions to modifying source repositories, managing devops pipelines, and interacting with production APIs—the safety of the execution platform becomes as critical as the safety of the model weights.

Historically, AI security discussions centered predominantly on prompt injection, jailbreaking, and training data poisoning. While those vulnerabilities remain significant, the infrastructure supporting AI operations introduces classic software security vectors. A flawed microVM configuration could allow prompt injections to jump from logical exploits to full infrastructure compromises.

By building out custom microVM controls, Anthropic demonstrates an awareness that model-level alignment alone cannot guarantee system security. Models will inevitably hallucinate, make mistakes, or succumb to clever jailbreaks. Therefore, defense-in-depth requires assuming the model will output malicious code, requiring the runtime container to enforce safety programmatically rather than behaviorally.

Open Questions and Security Implications

While reverse-engineering client-side assets and network traffic provides invaluable insight into Antspace's operating model, several open questions remain for security researchers examining AI execution sandboxes:

  • Resource Limits and Denial of Service: How effectively does the runtime handle intentional resource exhaustion attacks, such as memory bombs or infinite loops tailored to evade basic timeout thresholds?
  • Data Exfiltration Vectors: Given that AI models must return computed outputs to the user, what mechanisms exist within the microVM boundary to detect covert data channel exfiltration embedded inside generated images, binaries, or visual artifacts?
  • Side-Channel Attacks: In multi-tenant cloud environments hosting microVMs, are shared CPU caches or underlying hypervisor channels vulnerable to timing attacks that could allow one user's container to leak context from an adjacent container?

As public interest in reverse-engineering these systems grows, providers like Anthropic, OpenAI, and Google will face increasing pressure to formalize their sandbox security models. Providing clear documentation and security guarantees around execution layers will likely become a major selling point for enterprise customers looking to deploy AI agents within sensitive corporate networks.

Ultimately, the uncovering of Antspace underscores a maturity phase in AI development. The industry is moving beyond the initial novelty of chat interfaces toward resilient, enterprise-grade runtime environments where models act as operators within carefully engineered, tightly monitored digital containment zones.

Reported using information from Hacker News (trending).