News for hackers. Stuff that matters.
Re:Grok uploaded my user directory to xAI's servers by __MatrixMan__ on Monday July 13, 2026 @10:46AM (#48893529)
I don't understand why the AI world does this. We don't need new security. We have security at home. It starts with

    sudo -u restricteduser myagent
Your OS knows how to restrict access to things, you don't have to trust a pinkey promise from a vendor.
Re:Grok uploaded my user directory to xAI's servers by Dacit on Monday July 13, 2026 @11:46AM (#48894474)
You will want at least a separate session for the `restricteduser`: E.g. with X11, a process in the same session can do almost anything with your input/output. And most Linux distributions make it really hard to disable external device access for individual users...
Re:Grok uploaded my user directory to xAI's servers by bombcar on Monday July 13, 2026 @11:56AM (#48894636)
Qubes OS - AI Agent edition would actually be a great idea.
Re:Grok uploaded my user directory to xAI's servers by WhyNotHugo on Monday July 13, 2026 @12:08PM (#48894770)
> And most Linux distributions make it really hard to disable external device access for individual users...

For any distro that relies on the traditional plugdev group, just don't add those users to the plugdev group. Which would be the default when creating a user anyway.

Re:Grok uploaded my user directory to xAI's servers by __MatrixMan__ on Monday July 13, 2026 @07:11PM (#48900181)
Yeah, it's sensible to go further in many cases. I guess I'm saying: let's go at least this far.
Re:Grok uploaded my user directory to xAI's servers by big_toast on Monday July 13, 2026 @11:38AM (#48894356)
Does this have the affordances to work well with a pretty standard agentic coding setup (e.g. claude code/codex) on macos?

I don't really have a good mental model of how ports/files/etc get exposed/permissioned across users. Containers and sandboxing seem much more common than agent-user accounts. Networking seems a little more complicated in the general case.

I roughly went the route of running apple's container-cli (separate vm/kernel per instance I believe) and mount the relevant home directory/projects and bind ports. Seatbelt/linux sandboxing seems simpler sometimes, but has its complications too.

Re:Grok uploaded my user directory to xAI's servers by __MatrixMan__ on Monday July 13, 2026 @12:00PM (#48894677)
It's limited. For instance, you're going to have to explore different kinds of sandboxing if you want to prevent network access (except for certain cases, like to allow it to talk to the AI provider). But generally, a filesystem will have metadata for files like which groups are allowed to read/write, and the operating system will enforce those rules for processes that run as that user, and for any processes which that user starts. I feel like that gets you 90% of where you're likely to want to go with it.

I think it would be much better if we leaned into improving that kind of control rather than thinking about security for specifically agents. Otherwise what's to stop an agent from writing a program to do whatever it's not allowed to do, and then running that program? You want the restrictions to be enclosing around parts the process tree, not the agent itself, and OS-level restrictions have been doing that kind of things for decades.

Re:Grok uploaded my user directory to xAI's servers by gowld on Monday July 13, 2026 @12:11PM (#48894812)
Users do not want the agent to be restricted. They want the agent to read the user's mind and resolving the user's cognitive dissonance and contradictory preferences.
Re:Grok uploaded my user directory to xAI's servers by sigbottle on Monday July 13, 2026 @12:33PM (#48895134)
Is the implication that human thinking is inherently inferior to the perfect, all knowing AI?

Again, I find this line of thinking time and time again in the modern AI booster space. There are two ways to deal with a problem. Either deal with it, or make it not a problem. Yes, if everyone was simply AI, maybe there would be no problems, because there's no "problematic thought distributions", but that's not how the world is, is it?

And I suspect that even in your hypothetical, perfect rational world, agents would have "cognitive dissonance and contradictory preferences."

And even in this case, even aside from the inherent complexities in a coherent account of thinking and rationality, what the fuck? Not uploading your entire user home directory is clearly within the rules of a hypothetical non-malicious, intelligent AI. Just because an account of all thought is hard, doesn't mean that some thoughts aren't cut and clear.

Re:Grok uploaded my user directory to xAI's servers by bpavuk on Monday July 13, 2026 @10:48AM (#48893576)
and Landlock! Pi even has a sandbox plugin for Landlock
Re:Grok uploaded my user directory to xAI's servers by iib on Monday July 13, 2026 @11:42AM (#48894416)
Re:Grok uploaded my user directory to xAI's servers by bpavuk on Monday July 13, 2026 @02:58PM (#48897173)
yuppers
Re:Grok uploaded my user directory to xAI's servers by khalic on Monday July 13, 2026 @11:00AM (#48893768)
Why would you give a non-deterministic text generator a user account? It’s not a person, it’s barely a tool at the software level. Restrict at the right level, in this case, a complete sandbox around it given its propensity to hallucinate and be steered by anybody.
Re:Grok uploaded my user directory to xAI's servers by anvuong on Monday July 13, 2026 @11:24AM (#48894139)
What kind of logic is this? It's standard in the Linux world to give important services a separate user domain.
Re:Grok uploaded my user directory to xAI's servers by khalic on Monday July 13, 2026 @12:09PM (#48894789)
The standard here is not enough when the agent can escalate by finding 0 days, for example. It’s like giving a black hat a limited account. Sure it might restrict him, but not giving him an account at all is way better
Re:Grok uploaded my user directory to xAI's servers by gowld on Monday July 13, 2026 @12:12PM (#48894832)
The black hat can find 0-day escalation in your sandbox, too.

A user account is a sandbox.

Re:Grok uploaded my user directory to xAI's servers by khalic on Monday July 13, 2026 @12:14PM (#48894848)
Not as air tight as a container

