Sandboxing AI Coding Agents: Nono vs. Docker Sbx vs. Microsandbox vs. OpenShell A hands-on comparison of four sandboxing tools for AI coding agents — nono, Docker Sandboxes, Microsandbox and OpenShell — found no tool perfect, with all four scoring between 4 and 4.5 out of 5, and none having reached v1.0. The review reports that Docker Sandboxes and Microsandbox use microVMs, OpenShell offers multiple backends, and nono relies on OS-level primitives as the fastest option at the cost of some security; only nono and OpenShell scope credentials to both a domain and endpoint, and no tool can deny a file inside an allowed directory or customize allowed syscalls. The comparison cites JetBrains' Developer Ecosystem Survey 2026 finding that 90% of professional developers used AI coding agents at work at least weekly between May and July, while Stack Overflow's 2026 survey found only 7% of respondents trust AI output for important work decisions, and notes Johann Rehberger obtained a 60-80% attack success rate against Claude Code's Auto mode despite Anthropic's reported 0.0% ASR. Sandboxing AI Coding Agents: nono vs Docker Sandboxes vs Microsandbox vs OpenShell Talk Directly To Experts Now contact-now Introduction In this blog post, we compare four major sandboxing tools for AI coding agents in a hands-on approach: nono, Docker Sandboxes, Microsandbox and OpenShell. We describe what makes a good sandbox and our evaluation criteria. We provide a comparison table at the end that hopefully helps you decide which tool is right for you. Disclaimer: we are not affiliated with any of the tools discussed in this article. Key Findings - No tool is perfect: All four obtained a score between 4 and 4.5 out of 5, and each one has pros and cons - Sandboxing primitives: Docker Sandboxes and Microsandbox use microVMs, OpenShell offers multiple backends, and nono relies on OS-level primitives, which is the fastest option but at the expense of trading some security for speed and simplicity - Credential injection: OpenShell supports the most injection locations, nono and Docker Sandboxes support sandboxed OAuth logins and have vault integrations. Only nono and OpenShell scope credentials to both a domain and endpoint - Usability: Docker Sandboxes is the most polished and nono is the fastest to start. Both Docker Sandboxes and OpenShell have a TUI for live approval of blocked requests, while Microsandbox and OpenShell offer less "coding agent" specific features than the other two because they're more general purpose - Gaps all tools have: No tool can deny a file inside an allowed directory or customize the list of allowed syscalls. No tool comes with a built-in web application for management and monitoring - Maturity: None has reached v1.0 yet, so expect breaking changes and drastic improvements in the near future Why AI Coding Agents must be Sandboxed According to JetBrains' Developer Ecosystem Survey 2026 https://blog.jetbrains.com/research/2026/08/ai-coding-agent-adoption-2026/ , 90% of professional developers used AI coding agents at work at least weekly between May and July, and 68% used them daily. Meanwhile, Stack Overflow's 2026 survey https://survey.stackoverflow.co/2026/ai/data found that only 7% of respondents trust AI output for important work decisions. What this shows is that AI coding agents are widely used, but at the same time, few of their users trust them for important decisions. Not only shouldn't they be trusted for important decisions because they can hallucinate or take unwanted actions by mistake, but they also have inherent vulnerabilities that attackers can exploit to manipulate their behavior and force them to take malicious actions. Indeed, prompt injection is still an unsolved problem. The 2025 CaMeL paper https://arxiv.org/abs/2503.18813 describes a defense mechanism to solve it but it's impractical to implement in practice. Meanwhile, Anthropic reports https://claude.com/resources/articles/auto-mode-default-in-claude-code that prompt injection attack success rate ASR against Fable 5, Opus 5 and Sonnet 5 is as low as 0.0% and therefore made Auto mode the default mechanism to automatically classify commands to be executed in Claude Code in August. Even though Anthropic claims a 0.0% ASR, Johann Rehberger showed https://embracethered.com/blog/posts/2026/breaking-claude-code-opus-5-and-automode/ that he obtained a 60-80% ASR by asking the agent to summarize a website that contained a novel trick not in Anthropic's static benchmark. One should read AI labs ASR numbers with a pinch of salt and Claude Code's Auto Mode is not a replacement for running the agent in a sandbox. The sandbox is a strong protection for when the agent gets manipulated. Prompt injection shouldn't be underestimated. There are many different input vectors malicious instructions can be delivered from and they may not always be visible to you. Here are some examples. Input vectors: - Source code comments - README file - MCP tool name/description/output - Agent skill - Web page - Calendar invite - Shared file Hiding techniques: - Hidden Unicode characters - HTML comments - Spaces/tabs - New lines The idea here is that if the agent runs in a sandbox, even if it's manipulated by malicious instructions, there's only so much it can do. The sandbox limits the blast radius. And this is why sandboxing tools are all the rage lately. This also applies to agents that take unwanted actions by mistake or due to a hallucination, regardless of whether the agent is manipulated or not. A sandbox can also limit those unwanted actions. Proper Sandboxing While a sandbox reduces the risk, it's not bulletproof, especially if it's not properly configured or if it lacks the configuration features to do so. Let's remember some recent events that show why. The OpenAI https://openai.com/index/hugging-face-model-evaluation-security-incident/ and Hugging Face https://huggingface.co/blog/security-incident-july-2026 incident is a great example of that. In July, OpenAI failed to properly sandbox their fleet of agents running a cybersecurity benchmark ExploitGym . Because the environment was not properly isolated from the internet, the agents exploited a vulnerability in an Artifactor instance, which had internet access, to obtain network access through it. From there, they exploited 2 vulnerabilities in Hugging Face's dataset upload pipeline to obtain answers to the problem they were trying to solve. This is the perfect example of what a proper sandbox should have been able to block. In August, Trail of Bits asked GPT 5.6-Cyber to try and escape a QEMU/KVM VM they normally use for sandboxing. It escaped three times https://blog.trailofbits.com/2026/08/26/vms-wont-contain-cyber-capable-agents/ using 3 different techniques. It wasn't able to escape from a Firecracker MicroVM though. Probably because it has a much smaller attack surface and it's a harder target to escape from. Again, the takeaway is that a strong sandbox is hard to escape from and is a valid mitigation strategy. Finally, even solutions like Firecracker are not bulletproof, as shown by pwn.ai https://pwn.ai/blog/firecracker-escape and Coinspect https://www.coinspect.com/blog/firecracker-escape/ . No project will ever be 100% secure, but at least the attack surface is minimal and the risk is reduced. Properties of a Good Sandbox A few months ago https://blackhat.com/us-26/summit-sessions/schedule/index.html?track =the-ai-summit ai-challenge-lab-securing-the-vibes-defending-developer-environments-55924 , at Black Hat USA 2026's AI Summit, we talked https://tome.one/slides/amiet-hamiel-securing-the-vibes-ai-summit-black-hat-2026-slides.pdf about AI coding agent risks and touched on what makes a good sandbox. Let's see what that is. The level of security of a sandbox depends on multiple properties, and one of those is the underlying sandboxing primitive used: MicroVMs offer the highest level of security with the smallest attack surface, but OS-level sandboxing is the fastest and has the least overhead. In addition to the sandboxing primitive tradeoff, a good sandbox should be properly configured. And to do so, it should offer enough granularity in what can be restricted through configuration. Here is the full list of criteria we used to evaluate each tool: - General: Sandboxing primitive used, supported platforms Linux, macOS, Windows , open source or not, account required, backing organization, version and project maturity, whether it's actively maintained, language it's written in, GitHub stars and whether it is also available as a library - Filesystem access: The agent should be able to read and write to the current project directory, but not be able to read SSH keys in ~/.ssh or edit config files that may lead to malicious behavior such as ~/.bashrc or ~/.gitconfig on the host. We looked at read-write access limited to the project directory, read-only and read-write exceptions, denying a file or subdirectory inside an allowed directory, and snapshot and rollback support - Network: Unfiltered outgoing traffic makes it trivial for an attacker to exfiltrate secrets the agent can access. Only normal traffic should be allowed and the rest should be blocked. Filtering by domain name only is not enough: github.com can be used for genuine git work, but the same domain can also be used by an attacker to exfiltrate secrets by pushing a gist or a commit to a repo they can read from. DNS traffic is necessary for an agent to resolve domain names and be able to make network requests, but it's also an exfiltration mechanism that attackers can leverage. Protections should be in place to mitigate this risk. We looked at domain name, IP and CIDR range filtering, HTTP method, path and query params filtering, UDP and other protocols support, DNS exfiltration and rebinding protection, upstream enterprise passthrough proxy support, and SSH integration - Secrets: If a secret sits inside the sandbox, then the agent can read it. If the agent is manipulated via prompt injection malicious instructions , then it can probably exfiltrate that secret since the agent has access to it. The sandbox should support credential injection explained below . We looked at credential scoping to specific endpoints, where credentials can be injected, secret placeholder format configuration, memory zeroization, password vault integrations 1Password, Bitwarden, etc. , and sandboxed OAuth login support - System process restrictions : A malicious agent shouldn't be able to exhaust system resources and cause a denial of service, or take malicious actions. We looked at limits on memory, CPU, max process count, max opened files, disk usage, custom syscall allowlist support and various other restrictions - Dynamic changes and visibility: Criteria include: dynamic policy changes while the agent runs, suggestions based on what was blocked, and logging and audit trail support - Coding agent support and usability: If the tool is too hard to use, it will get replaced. We looked at presence of profiles for popular coding agents marketplace , sandbox awareness agent skills, start-up time, ease of use and installation and documentation clarity What is Credential Injection? AI coding agents typically need to use secrets, including the API token used to authenticate with 3rd party LLM providers. If those secrets enter the sandbox at any time, an attacker who manipulates the agent can probably exfiltrate them. To solve this problem, a technique called credential injection can be used. The sandbox is configured to route all network traffic through a proxy that sits outside the sandbox. Placeholders for real secrets are stored inside the sandbox, for example in config files. Whenever the agent makes a network request, it goes through the proxy. The proxy intercepts the request and replaces the placeholder with the real secret, and then forwards the request to the endpoint. This is a feature that many dedicated sandboxing tools now support and that we will mention multiple times throughout this blog post. In order for the credential to never be sent to an attacker, it must be scoped to an endpoint. What would happen if the agent is manipulated to make a request that contains the placeholder secret to attacker.com and the proxy blindly replaces it with the real secret and forwards it to the attacker controlled website? The secret must only be replaced if the destination is an approved one for this specific secret scoped to domain and endpoint . Our Methodology For each tool, we first read its official documentation, then installed the tool on Linux and used it for a short period of time on real work, typically with GitHub Copilot CLI and OpenCode. We used the criteria listed above to evaluate each tool. Additionally, we gave each tool an overall security score out of 5. This score is based on the isolation primitive used, granularity of restrictions available and the project's maturity and track record of vulnerabilities. We did not try to escape the sandbox of each of these tools. Our evaluation is only based on the above criteria and this is not a security audit. So our security scores do not account for that. What about Built-in Sandboxing Features? Claude Code, Cursor, Copilot CLI and other AI coding agents come with a built-in sandboxing feature, which is often turned off by default. We tried these features in GitHub Copilot for VS Code and Claude Code. They are definitely better than no sandboxing at all, but they come with a few limitations that dedicated sandboxing tools typically do not have: - Network filtering is often domain name only - No credential injection - No system resources limitation - Each agent does it differently and must be configured independently so you can't easily switch to another agent and keep it sandboxed A standalone sandboxing tool is run from the outside, so once configured, it can be used with any AI coding agent. Other Tools we did not Evaluate Not all tools could be reviewed, such as OpenSandbox https://github.com/opensandbox-group/OpenSandbox originally from Alibaba . Raw bubblewrap Linux and Seatbelt macOS can also be used directly or with a simple wrapper script. These two are the building blocks behind several tools, but bubblewrap has no network filtering. The network is either fully open or fully off. Seatbelt, on the other hand supports network filtering. A few others are also worth mentioning: - Anthropic's sandbox-runtime srt https://github.com/anthropics/sandbox-runtime is the sandbox built into Claude Code. It's OS-level, like nono: bubblewrap on Linux and Seatbelt sandbox-exec on macOS. It comes with a network proxy, but its features are lacking compared to the full solutions evaluated below. - Microsoft's Execution Containers MXC https://github.com/microsoft/mxc announcement https://blogs.windows.com/windowsdeveloper/2026/10/07/microsoft-execution-containers-policy-driven-containment-for-ai-agents/ is supported as a backend by OpenShell on Windows native binary only . - Gondolin https://github.com/earendil-works/gondolin is built by the author of the Flask microframework. It's a known team but the project is still early. - Capsem https://github.com/google/capsem was presentedat un prompted II slides https://elie.net/static/files/taming-ai-agents-with-capsem/taming-ai-agents-with-capsem.pdf . The slides mention that "Capsem is 100% AI code generated". With that in mind, let's now go through the 4 sandboxing tools we decided to evaluate in more depth: nono, Docker Sandboxes, Microsandbox and OpenShell. nono nono https://github.com/nolabs-ai/nono uses OS-level sandboxing primitives like Landlock and seccomp on Linux, and Seatbelt on macOS, so the agent shares the host kernel. It's written in Rust and is open source. It doesn't require an account and it's made by the author of Sigstore https://www.sigstore.dev/ , Luke Hinds, and his team at nolabs. It starts instantly with literally no overhead. The documentation is excellent and you can tell it's made for running AI coding agents. They have an official packs registry https://registry.nono.sh/packages where profiles for various popular coding agents can be downloaded from. One should note that since nono uses OS-level sandboxing, whatever agent you run inside it must be already installed on your host. So, for example you'll need to first install GitHub Copilot CLI to be able to run it with nono. If there's no pack for your agent or if it's not supported on your platform for example, the official nono copilot-cli pack doesn't support Linux , you can create your own pack or profile to support it, which is what we did. Profiles are JSON files that describe your policy and they live in ~/.config/nono/profiles on Linux. Most packs come with agent skills that tell the agent that they're running inside a sandbox. Indeed, without this, an agent may be confused when it hits a permission error when trying to read or write a file or make a network request. So this is a big plus. Of course, nono supports filesystem restrictions. Read-write access to specific files or directories can be defined in a profile. It also supports filesystem snapshots and rollback. This is off by default but can be enabled just by passing the --rollback CLI flag. When enabled, nono keeps track of every filesystem change during the session, and in case the agent makes unwanted changes to the filesystem, it's then very easy to rollback to an earlier state with this feature. One downside which is actually a Landlock limitation is that it's not possible to deny a sub-directory of an allowed directory. Nono allows filtering outgoing network traffic by domain name, IP or CIDR range. It also supports filtering traffic by HTTP method and endpoint, including globs. It also supports enterprise proxy passthrough and it prevents DNS rebinding attacks where a malicious DNS server resolves an allowed domain name to an internal IP address. The proxy sitting outside the sandbox first checks all resolved IP addresses against the policy before approving network traffic. When nono exits, it suggests profile changes based on the network requests and filesystem accesses that were blocked during the session. This is the output after exiting GitHub Copilot CLI running in a nono sandbox: ╭─╮╭─╮ Changes +0 -0 ╰─╯╰─╯ AI Credits 7.8 17s █ ▘▝ █ Tokens ↑ 31.1k 31.1k written • ↓ 31 ▔▔▔▔ Resume copilot --resume=fb4d1d58-5a2e-4093-9699-09fa7dfdaaa2 The command succeeded, but stderr showed a likely sandbox-related access issue. Sandbox denial: /home/nils/.gitconfig read+write Try: --allow-file /home/nils/.gitconfig Network denials were observed during this session: deny connect cafe.example.ghe.com:443 host cafe.example.ghe.com:443 is not in the allowlist deny connect copilot-telemetry-service.example.ghe.com:443 host copilot-telemetry-service.example.ghe.com:443 is not in the allowlist To allow this traffic, re-run with: --allow-domain cafe.example.ghe.com --allow-domain copilot-telemetry-service.example.ghe.com To grant additional access, re-run with: --allow