News for hackers. Stuff that matters.
Re:Show HN: I Built a Sandbox for Agents by debarshri on Wednesday January 28, 2026 @12:53PM (#46798957)
Can someone elaborate with whats wrong with having containers for sandbox?
Re:Show HN: I Built a Sandbox for Agents by vrn21 on Wednesday January 28, 2026 @04:00PM (#46801434)
Luis wrote an excellent blog about it btw: https://www.luiscardoso.dev/blog/sandboxes-for-ai
Re:Show HN: I Built a Sandbox for Agents by binsquare on Wednesday January 28, 2026 @01:01PM (#46799116)
It's because containers share the kernel with the host. Generally it's just not considered a security boundary. (Note that containers have come a longer way in the security side btw)

So it's a mostly security thing.

Re:Show HN: I Built a Sandbox for Agents by ATechGuy on Wednesday January 28, 2026 @01:30PM (#46799591)
What about VMs? They offer strong isolation, as they don't share kernels, and have long been a foundational piece for multi-tenant computing. Then, why would we put an extra layer on top and rebrand it as an AI agent sandboxing solution? I'm genuinely curious what pushes everyone to build their own and launch here Is it one of those tarpit ideas: driven by own need and easy to build?
Re:Show HN: I Built a Sandbox for Agents by debarshri on Wednesday January 28, 2026 @01:06PM (#46799192)
But in the context of agents. Does it matter?
Re:Show HN: I Built a Sandbox for Agents by tptacek on Wednesday January 28, 2026 @01:10PM (#46799264)
Depends. Probably not usually. I've thought about this a bunch and I think the serious "threat" here isn't the agent acting maliciously --- though agents will break out of non-hardened sandboxes! --- but rather them exposing some vulnerability that an actual human attacker exploits.
Re:Show HN: I Built a Sandbox for Agents by buu700 on Wednesday January 28, 2026 @01:30PM (#46799588)
I'd also add that I just don't like the idea in principle that I should have to trust the agent not to act maliciously. If an agent can run rm -rf / in an extreme edge case, theoretically it could also execute a container escape.

Maybe vanishingly unlikely in practice, but it costs me almost nothing to use a VM just in case. It's not impossible that certain models turn out to be poorly behaved, that attackers successfully execute indirect prompt injection via malicious tutorials targeting coding agents, or that some shadowy figure runs a plausibly deniable attack against me through an LLM API.

Re:Show HN: I Built a Sandbox for Agents by debarshri on Wednesday January 28, 2026 @02:10PM (#46800127)
This is a genuine concern. But this sounds a bit independent of the execution environment. It could either be containers or VMs.
Re:Show HN: I Built a Sandbox for Agents by tptacek on Wednesday January 28, 2026 @02:23PM (#46800285)
On a local machine, yeah, I think it's pretty situational. VMs are safer, but in risk management terms the win is sometimes not that significant.

In a multitenant cloud environment, of course, totally different story.

Re:Show HN: I Built a Sandbox for Agents by DeborahEmeni_ on Monday February 02, 2026 @04:45AM (#46854155)
I’ve been experimenting with this recently. Running services inside microVMs instead of plain containers makes the threat model easier to reason about, especially for multi-tenant or untrusted workloads. I’ve been trying it out on Northflank and the trade-offs become pretty obvious.
Re:Show HN: I Built a Sandbox for Agents by binsquare on Wednesday January 28, 2026 @01:15PM (#46799362)
Imo it's even more important in context of agents, if these agents are as good as it's going to get with as much access as we let them.
Re:Show HN: I Built a Sandbox for Agents by starlust2 on Wednesday January 28, 2026 @01:16PM (#46799374)
One could theoretically use a prompt injection attack to exploit a privilege escalation vulnerability on the kernel.
Re:Show HN: I Built a Sandbox for Agents by aghilmort on Wednesday January 28, 2026 @01:11PM (#46799287)
security matters if want to demarc where agents can play. running agent inside of strong VM is usually where starts container not enough for that full isolation only sees files you want it to etc
Re:Show HN: I Built a Sandbox for Agents by Ronsenshi on Wednesday January 28, 2026 @01:01PM (#46799122)
From what I read others say at some point on HN:

- resources

- security

- setup speed?

I suppose a lot depends on how and in what environment you're dealing with agents.

Resources might be an issue on Mac if you have bunch of agents running different things, trying to execute code in different containers. But that's the issue of Mac and the way containers are running in a VM there.

Security-wise there were concerns with prompt injection telling agent to execute certain steps to escape from container. Possible, but I'm not aware if there were actually cases of that.