hn.today

Capsem – a Rust hypervisor sandboxing AI agents in air-gapped Linux VMs

capsem.org7 points3 comments
Screenshot of Capsem – a Rust hypervisor sandboxing AI agents in air-gapped Linux VMs

Capsem is a Rust-written hypervisor that runs each AI coding agent inside its own ephemeral, air-gapped Linux VM to provide strong isolation and visibility. It ships with preconfigured development environments (Python, Node.js, 30+ packages) and supports major agents like Claude, Gemini CLI, Codex and OpenAI. Each session boots a lightweight VM with a read-only root filesystem, no swap, no kernel modules and a tmpfs workspace; networking is air-gapped via a dummy NIC and fake DNS so nothing can reach the real network except through a host-side MITM proxy. Connections between host and guest use vsock endpoints for terminal I/O, HTTPS/MCP tool relay, and a native MCP endpoint exposes policy-checked tools (fetch_http, grep_http, http_headers, plus custom fastmcp servers).

Security is enforced by an inspecting MITM proxy on the host that terminates TLS with per-domain minted certificates, inspects full HTTP request and response bodies, applies domain/path/method policies, and logs everything to a per-session SQLite database for post-hoc analysis. Profiles define enforcement, detection (Sigma-compatible), MCP, plugin and asset rules while a corp-level config can lock down policies and reporting that users cannot override. Capsem uses Apple Virtualization.framework on macOS (Apple Silicon, macOS 14+) and KVM on Debian/Ubuntu, boots quickly, is open source under MIT, and plans features like VM checkpoint/restore and a VS Code extension.

Read on capsem.org3 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Security

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.