News for hackers. Stuff that matters.
Re:Omarchy: Any User Process Can Escalate to Root by jijijijij on Sunday August 30, 2026 @05:44PM (#49503154)
Does 'chattr +i .bashrc' reliably prevent this? Always seemed sensible to me. Then again, there are a few files getting sourced by the shell and I am not sure I could spontaneously name them all.
Re:Omarchy: Any User Process Can Escalate to Root by mjmas on Sunday August 30, 2026 @06:26PM (#49503451)
The attacker could use `chattr -i .bashrc` with the same privileges before editing your bashrc. A better way would probably be to use `sudo chown 0:0 .bashrc`.

Also you will want to do the same to .profile (because of LD_PRELOAD etc). And also do the same to any directories in your $PATH (~/.local/bin etc)

Re:Omarchy: Any User Process Can Escalate to Root by jijijijij on Monday August 31, 2026 @10:36AM (#49510311)
> The attacker could use `chattr -i .bashrc` with the same privileges before editing your bashrc.

No. Setting flags requires root privileges, sudo was implied. At least on my system.

> Also you will want to do the same to .profile (because of LD_PRELOAD etc).

Yeah, that's what I meant with additional files sourced by the shell. I knew about .profile, but I am not sure that's all of it. I think different distros may be set up differently in this regard. Also I am pretty sure, you can define function overwrites/aliases and execute code in any file getting sourced, it's not just LD_PRELOAD attacks.