Live data from Hacker News

Securely Yours, Love Password Managers (2021)

cyberlit.co

31–40 of 41 posts

Re: Securely Yours, Love Password Managers (2021)

#31
post #16

Earlier quoted context omitted.

A passphrase isn't stronger than a password created using those rules - it's preferable if your strategy is to remember your passwords. The problem is that there are so many logins it's hard to keep track. So the temptation is to start reusing passphrases across sites which is the big no no because every site will be breached eventually, it's just a matter of time. And once your passphrase is compromised attackers wi…

I’m not a security expert, but I have to agree with rob74. I was taught by a mentor that from a computational standpoint, all those typical ‘uppercase/ lowercase/ special character’ rules are worthless. The only thing that makes a password stronger is the length. Now from a human or social engineering standpoint they might make sense. It might make it less likely someone chooses something that could be found using a…

Brute forcing is just guessing what character is in each slot, so you start with aaaaa then try aaaab, etc. Using a passphrase means that there are 26 candidates. 52 if you mix upper and lower case. If you add numbers and special characters you go up to 95.

Your mentor is right in that length is the more important factor. The character set has a multiplying effect whereas the length has an exponential effect, so 11 lowercase letters is 26^11 combinations, a bit over half as many as 8 special chars (95^8).

It's worth noting that neither of those would be considered a "safe" password - 15 characters for only lowercase and 13 for a mix of all characters is the recommended minimum.

It makes less difference when you consider that the attacker doesn't know you're using a passphrase so will probably be checking for those extra characters anyway.

What does make a difference is that the passphrase is designed to be remembered but should be unique per login. So with 30+ logins you're remembering 30+ passphrases or might you be tempted to reuse some?

You can get the advantages of a passphrase with a password manager but the same is not true in reverse.

Re: Securely Yours, Love Password Managers (2021)

#32

My go-to recommendation has been Bitwarden, but if you're worried about an external dependency and don't want to run their self-hosted option, then I've found KeePassXC to be fantastic too. I have to use it on my client development macbook due to their security rules and was initially very reluctant to move away from Bitwarden. The client's security dept says no password manager can request stuff from outside the mac…

Your edit conveys a strong anti pattern, at least in the sense password managers are mostly used. The entire point is to not remember passwords. Hence the name LastPass, for example (“the last password you will have to remember” aka the master password). Hence also completely random, entirely impossible to learn passwords.

However! The passphrases are very useful for situations where the password also needs to be remembered and actually typed by hand on occasion. I have a single such case, my Active Directory work account. Need to login to Windows but also to various platforms in the browser.

Re: Securely Yours, Love Password Managers (2021)

#33

I'm a big fan of Enpass [1]. It's user friendly enough for the not so technical members of my family to use it and importantly (for me) sync is achieved via encrypted files stored on Google Drive (other services such as Dropbox are also supported). [1] https://www.enpass.io/

I used to use Enpass and have looked at returning, but their lack of third party audits for years and most platforms keeps pushing me off it.

Re: Securely Yours, Love Password Managers (2021)

#34

My go-to recommendation has been Bitwarden, but if you're worried about an external dependency and don't want to run their self-hosted option, then I've found KeePassXC to be fantastic too. I have to use it on my client development macbook due to their security rules and was initially very reluctant to move away from Bitwarden. The client's security dept says no password manager can request stuff from outside the mac…

Your edit conveys a strong anti pattern, at least in the sense password managers are mostly used. The entire point is to not remember passwords. Hence the name LastPass, for example (“the last password you will have to remember” aka the master password). Hence also completely random, entirely impossible to learn passwords. However! The passphrases are very useful for situations where the password also needs to be rem…

I don't think this is true. That just seems like marketing spin for your average consumer who doesn't understand security.

The main motivation is having a different password per service. So if your password is compromised in one place, you're not universally compromised.

Re: Securely Yours, Love Password Managers (2021)

#35
post #18
post #15

