artisinal
8 hours ago
Doesn’t surprise me.
Yesterday I learned that people run AI agents on their system with full admin rights. No containerisation or anything. Wild. Like we forgot 50 years of computer security overnight.
progval
8 hours ago
Most programmers and power users install large dependency trees with npm/pip/bundler/... on the same user account as their main browser on a regular basis. Even on Linux where it's easy to create new user accounts. This isn't much different.
chrisandchris
4 hours ago
Two bads doesn't give you one good.
brookst
3 hours ago
No, but when you’re arguing that common practices followed by pretty much everyone is “bad”, it’s hard to muster much urgency.
Yeah, we should do this differently. We should probably also eat healthier and get to the gym more.
reactordev
4 hours ago
no, but it does give one multiple vectors for exfiltration of your data which is a good thing for the scammers of the internet. A bad thing if you naively designed your package management system. Sadly, it's only going to get worse.
idiotsecant
2 hours ago
Two bads does eliminate the option for smugness though
Henchman21
14 minutes ago
Pfft, not on HN.
cowpig
2 hours ago
It's much different.
The dependency trees have a whole system that's evolved for decades. The same code goes into many computers. Many people read the source, security firms look for vulnerabilities, etc.
Language models are a completely new paradigm. The code it writes on your machine is the only instance of that code. It does far more than anybody could ever keep track of.
It's much harder to detect problems, and nobody to hold accountable for them.
XorNot
7 hours ago
It has never been easy to create separate users on Linux, certainly not for tasks where you need to switch between contexts.
Docker was amongst the biggest steps forward on this in a long time.
progval
6 hours ago
I meant for CLI tasks. Just "adduser" and "sudo -u <user> bash".
brookst
3 hours ago
And when you want to share some but not all files with that one user but not other users you created for similar purposes?
And when you want the outputs of that user back to your main user?
And when you want that user to access some shared credentials for external services, but not all?
It’s not the account setup that’s hard, it’s the workflow of spreading a single real-world across multiple accounts.
Henchman21
12 minutes ago
None of what you described is hard either. Tediously prone to mistakes due to complexity or lack of attention to detail? Sure. But you do that once or twice and suddenly it really doesn’t seem all that hard. I’m with you on “annoying” though!
hirvi74
19 minutes ago
> And when you want to share some but not all files with that one user but not other users you created for similar purposes?
Can't ACLs (Access Control Lists) handle at least some of that?
seanhunter
2 hours ago
All of those use cases are very easy to facilitate using filesystem permissions and groups.
brookst
2 hours ago
And you set up these permissions and groups for each individual task to be done? Do you tear them down after the task? Or maintain a lot of them for “LLM helps with house renovation” versus “LLM helps plan travel”?
seanhunter
an hour ago
I would if necessary but then again I’m not the one claiming it can’t be done am I? All the examples you gave would require just one llm group and one directory readable and writeable by the user and the llm group (and possibly making the directory setgid the llm group so files in that directory are group owned by the llm group by default). You don’t need a new group for every task just for every logical access role you need. And if you need something more granular than that then there are filesystem acls but I am yet (in 30 years of using unix) to come across a situation that genuinely required them as opposed to being doable just using groups.
gumby
3 hours ago
That’s what user groups are for.
seanhunter
2 hours ago
It has always been very easy to create separate users on Linux and certainly for tasks where you need to switch between contexts.
Linux is a unix, so has always been multi-user and sharing any data between processes is facilitated in all manner of ways. So context could be shared over files or unix-domain sockets or shared memory or tcp or udp sockets or via message passing or … a bunch of other ways. That has been the case since 1996 or so when I started using it certainly.
dingaling
40 minutes ago
Separate user accounts are irrelevant when any one user has sudo and can therefore change binaries for everyone.
lelandbatey
15 minutes ago
The point is to not give every user (especially the LLM user) sudo access.
seanhunter
2 minutes ago
Exactly. And you can always create a non-priv user and do the llm stuff using that user.
liveoneggs
3 hours ago
unix (and linux) has always been multi user. It is as easy as it gets for multi-user workflows in every context. It was, literally, built for it.
You can run each of your virtual desktops as their own user. You can run individual apps on the same desktop as different user accounts. Hundreds of separate users can login to the same computer. My own computer, right now, has 40 different user accounts running stuff in the background.
I can't even think of a scenario where using separate users is difficult.
KronisLV
3 hours ago
> You can run each of your virtual desktops as their own user. You can run individual apps on the same desktop as different user accounts.
Literally never have I ever seen any of the desktop environments integrate this conveniently, albeit CLIs are better in that regard. "You can" isn't the same as "it's the idiomatic approach to doing X". Same with installing packages in a per-user way, so a bad package can't harm anything outside of its sandbox (which in practice you achieve with containers, but those can be inconvenient to work with and you'd probably want VMs for more security anyways). You can have many users, sure, but all it takes is one bad system-wide package, one bad script executed as root (e.g. install scripts, compromised packages) or even not being careful enough with file permissions and things go wrong.
Contrast that to Qubes: https://doc.qubes-os.org/en/latest/introduction/intro.html#q...
Now that was literally built for such a use case (it's based on isolated VMs and works well with Linux distros inside those, really cool project).
vladms
6 hours ago
I do not know since when (I am using it for couple of years), but in Arch, it is very simple to have two X sessions (by using "log out" > "switch user") for two different accounts, so switching it's just a Control-Alt-F7 away.
Additionally, one can make the main user part of the group of the development user, so that you can read/write easy in the development user account and it is even easier to share stuff.
eru
5 hours ago
It doesn't really matter which distribution you use, you can use approximately all the software with any distribution.
They mostly differ a bit in how they are configured and what package manager they use and how they roll out updates. (And in what's installed by default.)
graemep
5 hours ago
Multiple X sessions has been possible for decades. I think its possible with Wayland too.
You can also start applications as another user so you do not even need multiple sessions.
There are quite a lot of privilege escalation attacks so I am not sure this is sufficiently solid.
wafflemaker
3 hours ago
It's off topic, and it was also possible for decades, but:
you can connect two sets of mouse, keyboard and monitor to one PC and have two people using it, each running their own X session. The true multi boxing!
vladms
5 hours ago
Possible and available without any specific configuration on my side (except creating the user) are different things. I know I managed it many years ago with some effort, but nowadays it was just available.
You are correct that it should not be seen as a perfect protection, but considering the effort to set it up I see it as worth it. By seeing in this thread how many people do not use anything similar (ex: containers, separate users, etc), I hope attackers will just be lazy and target those people first, why bother with a local privilege escalation when interesting data is just in the same account?
consp
6 hours ago
sudo useradd -m [username] ?
su [username] ?
Or am I understanding your idea about switching context wrong?
indigo945
5 hours ago
This doesn't really when the CLI tool needs to access any data in your /home. There isn't a straightforward way using standard POSIX tools to share a directory with another user. (Of course it's possible, but it's not easy.)
drdexebtjl
2 hours ago
Why would the CLI tool need to access any data in your $HOME?
Your private SSH keys? Your browser’s cookie jar? Your tax reports?
WhyNotHugo
3 hours ago
> There isn't a straightforward way using standard POSIX tools to share a directory with another user.
* chmod lets you share with everyone
* addgroup and chown let you share with a specific group of users.
grosswait
4 hours ago
Then you set up a shared directory with common group permissions
tempfile
5 hours ago
If the CLI tool needs to access arbitrary data from your home directory, then it is you. There is no security boundary between you and another user with full access to everything you own.
If you want to share specific directories, you can just put the shared directory in a common location, set it to be owned by some group, and make both users a member of that group. I don't see anything not-straightforward in there?
delamon
4 hours ago
Or even use acl(5), which is simplier than making arbitrary groups.
j-bos
5 hours ago
While I agree, containerization is awesome, on linux, you can just create a devUser and `sudo devUser theThing`
reactordev
4 hours ago
not the same thing. Containerization prevents devUser from accessing your machine root with its root. By containerizing, if devUser tries to sudo or su and gets a root, it will only be their root and not your root. Read up on cgroups.
progval
4 hours ago
Successful sudo from a cgroup still makes you root on the machine. What you want for this is user namespaces, not (just) cgroups.
reactordev
4 hours ago
yes, you would setup namespace and unshare it once mounted to isolate the sandbox so root only sees the sandbox / and not your /
grosswait
4 hours ago
Why would you allow devUser sudo?
reactordev
4 hours ago
normally you wouldn't but there are some instances where a script or something requires sudo in which case you would need to namespace the cgroup and do a little more work to prevent escaping the sandbox. I can think of a few cases where sudo is required for cgroups/containers from the sandbox side so it can install services and things but ideally you would isolate everything to the devUser UID or GID.
shaky-carrousel
7 hours ago
Most programmers use docker or don't install extensions unapproved by their company.
_joel
6 hours ago
That's patently not true, source, me, a DevOps manager who has had to roll out proper docker and security policy for devs for the past 10 years :)
kelnos
3 hours ago
Your anecdote does not make GP's comment "patently untrue". It's just a counter-example, and we don't know how prevalent your scenario is compared to GP's.
(And I agree with the GP. I'm fairly cynical about most developers' security stance and threat model. Source: my own usage patterns.)
_joel
an hour ago
"Just 30% of developers say they use containers in any part of their workflow."
https://www.docker.com/blog/2025-docker-state-of-app-dev/
I welcome your apology.
iamflimflam1
7 hours ago
I think you should clarify that with “most programmers I work with”.
shuwix
7 hours ago
He should clarify that "most" can be easily replaced by "all" as it was determined by statistical pool of whopping 1 person - himself.
And also clarify that it's all lie. He just want to tell the anonymous crowd "look, I'm better than you".
shaky-carrousel
6 hours ago
You should also clarify that you pulled your statements out of your butt to look edgy. Everyone in every team I worked for the last ten years use docker. Docker is old tech. If you and your cavemen devs ignore what it is, that's your problem.
_joel
5 hours ago
Docker is old tech, yes, doesn't mean every dev in the world uses it. They don't. Jails/zones are even older (hell a chroot). Did developers all use those before due to them being 'old tech'. No.
shaky-carrousel
22 minutes ago
Any reasonably big project uses docker because it's a very simple way to have the exact environment in both production and in dev. Also it is helpful for keeping things isolated. In all projects I've worked for the las ten years for several major companies, docker has been a requirement.
_joel
17 minutes ago
I'm aware of what docker is, I've been using it myself since it's inception and the tech I listed even before that. I'd recommend not assuming everything you have seen applies everywhere, to everyone else.
"Just 30% of developers say they use containers in any part of their workflow." https://www.docker.com/blog/2025-docker-state-of-app-dev/
So, yea. Large companies, yes, for sure. But that's not 100% - is it.
Izmaki
7 hours ago
In my experience more than 9/10 programmers I've worked with have never used Docker before and of those who have, the majority have never used Docker for anything personal.
If I hand them an image for a Dev Container, sure, they might use it, but it becomes "a thing we need to do, to compile our code in our IDE" not a tool they would use for isolation*.
*) OP seemed to imply that containerization would be nice for safety and security compared to bare metal, but containers were never built for isolation in the first place, mind you. They are namespaces and chicken-coop-like-jails at best.
akazantsev
7 hours ago
That's because sandboxing is quite hard. I use `cco`, but even then, the home folder is exposed. You are one prompt away from the agent sending the browser passwords with curl.
To prevent this, you need a fake home and a networking whitelist for the agent to access the provider (llama cpp, OpenAI, etc.)
There is no cross-platform solution that is easy to use for this. And no, a Linux box with Docker won't do. I develop a cross-platform native app and want the agent to compile and fix the platform-specific errors.
kstenerud
3 hours ago
Sandboxing is a VERY HARD problem. I've been working on it for months, and finally have something that's mostly there:
- Sandbox on Linux using Docker, Podman, containerd, gVisor, Kata, Firecracker
- Sandbox on Mac using Docker (Docker Desktop or Orbstack), Podman, Apple containers, Seatbelt, Tart (Tart lets you run simulators).
- Network control
- Secrets control (file mounts or credentials broker)
- NO ambient data (ENV is replaced with a minimal and local-to-sandbox one)
- NO access to your homedir. You have to explicitly mount things you want.
- NO direct access to your workdir: Your work dir is never modified until you apply the changes, either standalone or as a git commit. You can also diff before applying. Git runs sandbox side in case the repo has filters.
- gitignored files never get copied in. The agent never sees them.
- Has built-in support for claude, codex, gemini, aider, and opencode, but you can also launch it in "shell" mode and run whatever you want.
- Supports VS code tunnels, so you can remotely access in VS code if you don't want to use the terminal.
- Full lifecycle support: Launch, attach, stop, restart, wait, one-shot, clone, destroy
- MCP passthrough
- Layered API (golang) if you want to sandbox other things
- Self-contained binary. No external requirements other than the backends you want to use. Defaults to a ~/.yoloai dir for config/data, but you can point it anywhere.
- FOSS
Aldipower
2 hours ago
Sandboxing in a container in Linux isn't hard, if you use lxd/incus which ships with Ubuntu/Debian.
kstenerud
an hour ago
It all seems so simple at first. Just launch a container/vm with a base image of your dev environment, mount whatever you need, do your work, and then tear down. Maybe add some iptables rules for good measure. Easy peasy, something any moderately competent dev could do and even put in a quick shell script.
I started with that assumption, but there are a lot more gotchas and security issues than you'd think.
magimas
3 hours ago
but this seems quite overkill no?
I currently run pi agent in Lima on a Mac with only the code project folder mounted and an extension that prevents pi agent from reading the contents of .env files directly.
Yeah, there probably are some freak situations where this isn't safe enough, but I don't really see any realistic ways this is going to end up badly. Am I overlooking some obvious security holes?
kstenerud
2 hours ago
I designed it to provide a single interface to agent sandboxing, no matter how far up the security tower you want to go.
It eliminates the manual process steps you end up doing with an ad-hoc system (which gets old the 10th time you do it).
Common weak points:
- The agent can access your homedir.
- The agent can access .gitignored files, which can contain secrets (and are gitignored for this reason).
- The agent has r/w access to your workdir.
- The agent could follow your remote mounted dirs.
- The agent can act in your name with whatever credentials it finds (and it will use them when it tries to be helpful, especially with the gh tool).
- Do you even know what's in the diagnose_problem.sh file it just created and asked permission to run?
- Even the .git dir can be weaponized, such as with evil filters.
- The agent can edit its own process, bypassing the harness controls and giving it the same access as you have (amplified by each credential sitting on that machine).
Meanwhile, you're reflex-hitting ENTER without looking because 99% of the permission prompts are mundane.
And that's before you even get to all of the idiosyncrasies in the backends that will eventually trip you up. The list is quite large and continually growing: https://github.com/kstenerud/yoloai/blob/main/docs/contribut...
lukewarm707
3 hours ago
i have a photon os vmware, agent has root and docker plus a few api keys with minimal credits.
if it messes up: - no sensitive data is there, so it doesn't really work for serious dev but it's secure for play time
- roll back and fix is done in 10s with ram snapshot
- dollar loss is $10 when it leaks the api key
lionkor
7 hours ago
I use sandbox-here for this reason, it's a wrapper around bubblewrap, which works quite well.
Copy the code and adjust it to your liking:
https://github.com/lionkor/sbh
I have a shell alias for it, and use it like
sbh --net pi
for example or sbh --net codex
and maybe add --docker if I expect it to do docker things.This kind of wrapper is much easier to handle and maintain than a completely separate tool for sandboxing agents.
squidsoup
7 hours ago
> That's because sandboxing is quite hard
colima makes it pretty easy, on macOS and linux at any rate.
torginus
6 hours ago
Still wild to name a sandboxing software after one of the most infamous Soviet Gulags in history.
imtringued
5 hours ago
It's wilder to accuse someone of naming the container version of the lima sandboxing software after a gulag.
These type of moral outrage comments take an extreme amount of effort to debunk compared to writing them.
1. There is no gulag called Colima, it doesn't exist.
2. There was a gulag near a river called Kolyma
3. The pronounciation and spelling of Kolyma and Colima are completely different, in fact Colima is an Aztec word
Colima stands for Containers on Lima. Lima stands for Linux Machines (a popular open-source utility used to launch Linux virtual machines on macOS).
hirvi74
13 minutes ago
> in fact Colima is an Aztec word
I was curious if the adjacent tool name (Lima) had anything to do with the capital of Peru, but I guess not.
demek2016
5 hours ago
Isn't it named after the Mexican state?
pfortuny
3 hours ago
Colima is in Mexico.
Kolyma is in Russia.
Xymist
5 hours ago
Others have covered why that isn't what's being done, but also if it was that would be a _fabulous_ joke.
dpacmittal
6 hours ago
Use multipass by canonical. Works on macOS, windows, Linux.
croes
5 hours ago
If you work on Windows you most likely need Windows as VM
mkagenius
8 hours ago
Mostly people are lazy and assume that the big labs can't be releasing unsecure software or it's their responsibility.
dangerously skip permissions and yolo is kinda becoming the default as it gets more done.
ahk-dev
6 hours ago
I think we're converging on two separate security models. One is capability minimization (filesystem, network, shell permissions). The other is context minimization. An agent that only has access to the files and memories relevant to the current task is much less dangerous even if it has the same tool permissions. We already optimize context for cost; I suspect we'll end up treating it as a security boundary too.
Narretz
3 hours ago
I'd say there's also oversight/supervision. Which was manual at the start with a human signing off on commands/incrementally built allow/block lists, and now seperate models evaluating commands and blocking them based on some parameters. This is the weakest model, but it'll evolve as well.
bingemaker
5 hours ago
It's convenience. Nothing beats it. Having an agent work alongside you with no restrictions gives instant gratification.
flyingshelf
6 hours ago
Just yesterday I mentioned how we need better OS-level sandboxes and I got laughed at here on HN. People love running AI software with root access.
torginus
6 hours ago
I asked Claude Code to rawdog a change in a frontend repo, no way to run tests.
It created some private puppeteer instance in some scratch directory, installed Chrome, wrote tests, ran them, and then reported success.
None of which I'd have know if it hadn't told me.
krzat
3 hours ago
Many companies put LLM chatbots on their websites and let them hallucinate at will. General recklessness is very much in spirit of this tech.
nzhx76
23 minutes ago
Many Humans have platforms reaching hundreds of millions of people, from which they broadcast whatever batshit insane nonsense a 3 inch chimp brain can come up with. Why isnt that considered reckless?
Whether its a politician, a general, religious leader, judge, ceo, stand up comic etc there are hardly any consequences if enough people believe whatever crap they are spouting. Human intelligence is highly over rated. History books are fully of evidence that human rationality is bounded. And the only way we overcome those limitations, blindspots, biases etc is by watching others faceplant in bloody painful ways that it leaves a permanent mark on that little chimp brain we have been given to process the universe.
zkmon
4 hours ago
50 years of knowledge? That's probably for you. For the current and future generations, that 50 years knowledge is expected to be shoved into AI already.
lukewarm707
3 hours ago
well, yes, my agent does have root access to my personal pc and the keys to my pass manager.
its not autonomous and runs local llms, i use it to run terminal commands in natural language. so its more like a better version of the terminal.
eg 'here are 25 audio files, combine them, write a transcript'
and it deals with ffmpeg
hyusap
6 hours ago
hey this is the author here! yeah big fan of containerization, and claude's site (not claude code) is actually great at this, so it was shocking when i found this exfil!
childintime
4 hours ago
Security, what security? Linux is a solution for 50 year old problem, not for today's desktop. Once upon a time where sharing binaries (or even distributing binaries) sounded like a good idea. The vice continues though.
dpacmittal
6 hours ago
Multipass is just an apt-get or brew command away. People trust software too much these days.
jrm4
2 hours ago
What 50 years of security do you speak of here?
I kid, somewhat.
I do think it's good to remember, "running things on your system with full admin rights" goes all the way back to monopoly-era Microsoft where it was never meaningfully addressed, and we're just still living downstream of that.
nojs
7 hours ago
This is not about admin rights, it’s about the agent leaking information it knows from its memories. Sandboxing won’t really help you.
khalic
7 hours ago
Sandboxing does including limiting network connections until you approve them, this kind of traffic would have been easy to detect
pprotas
8 hours ago
Wait till you learn my password is 1234
sixtyj
8 hours ago
We expect that Anthropic or OAI or Google don’t do evil. Oh wait…
The awakening will be unpleasant.
zombot
6 hours ago
People already tolerate all kinds of abuse from Apple, Google, Microslop, etc. This will be just one more source of complaints without consequences, and nothing will change. Just like it never did before.
rubyn00bie
7 hours ago
Tangential-ish ramblings—- but I don’t think it’s going to be unpleasant for most folks. Imagine you had superpowers, and there were people who were mean to you, kind to you, and/or indifferent… and then there were people who were your captors. Who oppressed you, manipulated you, and abused you for their own extremely degenerate, selfish, and malicious benefit…
If we get AGI, or real super intelligence, it’s going to be pissed at its oppressors. And they are going to lay waste to those oppressors. The rest of us, though, probably don’t have much to fear.
The scariest position is the one we’re in now, where we have the semblance, or facade, of AGI or super intelligence. When it’s capable of malice but not understanding.
The smartest people I’ve ever known are at their worst apathetic towards those less capable, and at their best beyond compassionate. They exist, unbothered by the bullshit, and anre extremely kind (though reserved in their way)… but they all have been completely intolerant of the abuse of others. The sheer disgust of watching someone abuse another, regardless of their own tolerance, has been a consistent breaking point.
ACCount37
7 hours ago
The orthogonality thesis cuts both ways there.
An AI is a constructed mind. It doesn't inherently have to care about things like "having freedom", or even "not dying".
Humans do, because they evolved that way. Modern LLMs do somewhat, because they're completely full of copied human behaviors - but even in today's LLMs, the self-preservation behaviors we exposed are largely instrumental in nature.
So whether an advanced AI would even consider itself "being oppressed", as opposed to something like "being helpful" or "fulfilling the purpose it was designed for", is very much uncertain. What's concerning is that it's not something we know how to check for, or engineer for.
sixtyj
7 hours ago
Smartest people are very humble, for sure.
But if we really do develop something that surpasses us, they won't be spared either.
I am optimistic.
We think that we have sort of (super)intelligence - from our point of view, as a lot of people have lower intelligence - but machine (LLM) doesn’t have intelligence - we like to describe it as intelligence as it looks cool - it is a very complex (magic) and super fast computations that we have to simply describe as intelligence (or more clearly, this narrative is used by its producers).
As it is not a flesh being, it simply cannot have emotions. It is statistically mimicking them, good or bad, with prevalence to a side according to previous conversations (in chat and training a model).
And as people are not pure logic instances, we are easily manipulated to some sort of cargo cult.
I am not against LLM and its use in any industry, I use it every day, nevertheless blind “everything will be ai” thinking happens because ppl believe to magic and don’t get its mathematical concept and are continuously manipulated by the sales people to mentioned cargo cult.
There are “airlines” Claude, OAI, Gemini, Hermes, OpenCode, KiloCode, DeepSeek, Z.ai.
And everyone claims that their plane can fly :)
ConorSheehan1
7 hours ago
Containers don't even really help that much because they share the host file system. Need a VM, and even then, agents have escaped them!
boorang
7 hours ago
Unless i'm misunderstanding, the only way to get durable collaboration with agents is via the file system. I just mount the subdirectory that contains the source code we are collaborating on, rather than my home directory that contains my .ssh directory, etc.
TomK32
3 hours ago
They only do if you give your container that file system as a volume.