Hacker News new | ask | show | jobs
by breakwaterlabs 9 days ago
Just to note, it is not a given that "running as same user" implies "has control over all other user processes". Wayland for instance (famously) blocks that kind of attack.

It is certainly possible to enable authentication methods whereby two processes at the same privilege level cannot grab each other's secrets or tokens. Credential guard is one example, I am sure there are analogous implementations on Linux but I believe namespacing and SELinux attack this from different angles.

    The next idea is to just steal the decrypted key out of RAM.
It is also not a given that a userland process can do this.
1 comments

All of this is true, but would you notice if a malware swapped in a shim into the place where your Bitwarden startup is (user systemd, WM startup, etc), and all that shim did was spawn Bitwarden as a child process? You can generally ptrace a child process.
This is a strong argument for doing software installations using superuser privileges and denying exec from user-writable locations.

Which is, in fact a relatively common posture.

Doesn't that seem problematic on a development system? This would mean you need superuser just to compile and run a program you're working on.
Devs are already some of the more risky users, given their proclivity to download and execute a mountain of unvetted dependencies.

There are a lot of ways of tackling this but the point is dev system security should not resemble the standard user posture.

You are kind of right, but also kind of missing the point.

We have reached a point where developing on your host OS has become irresponsible. Running development inside a container or VM is now mandatory.