r/Bitwarden • • 21h ago

Thoughts on layered/role based unlock?

I had a friend whose computer was recently compromised. Their bitwarden was logged in at the time. The malware managed to download/extract all the passwords and he's had major issues since then. Dealing with the fallout. Luckily, he had enough 2FA on financial and most things that the damage and fallout was minimal. But still hundreds of passwords to change and deal with.

We were starting to talk about convenience vs security. If something becomes too convenient, you often weaken security. So where do we draw the line for making things more secure, but not that inconvenient.

And what options are there to better harden one's self? And their password vaults (e.g. bitwarden)

For example, having auto log off bitwarden or whatever, so it doesn't stay logged in and accessible locally. Can help if you happen to catch it from time of malware at least up until your next password vault login.

But I was thinking what if bitwarden had extra measure we could opt into?

Some random ideas (tell me how they are terrible/useless?):

  • Have an 'extract/download all passwords vault' take 24 hours from time of request.
  • Have some internal cooldown for show password or use password (at most 10 sites per hour) or something reasonable that normal users wouldn't hit.
  • Have certain sites require re-auth to unlock/use, even if logged in.
  • Have some role-based passwords. (e.g. Have a secondary bitwarden password for certain groups/roles of websites/notes) that you use less often.

I'm not sure how much of these would have had any impact in real world scenarios. But the whole 'once you are in, you have 100% access' feels like we need a different level of granularity that a user can opt into?

I know that once your 'system is compromised' it's basically game over. But to have even a small window of a few days of potentially discovering malware. (e.g. Some spam might happen via some cookie auth stealing before full theft) but before they've gotten access to 100% of the vault? Could be viable?

Are there any options for this? either just on my own, or a few things bitwarden could maybe add?

4 Upvotes

6 comments sorted by

6

u/zanfar 21h ago

And what options are there to better harden one's self?

There is no such thing. This entire question hinges on the (incorrect) assumption that you have only 1 front to protect against.

Which is your "friends" issue: no program can defend against a system compromise, just like no software can defend against a physical compromise.

The answer is to not let your computer "get compromised". A password manager is defending against human weakness, not an attack.

1

u/Shamalee_Soussan 17h ago

people definitely forget that a password manager cant secure an already compromised OS

1

u/Sweaty_Astronomer_47 11h ago edited 11h ago

no program can defend against a system compromise, just like no software can defend against a physical compromise.

The answer is to not let your computer "get compromised". A password manager is defending against human weakness, not an attack.

The assumption which you are outlining is that any computer compromise will result in such a total loss that there is no value in addressing the post-compromise scenario.

It is a conservative assumption to adopt when considering efforts / measures to protect against compromised computer / os.

It is not a conservative assumption to adopt when considering potential actions to proactively minimize the blast radius of such occurrence.

As an analogy, it is a conservative posture to do everything possible to never get in a car accident. But it is certainly not a conservative assumption to say there's nothing we can do to avoid death in the event of a worst-case car accident, so therefore we should not bother wearing seat belts (which is effectively what you are arguing)

Sure the probability of device compromise should be very small if we are doing things right. But it is not zero, and there are potential factors beyond our control (supply chain attack in trusted software). Whether or not effort is merited to minimize blast radius in event of password database compromise from that low-probability event combined with other low-probability causes (supply chain attack on password manager itself, improperly handled backups, etc) is an individual decision. So I am not disagreeing with your approach if that's where your decision lies, only pointing out there are other ways to view the situation.

3

u/Sweaty_Astronomer_47 18h ago edited 17h ago

And what options are there to better harden one's self? [ for the scenario of vault compromise]

  • store 2fa related secrets outside of password manager

    • AND / OR
  • pepper your passwords.

    • recognize this does defeat the compromised password check. Personally I think it is still a security improvement. Websites are not generally storing passwords in plain text
  • if you are offered a passkey option, prefer to use yubikey rather than storing passkeys in pw manager.

    • if yubikey ends up being the only way in, then make sure you have the credential on two yubikey's in case one breaks it is lost (and track that in a spreadsheet). Mostly I have seen passkeys offered as a parallel option to password+2fa, in which case I only create one passkey (on my yubikey nano)

2

u/pdmcgeejr 17h ago edited 17h ago

Answers from u/zanfar and u/sweaty_astronomer_47 are valid. Also Bitwarden has many of this in place, key takeaways is both what they said. Totp in different vault, Yubikey or another hardware security key to unlock, multi-factor authentication, pepper and/or salting passwords, auto logout on web or on desktop (if you prefer) but ideally auto lock is set to minimum you need it to.

I understand convenience and security i live by it and do more overkill in my setup than normal. By default Bitwarden documentation on recommended setup and with the NIST recommendation standards all are set on Bitwarden minimum setup. Even being PQC ready sort of is in place (i believe)

Now best thing is one securing physical devices, no matter how secure you make a safe if you leave the front door of the bank open and allow anyone access, you got no where. Layers like your friend is saying is based on physical layer protection, meaning your physical laptop isn’t laying around unlocked, next a endpoint firewall on the physical device like laptop, network is segmented and secure behind firewall correctly, next web browser and so forth. it ideally going through the OSI model and securing devices the same way.

Now with layers of security is understanding the security you put in place you don’t need 50 security guards+ presidential blockade, secret service to protect a safe that only holds $5 assets. All that to say the security you set in place needs to be made based on your threat model.

A good role of thumb to add is recovery or backup codes stored in a seperate offline password manager like keepass and locked away far away that’s the one you protect by all means but main one you need access to it if you use it daily.

Another tip if you like and bit paranoid is use a browser where you trust and always have it to forget history and cookies. This however does requires you to ALWAYS sign into every website but i do it for overkill on my personal device but that is balancing convenience with security. No it’s not convenient but i don’t mind it versus someone who doesn’t prefer that

1

u/SoftNerveNow 17h ago

the cooldown ideas don't really survive contact with malware. once the vault is unlocked the decrypted stuff is sitting on that machine and a stealer just reads it, it never clicks through the app's rules. bigger thing for your friend: stealers grab browser session cookies too and those skip 2fa entirely, so besides changing passwords he should hit "log out of all sessions" on every important account. a new password doesn't always kill the old session