Skip to content
STIRUP

TECHNOLOGY INTELLIGENCE

Understand what's next.

Capsem Uses Air-Gapped VMs and MITM Proxy for Secure AI Agent Isolation

Capsem employs hardware-level isolation using Apple's Virtualization.framework to sandbox AI agents within air-gapped Linux VMs, ensuring secure and ephemeral sessions with strict network inspection and logging.

Share
AI-generated conceptual illustration accompanying: Capsem Uses Air-Gapped VMs and MITM Proxy for Secure AI Agent Isolation
AI-generated editorial illustration of the article topic; not a photograph, product screenshot or measured result.

Hardware-Level Isolation and VM Configuration

Capsem employs hardware-level isolation using Apple's Virtualization.framework to sandbox AI agents within air-gapped Linux VMs. Each session boots a lightweight VM with a read-only rootfs, no swap, no kernel modules, and no debugfs, minimizing the attack surface. Ephemeral VMs ensure a fresh state for every session, with tmpfs used for workspace storage. Air-gapped networking is achieved through a dummy NIC and fake DNS, requiring all traffic to pass through a MITM proxy before reaching the real network. This setup allows inspection of all network activity, as the MITM proxy terminates TLS using per-domain certificates, inspects HTTP traffic, and applies policy before forwarding requests.

Network Inspection and Security Features

Capsem enforces strict network inspection and security policies by routing all traffic through an inspecting proxy on the host. This proxy terminates TLS using per-domain certificates signed by a static Capsem CA, which is pre-installed in the guest's trust store. After inspecting the HTTP request and applying policy rules, the proxy forwards traffic to the actual upstream destination. Additionally, Capsem logs full request and response bodies to a per-session SQLite database, providing detailed visibility into network activity. These measures ensure that AI agents operate securely within air-gapped Linux VMs, with all network interactions subject to inspection and logging.

Preconfigured Environment and Tooling

Capsem provides a preconfigured Linux development environment tailored for AI agent development, eliminating the need for manual setup. The environment includes essential tools such as fetch_http, grep_http, and http_headers, which enable developers to fetch, search, and inspect web content efficiently. Python 3, Node.js 24, and over 30 additional packages—including numpy, pandas, scikit-learn, and fastmcp—are pre-installed, offering a robust foundation for AI and data science workflows. According to the project’s documentation, the environment is "ready to code, out of the box," with support for tools like requests, beautifulsoup4, and pytest. The project is currently in active development, with new features and improvements expected in the near future.

Policy Enforcement and Enterprise Controls

Capsem enforces enterprise controls through a dual-layer configuration system, combining profile and corporate-level policies. Profile-owned CEL enforcement rules, along with Sigma import/export for detection, allow granular control over AI agent behavior. The /etc/capsem/corp.toml configuration, distributed via MDM, locks down policy and reporting with enterprise overrides that users cannot bypass. Each profile manages its own enforcement, detection, MCP, plugin, and asset configuration, ensuring flexibility while maintaining security. Per-domain TLS certificate minting and method/path policy rules further enhance control, enabling full body capture for post-hoc analysis. A native macOS hypervisor creates an air-gapped Linux VM for each session, isolating AI agent operations and ensuring compliance with enterprise security standards.

Deployment and System Requirements

Deployment of Capsem requires macOS 14+ on Apple Silicon or Debian/Ubuntu Linux with KVM support. The project provides native packages for both platforms, which can be installed via a script or downloaded directly from the stable channel. Capsem boots in under 10 seconds, as noted on its official website. On macOS, it leverages Apple's Virtualization.framework, while Linux deployments utilize KVM for virtualization. Users can initiate installation using the command curl -fsSL https://capsem.org/install.sh | sh, or opt to download the package manually. The project is open source and available on GitHub for further inspection and contribution.

Sources and reporting notes

Based on published source material. No independent hands-on testing is claimed.

Read more