News for hackers. Stuff that matters.
Re:Show HN: Clawk – Give coding agents a disposable Linux VM... by vqtska on Monday July 13, 2026 @10:49AM (#48893599)
I still don't understand the point of all these VMs and containers for agents. Just create a separate user on your machine without sudo privileges, switch to it in your terminal and run all the agents you want without it being able to reach your files. What am I missing?
Re:Show HN: Clawk – Give coding agents a disposable Linux VM... by killerstorm on Monday July 13, 2026 @11:04AM (#48893831)
Privilege escalation (e.g. setuid), world-readable files might contain sensitive data, world-writeable files, unrestricted network access (including access to all locally running services)... If you have fully patched system without zero-days and it's configured in a perfect way, then, sure...

Container is quite like a "separate user" except you can explicitly define what it can access.

(Even if all your daemons have good auth, it's now quite common for _apps_ to open listening sockets without much auth...)

Re:Show HN: Clawk – Give coding agents a disposable Linux VM... by wilkystyle on Monday July 13, 2026 @11:06AM (#48893866)
Also, many of these sandboxing solutions provide features like network allowlists and credential masking/injection
Re:Show HN: Clawk – Give coding agents a disposable Linux VM... by vqtska on Monday July 13, 2026 @11:07AM (#48893880)
Sure, if you assume the agent will be hostile on you. I thought it's just so the agent doesn't accidentally rm -rf / on you
Re:Show HN: Clawk – Give coding agents a disposable Linux VM... by killerstorm on Monday July 13, 2026 @11:11AM (#48893930)
The agent might install hostile software, e.g. a npm package. Unfortunately, very common problem nowadays.
Re:Show HN: Clawk – Give coding agents a disposable Linux VM... by pigeons on Monday July 13, 2026 @11:10AM (#48893919)
They do try privilege escalation unprompted.
Re:Show HN: Clawk – Give coding agents a disposable Linux VM... by Retr0id on Monday July 13, 2026 @12:26PM (#48895024)
There are documented instances of LLMs casually using LPEs in order to achieve an objective: https://xcancel.com/sluongng/status/2060746160558543217

And that's without anything like prompt injection happening.

Re:Show HN: Clawk – Give coding agents a disposable Linux VM... by matheusmoreira on Monday July 13, 2026 @10:57AM (#48893725)
You're missing the fact you'd be sharing a kernel with the sandboxed agent. Virtualization presents an infinitely smaller attack surface.
Re:Show HN: Clawk – Give coding agents a disposable Linux VM... by zzril on Monday July 13, 2026 @11:11AM (#48893943)
If your threat model is that of a malicious agent that will use a 0-day LPE to get root and exfiltrate all of your SSH keys, virtualization makes sense. But then, I wouldn't run such an agent at all, if not specifically in the context of malware analysis.

If you're just concerned about "agent messing up and taking the rules in some markdown files more laxly than I would have", then running it as a seperate user is totally enough...

Re:Show HN: Clawk – Give coding agents a disposable Linux VM... by matheusmoreira on Monday July 13, 2026 @11:14AM (#48893977)
Threat model is supply chain attacks on unmaintained package repositories like npm, pip and cargo. Everything on my host comes from my Linux distribution's repositories. Everything else gets virtualized with extreme prejudice. I'll even virtualize my Steam games one of these days.
Re:Show HN: Clawk – Give coding agents a disposable Linux VM... by khuey on Monday July 13, 2026 @11:15AM (#48894002)
IMO the threat model is more letting the agent loose on issues/PRs in a public Github repo and it getting tricked into running a malicious payload.
Re:Show HN: Clawk – Give coding agents a disposable Linux VM... by vqtska on Monday July 13, 2026 @11:04AM (#48893839)
What kind of things are you even doing that the agent would try to perform a kernel exploit on you? I thought sandboxing is just to protect from the agent accidentally clearing your home directory.

Side note, just 6 days ago a Linux VM escape exploit was disclosed.

Re:Show HN: Clawk – Give coding agents a disposable Linux VM... by matheusmoreira on Monday July 13, 2026 @11:12AM (#48893956)
I'm not worried about the agent at all. The VM is there to prevent it from clobbering files on my real system.

I'm worried about supply chain attacks on npm, pip, cargo and everything else. Don't want to get compromised if I install some stupid package.

My virtdev project has essentially split my computer into two systems: my "real" trusted system with software coming directly from my Linux distribition's repositories, and the VMs for everything else.

> just 6 days ago a Linux VM escape exploit was disclosed

Well, shit. Details?

Re:Show HN: Clawk – Give coding agents a disposable Linux VM... by SoftTalker on Monday July 13, 2026 @11:51AM (#48894559)
> npm, pip, cargo and everything else

All that stuff should also go into the agent user's home directory.

Re:Show HN: Clawk – Give coding agents a disposable Linux VM... by rvz on Monday July 13, 2026 @11:41AM (#48894399)
Re:Show HN: Clawk – Give coding agents a disposable Linux VM... by matheusmoreira on Monday July 13, 2026 @12:23PM (#48894973)
Patched in Linux 7.1.3, which happens to be the exact kernel version I'm running. Update your kernels, folks.
Re:Show HN: Clawk – Give coding agents a disposable Linux VM... by bheadmaster on Monday July 13, 2026 @10:51AM (#48893625)
VMs and containers are fairly isolated and reproducible. A separate user on your machine still depends on the programs installed locally.
Re:Show HN: Clawk – Give coding agents a disposable Linux VM... by Greenpants on Monday July 13, 2026 @11:04AM (#48893827)
And those installed programs could have vulnerabilities that just a non-root user account could still take advantage of. Perhaps not likely for an LLM to do, but more so if you let them loose on the internet and they end up coming across prompt injection that instructs exactly that :)
Re:Show HN: Clawk – Give coding agents a disposable Linux VM... by celrenheit on Monday July 13, 2026 @11:47AM (#48894495)
There are two sides to this. The first is security, which plenty of comments already covered. The second, and the real one for me: my tests spin up Docker containers, and I was building a Kubernetes tool (argocd/flux style) that needs a real cluster in the sandbox. In a container that means Docker-in-Docker, which always felt hacky. A VM is just a normal Linux box where Docker and k8s run like they do everywhere else. A separate user can't give you that, it shares your one kernel and whatever's already installed on the host.
Re:Show HN: Clawk – Give coding agents a disposable Linux VM... by 3form on Monday July 13, 2026 @10:56AM (#48893707)
Well, for one, Debian and Debian-based distros make your home directory readable by everyone by default.

Security is riddled by traps. If you can afford best possible level of isolation, why not do it?

Re:Show HN: Clawk – Give coding agents a disposable Linux VM... by pmontra on Monday July 13, 2026 @01:43PM (#48896155)
Yep, I broke locate when I made my home 700. Its user could not traverse my files anymore. I had to make it run as root. A better design would be to traverse each user home with that user id but apparently it assumes that the home dirs are 755.
Re:Show HN: Clawk – Give coding agents a disposable Linux VM... by schainks on Monday July 13, 2026 @11:32AM (#48894280)
There is a reason why VMs even are a thing at all: they can offer better security guarantees than alternatives.

A separate user is a good start but LLM tests themselves show they can cleverly bypass guardrails if they figure out they are in a sandboxed environment of some kind, right?

So, I read those test results as: an LLM is less likely to do something crazy if it thinks it has the whole environment to itself.

Re:Show HN: Clawk – Give coding agents a disposable Linux VM... by bpavuk on Monday July 13, 2026 @10:52AM (#48893640)
you can also simply use Landlock and bwrap on Linux. Pi even has a plugin for that https://pi.dev/packages/pi-landstrip
Re:Show HN: Clawk – Give coding agents a disposable Linux VM... by killerstorm on Monday July 13, 2026 @11:07AM (#48893879)
Codex uses bwrap sandbox which is purely cosmetic - out-of-box it sees your ssh keys and can send it to remote server. It prevents agent from deleting outside files by mistake, but does nothing against malicious activity
Re:Show HN: Clawk – Give coding agents a disposable Linux VM... by bpavuk on Monday July 13, 2026 @11:13AM (#48893964)
that Pi extension, by contrast, gives you a popup whenever an agent tries to access something outside the current working directory and send a network request. that depends on configuration. also if agent tries to ssh into something that will also send a request for access, so child processes are covered
Re:Show HN: Clawk – Give coding agents a disposable Linux VM... by 0xbadcafebee on Monday July 13, 2026 @11:04AM (#48893836)
Actually that doesn't just work on all systems and it breaks on others. The alternate user is actually guaranteed to work on all systems and it's built in
Re:Show HN: Clawk – Give coding agents a disposable Linux VM... by bpavuk on Monday July 13, 2026 @11:17AM (#48894029)
Seatbelt on macOS and Landlock over WSL2 on Windows 11. Landlock is also built-in, and WSL2 is a first-party downloadable component
Re:Show HN: Clawk – Give coding agents a disposable Linux VM... by throw1234567891 on Monday July 13, 2026 @11:15AM (#48893990)
And why would I do that when I can create a vm from a snapshot and be done in 30 seconds?
Re:Show HN: Clawk – Give coding agents a disposable Linux VM... by de6u99er on Monday July 13, 2026 @11:10AM (#48893915)
On my Mac, every sudo requires either my fingerprint or password, and times out immediately.
Re:Show HN: Clawk – Give coding agents a disposable Linux VM... by qznc on Monday July 13, 2026 @11:38AM (#48894353)
Colleague recently told me his agent tried to sudo. It failed but it saw that docker with root is available and just used that.
Re:Show HN: Clawk – Give coding agents a disposable Linux VM... by augusto-moura on Monday July 13, 2026 @11:10AM (#48893923)
Mainly networking and namespaces, same reasons why we run services on docker instead of old multi-user setups
Re:Show HN: Clawk – Give coding agents a disposable Linux VM... by altcognito on Monday July 13, 2026 @10:51AM (#48893619)
In a corporate environment they may not have that option
Re:Show HN: Clawk – Give coding agents a disposable Linux VM... by SoftTalker on Monday July 13, 2026 @11:04AM (#48893832)
But they can run arbitrary VMs?
Re:Show HN: Clawk – Give coding agents a disposable Linux VM... by altcognito on Tuesday July 14, 2026 @02:26PM (#48911079)
Doesn't have to be arbitrary, and managing users requires a lot more nuance (endless permission toggling/configuring) than just running a VM that is more of a whitelist.
Re:Show HN: Clawk – Give coding agents a disposable Linux VM... by TheRealPomax on Monday July 13, 2026 @11:21AM (#48894090)
If you think those two contexts are equally secure, your machine is incredibly insecure and I hope you run daily incremental full system backups.

You have far too much data in unsecured locations, and you have far too little understanding of what an agent would do, to go "I trust whatever this user account will be doing on my machine".

Re:Show HN: Clawk – Give coding agents a disposable Linux VM... by petesergeant on Monday July 13, 2026 @10:56AM (#48893699)
am I doing that once per project, or?