News for hackers. Stuff that matters.
Re:Bitwarden Heist – How to Break into Password Vaults Witho... by Pesthuf on Wednesday January 03, 2024 @09:50PM (#38862454)
Is there even a way to opt in to having a secret be accessible only for your process? Like, a way to maybe sign your executable and then use a windows api that then gets "oh. This process is made by the same vendor that created this secret, so it’ll be allowed access".

It’s just ridiculous that the most trivial, unprivileged process can just steal any file and any secret accessible by the user it’s run as. Unless that secret is protected with a key derived from a separate password the user has to put in.

Re:Bitwarden Heist – How to Break into Password Vaults Witho... by o11c on Wednesday January 03, 2024 @10:28PM (#38862635)
I don't think it's possible on Windows.

It's trivial on Unix - just make the program setgid and change the folder permissions to only allow the group. This can be nested, though that requires that the relevant program be aware of the need to walk through several levels, though often a symlink can hide that.

Note that when creating such a directory setup, `chown`ing away the user requires a privileged helper utility. But you need to make such utilities anyway so the user can delete such directories.

***

Important note - most other "solutions" only protect you from apps the opt in to security. A proper solution, like this one, protects from all processes running as user, except the process of note.

Re:Bitwarden Heist – How to Break into Password Vaults Witho... by viraptor on Thursday January 04, 2024 @07:07AM (#38865987)
Or use selinux/apparmor - those have supported app sandboxing without group tricks for a long time.
Re:Bitwarden Heist – How to Break into Password Vaults Witho... by o11c on Thursday January 04, 2024 @12:25PM (#38869710)
Those are useless because they're opt-in, and we can't expect malicious programs to opt in.

There's probably some mandatory mode but since it breaks all sorts of programs nobody can afford to use it.

Re:Bitwarden Heist – How to Break into Password Vaults Witho... by viraptor on Thursday January 04, 2024 @03:06PM (#38871579)
Apparmor is opt-in so it protects from exploration mostly, but selinux can definitely work with the whole system by default. It's not trivial, but you can at least prevent apps from accessing personal information unless explicitly allowed. I've been using it for years without issues. It really requires only a minimal amount of learning and you don't need to turn it off.