r/netsec • • 8d ago

Sandboxing AI Coding Agents: nono vs Docker Sandboxes vs Microsandbox vs OpenShell

https://kudelskisecurity.com/research/sandboxing-coding-agents
31 Upvotes

5 comments sorted by

2

u/freakwin 8d ago edited 8d ago

Article missed some recently popular Sandbox runtime. Eg: https://ate.dev

1

u/geofabnz 7d ago

I’m a big fan of Nono, their phantom proxy solution is great.

1

u/jekapats 7d ago

I tried both but I think sandboxing is just one part of the picture - it also needs identity, access and audit. Disclaimer: founder @ https://kosem.ai/blog/introducing-kosem-agents-with-identity-and-access

1

u/OpenDKG 4d ago

Two local boundary gaps that tend to bypass container or user-space agent sandboxes in practice:

  1. Shell-wrapper & launcher parsing vs OS enforcement: in-app command allowlists break quickly on POSIX comments, heredocs, ANSI-C quoting, or chaining through ssh/git/env launchers. Any deny rule has to live at the OS/firewall/syscall layer rather than trusting string matching in the agent harness.
  2. Localhost IPC and symlink TOCTOU: sandboxing the agent process still leaves risk if it can talk to unauthenticated loopback daemons (Docker socket, local MCP servers, or Windows named pipes not bound to the desktop user's SID), or if a privileged helper reads paths across separate calls instead of a single no-follow handle.

0

u/matgalt 5d ago

Sandboxing is essential, but it solves half the problem. You can lock down where the coding agent runs, but that does not catch the leaked API key it wrote into config, the SQL injection in the query, or the admin route with no auth check. Those live in the code itself.

What actually works: sandboxing for safety, yes. But also scan every deploy for secrets and common vulns, enforce your own rules on what the code looks like, hand the coding agent the fix so it repairs it, and keep an audit trail of what shipped and who approved it. One of those alone does not work. All of them together do.

I dislike plugs, but this is exactly why we built Canyon: open source, it runs on your infrastructure, checks every deploy for leaked keys and broken rules, and hands the coding agent the fix. Free, and the community builds guardrails together. Try it on your machine and tell us what is missing: Canyon (getcanyon.ai)