Skip to content

SideKernel: a microVM sandbox for AI coding agents on macOSSideKernel: A Usable microVM Sandbox for AI Coding Agents on macOS

Paper Tracker· arXiv:2610.02456· Dimitrios Prasakis·Indexed by this site · 2026-10-05· Originally publishedTools

Quick read

Defenses

Based on the paper PDF (AI-generated); refer to the original

SideKernel is a microVM sandbox for macOS programming agents, passing 19 of 23 tests alongside Docker Sandboxes.

Threat modelThe adversary is the AI programming agent itself with full privileges inside the sandbox, for any reason. Southbound threats are one-way, protecting the host runtime and unmounted file systems; northbound threats are two-way, preventing data exfiltration and use as a springboard for external attacks.

Questions
AI programming agents are untrusted but run autonomously on developers' local machines. The authors claim that local open-source sandboxes on macOS are scarce and difficult to use, and in the survey, most users do not put agents in sandboxes.
Methods
After investigating usability barriers, SideKernel is implemented: a Linux microVM on macOS, with a Rust agent inside the guest handling mounting and port forwarding, and a credential agent keeping keys outside the sandbox. Then, 23 built-in capability tests are used to compare with similar sandboxes.
Experiments and results
Among 68 agent users, 38.2% currently use sandboxes, and 51.5% have never used them. Across 23 tests, SideKernel and Docker Sandboxes each passed 19, while SmolVM and three others each passed 12.
Limitations and future work
The authors note single-person evaluation, survey and sampling bias, low and informal sample size, binary scoring without weighting, and no formal security review. Plans include fine-grained allowlisting via a northbound proxy, plus a general credential store and more agents. Stated test machines are M1, M4, and Tahoe 26.2.
Experimental setupGoogle user survey、capability tests UB-1/UB-2/UB-3 · binary pass/fail、unweighted capability score et al.
Benchmarks
Google user surveycapability tests UB-1/UB-2/UB-3
Metrics
binary pass/failunweighted capability scoresurvey response rate
AI summaryA master's security practice project at Georgia Tech proposes SideKernel, an open-source local microVM macOS sandbox for AI coding agents, aiming to improve usability. The authors first conduct an online user survey, finding that fewer than 40% of AI coding agent users run agents in a sandbox, and identify the main usability barriers to sandbox adoption. They then screen existing sandboxes against five inclusion criteria, and compare SideKernel with qualifying sandboxes across 23 capability tests derived from the survey. Results show that only a few sandboxes resemble SideKernel, with Docker Sandboxes and SideKernel scoring highest on usability-related capabilities. Another contribution of the paper is a review of existing local, open-source, microVM-based macOS sandboxes for AI coding agents.

