Wait. Do people run agents as their own user? Does nobody setup a dedicated user/group with a very specific set of permissions?
It's not even hard to do! *NIX systems are literally designed to handle stuff like this easily.
User level separation, while it has improved over the years, was not originally designed assuming unprivileged users were malicious, and even today privilege escalation bugs regularly pop up. If you are going to use it as a sandboxing mechanism, you should at least ensure the sandboxed user doesn't have access to any suid binaries as these regularly have exploits found in them.
Re:Agent-C: a 4KB AI agent
by jvanderbot on Monday August 25, 2025 @09:52AM
(#45013845)
No I'm fairly certain almost nobody does that.
Re:Agent-C: a 4KB AI agent
by mathiaspoint on Monday August 25, 2025 @10:46AM
(#45014453)
I run mine as it's own user and self host the model. Unlike most services the ai service user has a login shell and home directory.
Re:Agent-C: a 4KB AI agent
by MadnessASAP on Monday August 25, 2025 @04:08PM
(#45018387)
What's its preferred shell and window manager?
Re:Agent-C: a 4KB AI agent
by mathiaspoint on Monday August 25, 2025 @04:21PM
(#45018528)
It just uses bash. I haven't been giving it an X session yet although I probably will start at some point since the newer models can handle it.
Re:Agent-C: a 4KB AI agent
by MadnessASAP on Monday August 25, 2025 @06:08PM
(#45019701)
Thank you for a serious answer to a facetious question.
Re:Agent-C: a 4KB AI agent
by mansilladev on Monday August 25, 2025 @11:57AM
(#45015245)
An agent can be designed to run with permissions of a system/bot account; however, others can be designed to execute things under user context, using OAuth to get user consent.
VMs are common, consider going that additional step. Once you have one agent, it's natural to want two agents, and now they will interfere with each other if they start running servers that bind to ports. One agent per VM solves this and a lot of other issues.
That seems hardly sufficient. You are still exposing a massive attack surface. I run within a rootless docker container.
Same with the browser agents, they are used in a browser where you‘re also logged into your usual accounts. Means in theory they can simply mail everyone something funny, do some banking (probably not but could work for some banks) or something else. Endless possibilities
I'd have to follow some kind of tutorial, or more realistically, ask the AI to set it up for me ;)
Re:Agent-C: a 4KB AI agent
by johnQdeveloper on Monday August 25, 2025 @10:32AM
(#45014286)
I only run AI within docker containers so kinda?
Re:Agent-C: a 4KB AI agent
by mark_l_watson on Monday August 25, 2025 @10:02AM
(#45013957)
I was just reading the code: it looks like minor tweaks to utils.c and this should run nicely with local models using Ollama or LM Studio. That should be safe enough.
Off topic, sorry, but to me the real security nightmare is the new ‘AI web browsers’ - I can’t imagine using one of those because of prompt injection attacks.
A local model will be just as happy to provide a shell command that trashes your local disks as any remote one.
Re:Agent-C: a 4KB AI agent
by kordlessagain on Monday August 25, 2025 @10:13AM
(#45014081)
> I love fetching shell commands from endpoints I don't control, and executing them blindly.
Your link suggests running them in Docker, so what's the problem?
See also https://github.com/timofurrer/russian-roulette
It's not your computer any more, it's theirs; you gave it to them willingly.