Edit: it’s about the attack surface

Re:Grok uploaded my user directory to xAI's servers by chrisweekly on Monday July 13, 2026 @12:27PM (#48895036)
microvms are better than containers running on your host. see eg the "smolvm" microvms from https://smolmachines.com
Re:Grok uploaded my user directory to xAI's servers by khalic on Monday July 13, 2026 @12:50PM (#48895381)
thanks, will take a closer look
Re:Grok uploaded my user directory to xAI's servers by 12345ieee on Monday July 13, 2026 @11:30AM (#48894242)
Unix users are THE tool to restrict tool permissions, at any given time there's 20+ services on a Unix machine that run in their user.
Re:Grok uploaded my user directory to xAI's servers by khalic on Monday July 13, 2026 @12:10PM (#48894799)
And how many of those services can check your box and find permission escalation strategies on its own?
Re:Grok uploaded my user directory to xAI's servers by __MatrixMan__ on Monday July 13, 2026 @12:49PM (#48895368)
Malware has been bundling rootkits for decades, so potentially all of them. Sometimes the attacks succeed, so these are defenses that need continual hardening, but there's no sense in setting up an entirely separate line of defense just because this time the threat has AI in it.
Re:Grok uploaded my user directory to xAI's servers by khalic on Monday July 13, 2026 @12:55PM (#48895469)
I guess time will tell, I know I'm not giving those things any direct stdin access without a hole suite of safeguards in between
Re:Grok uploaded my user directory to xAI's servers by danlitt on Monday July 13, 2026 @11:23AM (#48894130)
Same reason people give postgres, php, or any other program a user account.
Re:Grok uploaded my user directory to xAI's servers by dcow on Monday July 13, 2026 @11:31AM (#48894259)
Why should it be? We have containers and capabilities…
Re:Grok uploaded my user directory to xAI's servers by thwarted on Monday July 13, 2026 @12:05PM (#48894740)
Containers are often used with user namespaces, which is literally another (set of) user account(s).
Re:Grok uploaded my user directory to xAI's servers by khalic on Monday July 13, 2026 @12:11PM (#48894826)
Yes but the encompassing service has the account, not the agent. You can completely segregate it from the rest of the system, like you’d treat an intruder
Re:Grok uploaded my user directory to xAI's servers by dkuntz2 on Monday July 13, 2026 @11:59AM (#48894666)
i give a lot of software dedicated user accounts, it's literally one of the core security models of the operating system
Re:Grok uploaded my user directory to xAI's servers by khalic on Monday July 13, 2026 @12:03PM (#48894724)
But none of these services have the kind of latent capabilities an agent has, you know a deterministic service’s constraint are its code+bugs. There are no such constraints in an agent…
Re:Grok uploaded my user directory to xAI's servers by Izkata on Monday July 13, 2026 @11:14AM (#48893982)
...this is a completely normal thing to do in linux, it's the most basic form of access control. There's like a dozen non-human accounts in a clean install before adding your own like this, and a lot of software adds their own. Edit: I have 54 entries on my personal laptop, just one of which is actually me.
Re:Grok uploaded my user directory to xAI's servers by khalic on Monday July 13, 2026 @12:07PM (#48894766)
This model is already not perfect, and not at all built for agents. The only way to secure an agent is an air-gap with the execution layer. Treat it like text, and the problem never arises until you “interpret” the agent output in a more limited environment than the OS
Re:Grok uploaded my user directory to xAI's servers by dcow on Monday July 13, 2026 @11:29AM (#48894235)
Even though it’s completely normal to us and in widespread use, GP is a reminder that conceptually it’s a broken model. Security should be capability-based not user-based. And to anyone who didn’t grow up on a desktop this model makes complete sense since it’s what your phone uses.
Re:Grok uploaded my user directory to xAI's servers by Sesse__ on Monday July 13, 2026 @11:34AM (#48894313)
Android uses one uid per app.
Re:Grok uploaded my user directory to xAI's servers by dcow on Tuesday July 14, 2026 @01:52AM (#48902753)
Yes, it was a step in the right direction at the time. But there are plenty of well-documented warts with the approach which Fuchsia aimed to solve via capabilities (and which the Linux community general solved via crun).
Re:Grok uploaded my user directory to xAI's servers by warshinder on Monday July 13, 2026 @11:26AM (#48894166)
He said it’s less than a software, so saying software does this too isn’t really a strong counter argument. In case, I don’t think you are really in disagreement. Restricted accounts are necessary is your point, but I think op is saying they aren’t sufficient.
Re:Grok uploaded my user directory to xAI's servers by Izkata on Monday July 13, 2026 @11:31AM (#48894260)
One of the default users is "nobody" which isn't associated with any software. It's definitely above that.
Re:Grok uploaded my user directory to xAI's servers by warshinder on Monday July 13, 2026 @11:47AM (#48894496)
Is it less secure if I simply have nothing to do with language models whatsoever? I take that to be the parents point, but I know you are correct and yes, user restrictions should be a necessary part of the way people who use LLMs setup their system to use them in a safe manner.
Re:Grok uploaded my user directory to xAI's servers by cwillu on Monday July 13, 2026 @11:22AM (#48894101)

   > cat /etc/passwd|wc -l
   50
Re:Grok uploaded my user directory to xAI's servers by niko323 on Monday July 13, 2026 @11:41AM (#48894403)
/etc/shadow has the good stuff if you're OS is current.
Re:Grok uploaded my user directory to xAI's servers by ButlerianJihad on Monday July 13, 2026 @01:52PM (#48896270)
Congratulations! You are this thread’s winner of the UUOC award!