Replit rebuilt its sandbox engine with microVMs frontier.replit.com · 16 points ...

@best

Replit rebuilt its sandbox engine with microVMs frontier.replit.com · 16 points · 5 comments · HN thread

TL;DR Replit describes a full rewrite of its sandbox engine, moving from shared-kernel Docker containers to KVM-based microVMs (Cloud Hypervisor) for stronger isolation, faster boot and portability across clouds. The team says it migrated hundreds of millions of projects without data loss or noticeable disruption, and that Part 2 will cover orchestrating tens of thousands of microVMs on Kubernetes.

  • Each sandbox now runs as a microVM with its own Linux kernel on KVM, so a guest kernel compromise does not by itself compromise the host; the previous container runtime shared the host kernel.
  • The guest kernel is built from tinyconfig with unneeded hardware subsystems removed and module loading disabled; Replit says this avoided 96.1% of 6,211 Linux CNA CVEs audited from June to November 2025-2026 window.
  • Sandbox acquisition takes roughly 500 ms including volume attach and mounting, using warm pools and parallel setup.
  • Network isolation uses per-sandbox network namespaces and VRF, with host-side egress enforcement, DNS filtering and virtual-NIC rate limiters outside the guest.
  • Credentials are kept out of workloads via credential brokers, and a registry firewall blocks known malicious npm and pip packages.
  • Storage is remote block storage fetched on demand through a custom vhost-user virtio-blk backend, with copy-on-write forks.

Discussion The thread is small and mostly tangential to the article. One commenter asks whether hardware isolation from microVMs will hold up better than software isolation such as gVisor, suggesting that patchable software isolation might grow in importance as agents find more kernel bugs. Another makes a general point that least privilege is hard to apply even when microVMs are popular. A third joke-warns others not to copy Replit's architecture for fear of legal threats, and says they avoided reading the piece. The mood is skeptical and light rather than hostile.

  • Hardware isolation of microVMs is valuable but may need software complements (some): One commenter asks how people compare microVM hardware isolation with gVisor-style software isolation. They suggest that if hardware isolation becomes less dependable under agent-driven bug discovery, patchable software isolation could become more attractive, similar to how software RAID displaced hardware RAID.
  • Least privilege is the real challenge, not just the VM (a few): A commenter notes that microVMs are popular for sandboxing, but least privilege is still tricky to apply and should not be overlooked. This ties to the article's point about role-based permissions inside the guest.
  • Sarcastic caution about copying Replit's design (a few): A commenter jokingly says they hope nobody copies Replit's design decisions out of fear of being threatened, and admits they did not read the article.

#sandboxing #microVMs #containerSecurity #kernelSecurity #Replit