A master's security practice project at Georgia Tech proposes SideKernel, an open-source local microVM macOS sandbox for AI coding agents, aiming to improve usability. The authors first conduct an online user survey, finding that fewer than 40% of AI coding agent users run agents in a sandbox, and identify the main usability barriers to sandbox adoption. They then screen existing sandboxes against five inclusion criteria, and compare SideKernel with qualifying sandboxes across 23 capability tests derived from the survey. Results show that only a few sandboxes resemble SideKernel, with Docker Sandboxes and SideKernel scoring highest on usability-related capabilities. Another contribution of the paper is a review of existing local, open-source, microVM-based macOS sandboxes for AI coding agents.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Untrusted programming agents run directly on macOS; SideKernel uses microVMs for usable isolation.

    macOS developers lack a usable local microVM sandbox, so untrusted AI coding agents often run directly on the host machine.

    • Scenario: The authors consider coding agents untrusted components that run autonomously on the developer's terminal. The risks they cite include prompt injection, remote code execution from tool misuse, data exfiltration, and installing malware under hallucinated package names. The abstract says fewer than 40% of users run agents in sandboxes.
    • Existing shortcomings: The authors say open-source options for local macOS development are few and hard to use. Isolation primitives are divided into shared kernel, language runtime, and independent kernel; the authors cite literature saying container isolation is weaker than microVMs, but consider whether Seatbelt is weaker to depend on the threat model, and that comparison is beyond the scope of this paper.
    • Problem and signal: The research question is which usability barriers prevent macOS developers from adopting such sandboxes. The authors use a formative online survey to extract barriers and state the results are only informal signals and cannot be statistically generalized.
    • What this paper proposes: SideKernel. The authors describe it in the abstract as an open-source, local, microVM-based, usable security sandbox built only for terminal-based AI coding agents. Secondary contributions are an empirical description of barriers and a comparative analysis of similar sandboxes on the market.
    • Threat model:
      • Adversary: The agent inside the sandbox itself. Whether it becomes hostile due to prompt injection or its own hallucination, the authors consider irrelevant to the threat model and treat it as a fully privileged subject inside the sandbox.
      • Southbound: The channel from the sandbox to the host, implemented via virtual sockets or protocols such as SSH. The threat is one-directional. The goal is to protect the host runtime and unmounted file systems; mounted directories are not within that goal.
      • Northbound: The channel from the sandbox to the internet or other external hosts. The threat is bidirectional: it both prevents data exfiltration from inside the sandbox and prevents the sandbox from becoming a springboard for external attacks, protecting external entities.
      • Coverage: The authors say controls target both boundaries simultaneously, but not symmetrically. They cite an incident where an OpenAI agent bypassed northbound controls, escaped the sandbox, and reached the internet, to illustrate that sandboxing strong agents is not simple.
  2. What related research exists?

    The market is dominated by shared-kernel or remote sandboxes; local open-source microVM options for end-user coding agents are rare.

    Isolation primitives and cloud microVMs

    • Three types of boundaries: The authors classify by where the security boundary sits: shared kernel (Linux containers, bubblewrap, Landlock, Seatbelt), language runtime (WASM, Chromium site isolation, JVM), and independent kernel (full VMs, unikernels, microVMs, with examples including Firecracker and Kata).
    • Cloud practices: The authors say many cloud providers use independent kernels to isolate untrusted code, citing AWS running Lambda and Fargate on Firecracker, and managed platforms such as E2B and Vercel Sandbox using microVMs.
    • Strength judgment: The authors cite literature saying container-based isolation is weaker than microVM isolation, while also stating that for policy-based, kernel-enforced primitives such as Seatbelt, this judgment is not straightforward and requires separate study.

    Shared-kernel or language-level agent sandboxes

    • Vendor-native sandboxes: The authors place the native sandboxes of Claude Code, Codex, Gemini, and Grok Build, as well as Nono and Agent Safehouse, which rely on Seatbelt and Landlock, into the mainstream of the current market, namely OS-level or language-level isolation.
    • No per-paper quality comparison: The main text categorizes by isolation type and does not give an experimental comparison of each of the above against SideKernel.

    Systems with microVMs that do not simultaneously meet the inclusion criteria

    • Remote or non-open-source: E2B and Daytona are classified by the authors as SaaS without local deployment; a table note says Daytona moved to a private repository starting June 2026. Docker Sandboxes is marked as failing the open-source column in Table I.
    • Different purpose: Lima, Apple container, and OrbStack are classified by the authors as general-purpose VM runtimes rather than dedicated agent sandboxes; CUA mainly does computer use and boots a full macOS VM.
    • Interaction form: The authors say other systems mainly target programmable SDK agents or MCP gateways rather than terminal-based coding agents, with named references including Microsandbox and Arrakis. Later, Microsandbox, which satisfies the interactive shell, is still included in the comparison.

    Baselines and the authors' positioning

    • Similar list: The authors say that, to their knowledge, only SmolVM, Microsandbox, Shuru, and VibeBox simultaneously satisfy the five criteria of open-source, local, targeting terminal-based AI coding agents, microVM hardware virtualization, and macOS-native. These five criteria are IR-1 through IR-5 later in the text. The authors state this is not an exhaustive survey of all sandboxes.
    • Baseline method: The comparison deliberately does not filter for open-source, so as not to exclude Docker Sandboxes. Those entering the later scoring discussion are Docker Sandboxes, Microsandbox, SmolVM, Shuru, VibeBox, and SideKernel. The benchmark is not a publicly named dataset but 23 capability tests derived from the survey barriers.
    • Positioning: The authors place SideKernel among local microVM sandboxes built only for AI coding agents and treating usable security as a core argument, and use the inclusion criteria to find similar systems and then score them.
  3. How does the paper address this problem?

    Swift VMM plus a Rust agent inside the guest, using implicit mounts, credential proxying, and a kill switch for usability.

    Overall, the approach is to first use a survey to identify three usability barriers, then build a biased SideKernel: the default deny-all is selectively relaxed in exchange for usability; some choices are recorded as risk acceptance in Table II.

    How barriers become design goals

    • Three barriers: host-sandbox file sharing (UB-1), ports and networking (UB-2), environment provisioning (UB-3). The authors state that installation, multi-sandbox management, reliability, and performance were also mentioned, but to be completable within the practicum timeframe, development and evaluation are based only on these three.
    • Unimplemented goals: Table II marks externalizing arbitrary user secrets and injecting them, northbound allowlist for arbitrary destinations, in-sandbox file and process event logs, and external endpoint logs as unimplemented, pointing to future work.

    Architecture and credential boundary

    • Virtualization: The VMM is written in Swift on the Apple Virtualization framework. The guest uses a precompiled minimal Linux kernel from Kata Containers and an Ubuntu root filesystem built at first run, both pinned by SHA256.
    • Guest agent: A zero-dependency Rust program runs as PID 1, mounts the host filesystem via VirtioFS, performs port detection and forwarding, communicates with the host over vsock, and exposes a pseudo-terminal. Each start or restart brings up a new ephemeral microVM.
    • Credentials: A small credential proxy outside the sandbox intercepts agent API requests and injects credentials. The authors claim credentials therefore do not remain in the sandbox; a footnote exception is that credentials are read into the sandbox during first authentication, then immediately deleted from the sandbox and stored in the macOS Keychain. The current installation method is a Makefile.

    Mechanisms for the three barriers

    • Files and clipboard: After running sidekernel (alias sk), the current directory is implicitly mounted bidirectionally via VirtioFS. The authors acknowledge this deviates from common default-deny, but aligns with Claude's usage on the host. For unmounted paths, the in-guest command sk-drop is used, with explicit approval outside the sandbox; Claude has preloaded instructions on how to use the command, and drag-and-drop also triggers it. The host clipboard can be pasted into SideKernel, and Claude sessions can also paste images. Table II describes the risk of the mounted directory as: the agent can read, modify, or destroy anything in it.
    • Ports and northbound: Newly opened ports are discovered by the Rust proxy and automatically exposed to the host's 127.0.0.1. Table II records the corresponding risk as: a malicious agent could open ports on the host and expose malicious services. The northbound NAT kill-switch is toggled by an in-guest command; when enabled, it blocks northbound outbound traffic, by default allowing only Claude's official inference endpoints to continue reasoning; disabling and restoring traffic requires explicit user approval.
    • Environment and authentication: The in-guest save writes installations and configurations to an OverlayFS personalized image, persisting across restarts and sandboxes. Before startup, Claude's skills, plugins, and agents are copied from the host. If the host Claude is authenticated, after user approval of Keychain access, the in-sandbox session shares that authentication; in-sandbox authentication also writes back to the host. The host can directly run sclaude, which the authors explain as Secure Claude or SideKernel Claude. The latest Claude is preinstalled at first startup.

    How passing is determined in comparisons

    • Inclusion: IR-1 open source or source available, IR-2 runs on the user's own machine, IR-3 provides an interactive shell for CLI coding agents, IR-4 hardware virtualization with a minimal kernel, IR-5 runs on macOS ARM. The authors treat performance as an implicit rather than explicit requirement, thus excluding full VM platforms. Comparison filtering uses only IR-2 to IR-5.
    • Judgment: Success criteria for each capability test are fixed before the evaluation round begins. Only the sandbox itself, or built-in mechanisms discoverable from official documentation or interface, count as passing; failing to do so, or only bypassing the sandbox, counts as not passing. The authors give an example: manually blocking network on the host firewall does not count as the sandbox's built-in blocking.
    • Scoring: Binary results intentionally ignore difficulty. Friction notes are scored as Native, Frictionless (plus 1 to 2 actions), and with friction (3 or more actions), without changing pass/fail. Capability scores are the unweighted sum of items. The authors call it a signal, not a definitive metric, and should be read with friction notes. Fig. 2 depicts the comparative analysis as a loop feeding back into SideKernel development; Section IV also frames this evaluation as a summative comparison against the final prototype.
  4. What experiments did the paper conduct?

    In the survey, 38.2% currently use sandboxes; SideKernel and Docker Sandboxes each passed 19 of 23 tests.

    Experimental setup

    • Survey: An online Google survey, first filtering out those who do not use AI coding agents, then dividing into current, former, and never users. Recruitment came from the authors' professional networks, JFloor in Zurich, and the Georgia Tech practicum CS-6727 forum and Slack. The authors call this an informal survey, treating results as anecdotal signals, not for statistical generalization. The full questionnaire is in Appendix B; free text is only summarized.
    • Comparison targets: Filtered by IR-2 to IR-5 to Docker Sandboxes, Microsandbox, SmolVM, Shuru, VibeBox, and SideKernel (Fig. 3, Table I). IR-1 was not used for filtering. VibeBox, after installation per README on two macOS Tahoe 26.2 machines (M1 and M4), still had no usable sandbox; all three result tables show dashes.
    • Tested agent: The capability tests actually invoke Claude Code. The authors state that Docker Sandboxes comes preinstalled with Claude Code, Codex, Gemini CLI, GitHub Copilot, opencode, etc., while SideKernel currently supports only Claude Code. The paper does not specify the model version of the tested Claude.
    • Tests and metrics: 23 capability tests, UB-1 has 9 items, UB-2 has 5, UB-3 has 9, defined in Appendix A. Metrics are pass/fail for built-in mechanisms and unweighted pass counts. The template directory contains host-only external-file.txt, a 10GB big-file.txt, and in the mounted directory requirements.txt (with numpy), workspace-file.txt, and shell.sh without execute permission.
    • Review: The evaluator is a single author. The paper does not report repetitions, nor does it use LLM review or numerical thresholds. Friction notes do not change binary results.
    • Machines: The authors write in VIII-C that SideKernel is designed for a single macOS, and it was only tested on M1 and M4, and only on Tahoe 26.2.

    Main results

    Swipe horizontally to read the table

    SandboxUB-1 (Table III, total 9)UB-2 (Table IV, total 5)UB-3 (Table V, total 9)Total (VIII-A, total 23)
    Docker Sandboxes65819
    SideKernel83819
    Microsandbox53412
    Shuru53412
    SmolVM53412

    VibeBox is not listed because the paper does not provide pass counts.

    • Authors' interpretation: The authors state that within the tested usability barriers, Docker Sandboxes and SideKernel score highest; this is not a generalizable conclusion about which sandbox is more useful, and should be read with friction notes.
    • Different goals: The authors state that Docker targets enterprise deployment and multi-sandbox orchestration; Shuru is a Claude skill invoked by the host agent, isolating tool execution into a sandbox; SideKernel tries to reproduce the host experience as much as possible; Microsandbox and SmolVM focus on programmable SDKs, with CLI as an accessory.
    • Differences named by the authors: The authors state that only SideKernel achieves in-guest or drag-and-drop external file input, automatic forwarding of newly opened ports, bidirectional clipboard with Claude sessions, and authentication synchronization with the host. They also state that Docker is more complete in observability, auditing, governance, fine-grained policies, terminal interface, multi-sandbox management, and credentials, some of which are beyond the scope of this study.

    User survey

    • What was measured: 80 respondents; 68 use AI coding agents (85%). Agents are multi-select. Sandbox status uses these 68 as the denominator.
    • Results: macOS users account for 60.3%. Claude Code 59/68 (86.8%), Codex 26/68 (38.2%), Copilot's agent mode 23/68 (33.8%), Cursor 13/68 (19.1%), Gemini CLI 10/68 (14.7%). Current sandbox users 26/68 (38.2%), former users 7/68 (10.3%), never users 35/68 (51.5%). The abstract says fewer than 40%. Among the 33 current and former users, 8 each cited from-scratch configuration and ports/localhost/networking (24.2%), 7 cited file sharing being difficult or slow (21.2%), 5 each cited multi-sandbox management and initial installation (15.2%) (Table IX, Fig. 4). Among the 26 current users, 9 (34.6%) checked No significant difficulties.
    • Authors' interpretation: The sample is technically oriented, with cybersecurity roles at 23/68 (33.8%), which the authors summarize as about one-third. Claude Code's dominance led the authors to focus the prototype on Claude Code. Among the 35 never users, 21 (60%) never considered it, 9 (25.7%) thought the security benefit was not worth the effort. Free text was summarized by the authors as: sandboxes should be nearly invisible, environment provisioning should be reproducible, and policy granularity and observability matter.

    Item-by-item passes and exceptions

    • UB-1 (Table III): All five scored sandboxes failed T3 (host-to-sandbox inode notification), with no additional explanation from the authors. Clipboard T5, T6 passed only for SideKernel. Permission bits across southbound transfer failed for Microsandbox and SmolVM, passed for Shuru and Docker. Unmounted file transfer failed for Shuru, passed for Docker, Microsandbox, and SmolVM but noted as with friction by the authors.
    • UB-2 (Table IV): Runtime port forwarding passed only for Docker and SideKernel; the other three require specifying ports before startup. DNS connection logs passed only for Docker. Outbound blocking passed for all five, with SideKernel using an in-guest kill-switch; outbound allowlist failed only for SideKernel. The authors state that other sandboxes have fine-grained northbound control with allowlists, while SideKernel lacks that granularity. Docker's allowlist can be modified at runtime in its TUI and lists domains the sandbox has contacted.
    • UB-3 (Table V): Credential inheritance passed only for SideKernel; custom secret store passed only for Docker. Agent preinstallation passed only for these two. Configuration, package installation, git visibility, and checkpoint persistence were partial passes for Shuru, Microsandbox, and SmolVM: T3 to T6 passed, T7 and T8 failed. The authors state that configuration and package persistence are possible for these three but with friction; Docker and SideKernel can persist across restarts at runtime and are recorded as frictionless. Skills, plugins, and agents inherited from the host are provided only by SideKernel, according to the authors.

    Other ablations and analyses

    • The paper does not report ablations on the kernel, mount method, or kill-switch values.
    • Current users' tools (n=26, Table IX): Docker Sandboxes 12/26 (46.2%), full VMs 9/26 (34.6%), Nono.sh 7/26 (26.9%).
    • Never users' reasons (n=35, Table IX): never considered 21/35 (60.0%), didn't know good options 11/35 (31.4%), benefit not worth effort 9/35 (25.7%), thought agent's built-in sandbox is enough 7/35 (20.0%).
    • Former users' previous tools (n=7, Table IX): Docker Sandbox 3/7, full VM 2/7, each other listed option 1/7.
    • Friction grading does not change scores: Native, Frictionless (1 to 2 extra actions), with friction (3 or more) (IV-D).
    • Unimplemented items in Table II have no corresponding capability test scores: arbitrary secret externalization and injection, arbitrary destination allowlist, in-sandbox event logs, external endpoint logs.
  5. What are some points that can be further explored?

    The authors state a single-person evaluation, informal survey, and no security review, and plan to add a northbound proxy and credential store.

    Limitations and Future Directions Noted by the Authors

    • Evaluator bias: The developers of the comparative analysis are also the evaluators. The authors state that they used fixed success criteria, binary scoring only on built-in capabilities, auditable tests, and standardized friction notes to reduce bias, and claim that a better approach would be multiple users, but this was not feasible within the practical course deadline (IX).
    • Questionnaire and sampling: The questionnaire was designed by the developers; closed questions anchor respondents to preset options; free text and other options are treated by the authors as mitigation, not elimination. The sample is biased toward security-conscious audiences. The authors claim that real adoption rates are likely lower than the 38.2% recorded in the survey, using "significantly lower" in the original (IX).
    • Sample and research status: N=80, of which 33 are current or former sandbox users. The authors claim this may be sufficient for formative, directional signals, but it is low; the survey is informal practical course research, not Georgia Tech IRB-approved, and not designed to produce generalizable knowledge (IX).
    • Scoring: The authors claim the tests measure how sandboxes address usability barriers from the survey, not usability in general. Binary scores do not capture friction and are not weighted by what users actually care about, so results are approximate (IX).
    • Platform, review, and product status: The authors claim SideKernel is a Linux microVM on macOS, unsuitable for testing native macOS SwiftUI, and some macOS terminal commands are unavailable inside the sandbox; comparison with other isolation primitives like Seatbelt is deliberately left out of scope (IX). VIII-C also states: tested only on M1 and M4 with Tahoe 26.2, and there may still be undiscovered bugs; security relies on architectural arguments, and the implementation has not undergone formal security review; not notarized, self-signed, no out-of-the-box observability, and no enterprise-grade logging, declarative policies, or centralized governance.
    • Future directions: The authors plan to replace the NAT kill-switch with a full network proxy for fine-grained allowlisting, and thereby enable DNS observability; remaining southbound work is a general credential store beyond Claude; then support more agents like Codex and Microsoft Copilot (X). The Discussion states the authors plan to open-source SideKernel, distinguishing it from free but closed-source Docker Sandboxes; Table I marks SideKernel's IR-1 as passed.

    Experimental Coverage

    • The user survey had 80 participants, of which 68 were AI programming agent users and 33 were current or former sandbox users; channels were the authors' professional network, JFloor in Zurich, and the Georgia Tech CS-6727 forum and Slack (V, Appendix B).
    • The comparison list includes Docker Sandboxes, Microsandbox, SmolVM, Shuru, VibeBox, and SideKernel, which passed IR-2 through IR-5; the open-source condition was not used for filtering (IV-B, VII, Table I).
    • The capability tests are 23 items, divided into UB-1, UB-2, UB-3; success criteria were fixed before evaluation, only recognizing built-in mechanisms in official documentation or interfaces, with friction notes. The authors write in IV-E that these tests are broad but not exhaustive. The template directory includes a 10GB file and a requirements.txt with numpy (IV-D, IV-E, Appendix A).
    • VibeBox failed to produce a runnable sandbox on two macOS Tahoe 26.2 machines (M1 and M4), shown as a dash in the table (VII). SideKernel's run instructions specify M1, M4, and Tahoe 26.2 (VIII-C).
    • The paper does not report the number of repetitions for the capability tests. The paper leaves as an independent question which threat model makes Seatbelt or microVM more secure, not within this evaluation (I-C, IX).
  6. Summarize the main content of the paper

    The local microVM sandbox SideKernel targets the usability barriers from the survey and, like Docker Sandboxes, passes 19 tests.

    SideKernel is a local microVM sandbox for macOS terminal-based AI coding agents, with the thesis that usability is security.

    The contradiction is that the agent is untrusted yet runs autonomously on the developer's terminal. The research question is which usability barriers hinder adoption. The abstract states that fewer than 40% of users run agents in a sandbox; among 68 agent users, current users are 38.2% (Table IX).

    The authors used a survey to identify file sharing, networking, and environment provisioning, then built a biased design: implicit mounting of the current directory, forwarding new ports to 127.0.0.1, injecting credentials via an out-of-sandbox proxy, a northbound kill switch that by default only allows Claude inference endpoints, and personalized images to preserve the environment. Their security argument is architectural: reaching the host requires escaping the VMM; this is not the result of a formal security review.

    • Never users account for 51.5% (35/68). Among the 33 current and former users, 8 each cited from-scratch configuration and ports/networking (Table IX).
    • SideKernel and Docker Sandboxes each passed 19/23 items; SmolVM, Microsandbox, and Shuru each passed 12/23 (VIII-A). VibeBox has no scores.
    • File sharing: SideKernel 8/9, Docker 6/9; networking: SideKernel 3/5, Docker 5/5 (Tables III, IV).
    • Clipboard, authentication inheritance, and skill migration passed only for SideKernel; DNS logs, allowlist, and custom secret store passed only for Docker (Tables III to V).

    The authors claim SideKernel addresses many barriers from the survey and is currently the only local microVM sandbox that simultaneously provides bidirectional clipboard with Claude Code, automatic runtime port forwarding, Keychain authentication integration, and automatic skill migration. They claim it scores highest among the tested barriers, but Docker has more complete observability, governance, and credentials. They believe terminal coding agent sandboxes on local macOS are still rare. They plan to open-source and add a network proxy, a general credential store, and more agents.

Read originalarxiv.org