It is non obvious but important to understand that most password managers, such as 1password, Lastpass, and almost everything else, expose all secrets to malware in plain text any time the password database is unlocked. Here are some trivial examples of how malware can steal credentials in bulk. Example: Exfiltrate all plaintext credentials from 1password ``` op list items | jq -r '.[].uuid' | xargs -n1 bash -c 'op g…

Keepassxc supports Yubikey challenge response. It protects against attack you mentioned.

̌Challenge response does not help much. The database ends up exposed on the workstation.

Re: Securely Yours, Love Password Managers (2021)

#36
post #35
post #18

Earlier quoted context omitted.

Keepassxc supports Yubikey challenge response. It protects against attack you mentioned.

̌Challenge response does not help much. The database ends up exposed on the workstation.

If you require a touch, challenge response behaves exactly same as smart card. In both cases, the database is locked, until you touch where the database is exposed in either case.

Re: Securely Yours, Love Password Managers (2021)

#37
post #36
post #35

Earlier quoted context omitted.

̌Challenge response does not help much. The database ends up exposed on the workstation.

If you require a touch, challenge response behaves exactly same as smart card. In both cases, the database is locked, until you touch where the database is exposed in either case.

Hardware Authentication != Hardware Decryption

In challenge response, your password manager has a cosmetic software control that prompts you to authenticate yourself with your Yubikey before it will expose the decryption key which in turn exposes your entire password database. This does not help you in the event your system is compromised, as an attacker would just have a background job that waits until the next time you authenticate and steal all secrets just after.

When you use a true hardware encryption solution like Password Store with a Yubikey, it actually encrypts every single secret as individual blobs to a asymmetric public key in the Yubikey. The encryption key never once comes in contact with system memory. Instead a single requested secret is sent to the Yubikey, the decryption is done there in isolated memory and CPU, and then that single plaintext secret is sent back to the OS, provided the user touched the device.

To summarize, let's assume your system is compromised with a rootkit by a remote actor. You have 100 secrets stored in both Keepass with Yubikey authentiction, and in Password Store with Yubikey encryption.

To steal all your secrets from Keypass they only need to wait for you to tap your Yubikey once to get all 100 secrets, if that. They could just skip that check after all as it is just cosmetic. They have root and can modify any binary they want.

Meanwhile in the Password Store setup to get all your 100 secrets your adversary has to trick you into tapping your Yubikey 100 times. Presumably you would notice something was up and have some damage control.

Re: Securely Yours, Love Password Managers (2021)

#38
post #37
post #36

Earlier quoted context omitted.

If you require a touch, challenge response behaves exactly same as smart card. In both cases, the database is locked, until you touch where the database is exposed in either case.

Hardware Authentication != Hardware Decryption In challenge response, your password manager has a cosmetic software control that prompts you to authenticate yourself with your Yubikey before it will expose the decryption key which in turn exposes your entire password database. This does not help you in the event your system is compromised, as an attacker would just have a background job that waits until the next time…

This is an important point, and I have written similar comments on HN (about this and other advantages of Pass). Keepass is per database vs GPG is per password.

However, it’s not much related to the cryptography. You could write per password databases in keepassxc too, set each with CR and access by command line. You would need one touch per password.

Yes, the key and crypto are inside Yubikey with GPG, whereas with CR only the key is inside Yubikey. We can debate which one is better, at the end it’s a second factor used in different ways.

Re: Securely Yours, Love Password Managers (2021)

#39

Earlier quoted context omitted.

Your edit conveys a strong anti pattern, at least in the sense password managers are mostly used. The entire point is to not remember passwords. Hence the name LastPass, for example (“the last password you will have to remember” aka the master password). Hence also completely random, entirely impossible to learn passwords. However! The passphrases are very useful for situations where the password also needs to be rem…

I don't think this is true. That just seems like marketing spin for your average consumer who doesn't understand security. The main motivation is having a different password per service. So if your password is compromised in one place, you're not universally compromised.

> The main motivation is having a different password per service. So if your password is compromised in one place, you're not universally compromised.

Yes, exactly. But how many logins does the average user have? Dozens at least. What's a secure password? 12+ elements (alphanumeric and specials). That is impossible to keep in your head. The only way the average person can make use of complex, secure passwords is by having a single one and reusing that. This is where password managers come into play. You simply create unique passwords, with strong security to each. Again, these will be impossible to remember. So the entire point of passphrases is moot: you are not supposed to remember them, let alone know them. Yes, not even know them. It's the password manager's job!

The only exception (I know of) is passwords that need to be entered regularly, offline, like the operating system's login screen. Those better be passphrases: they can be remembered, but can also be made secure enough by modern standards. The master password to my password manager is such a passphrase, with some modifications. So is the login to my AD user (here, and only here, I used the passphrase generator). That's it. The rest are very long, randomly generated passwords (not phrases), of which I know none.

This is, to my knowledge, the "idiomatic" and "correct" way of using password managers today.

Re: Securely Yours, Love Password Managers (2021)

#40
post #16

Earlier quoted context omitted.

I’m not a security expert, but I have to agree with rob74. I was taught by a mentor that from a computational standpoint, all those typical ‘uppercase/ lowercase/ special character’ rules are worthless. The only thing that makes a password stronger is the length. Now from a human or social engineering standpoint they might make sense. It might make it less likely someone chooses something that could be found using a…

Brute forcing is just guessing what character is in each slot, so you start with aaaaa then try aaaab, etc. Using a passphrase means that there are 26 candidates. 52 if you mix upper and lower case. If you add numbers and special characters you go up to 95. Your mentor is right in that length is the more important factor. The character set has a multiplying effect whereas the length has an exponential effect, so 11 l…

Thanks for the explanation!
Post reply on HN