zlacker

A deep dive on agent sandboxes

submitted by icyfox+(OP) on 2026-01-12 23:02:27 | 68 points 20 comments
[view article] [source] [go to bottom]

NOTE: showing posts with links only show all posts
2. ashish+bz[view] [source] 2026-01-13 05:29:06
>>icyfox+(OP)
6 months back I started dockerizing my setup after multiple npm vulnerabilities.

Then I wrote a small tool[1] to streamline my sandboxing.

Now, I run agents inside it for keeping my non-working-directory files safe.

For some tools like markdown linter, I run them without network access as well.

1- https://github.com/ashishb/amazing-sandbox

◧◩
7. bigwhe+674[view] [source] [discussion] 2026-01-14 01:33:44
>>zmj+O54
Totally, devcontainers are fantastic! In this agent sandboxing space there's also Leash, which in addition to Docker/Orbstack/Podman provides a sophisticated macOS-native system extension mode - https://github.com/strongdm/leash
9. linole+n84[view] [source] 2026-01-14 01:47:01
>>icyfox+(OP)
The secret proxy trick is something I expect to become standard at some point in the near future. I first saw this trick being used in Deno Sandboxes (https://docs.deno.com/sandboxes/security/) but it's cheap/easy to implement so I'd be surprised if this doesn't become the standard for a lot of these BaaS platforms.
◧◩
10. sea-go+Wk4[view] [source] [discussion] 2026-01-14 03:45:15
>>pama+kw
This was also a great read: https://www.luiscardoso.dev/blog/sandboxes-for-ai
12. Gerhar+DI4[view] [source] 2026-01-14 08:05:39
>>icyfox+(OP)
Very interesting read, I had no idea agents already had so much sandboxing built in! It does seem like this is probably not enough though.

A few months ago I built https://github.com/Gerharddc/litterbox (https://litterbox.work/) primarily to shield my home directory from supply-chain attacks, but I imagine it could be very useful for defending against rogue agents too. Essentially it is a dev-container-like system for Linux built on rootless Podman with a strong focus on isolation and security.

A key difference to normal dev-containers is that it encourages placing your entire dev environment (i.e. also the editor etc.) inside the container so that you are even protected from exploits in editor extensions for instance. This also makes it safer to allow agents (or built tools) to for instance install packages on your system since this is not the "real" system, it is only a container.

Another important feature I added to Litterbox (and one I have not seen before) is a custom SSH agent which always prompts the user to confirm a signing operation through a pop-up. This means that things inside a Litterbox do not have unrestricted access to your normal SSH agent (something which could provide rogue actors access to your Github for instance).

[go to top]