News for hackers. Stuff that matters.
Re:Why does storing 2FA codes in your password manager make ... by nlawalker on Wednesday January 01, 2025 @12:43PM (#42567600)
You are better off security-wise with 2FA enabled than without it (for the phishing-related reasons mentioned in TFA - EDIT: taviso is correct in their comment, it's more about protection against credential stuffing than phishing), regardless of where you put the codes, so if being able to put the codes in your password manager is going to be the difference-maker in someone electing to use 2FA, they should do it.

It's the same idea with using a password manager in the first place - if a password manager is going to be the thing that gets you to use secure passwords that vary across services, it's worth the tradeoff of having all of those passwords in one place, because you're much more likely to be compromised by a bad password than by a password manager leak.

Re:Why does storing 2FA codes in your password manager make ... by jasonjayr on Wednesday January 01, 2025 @01:07PM (#42567815)
The risk is that if your password manager's database is stolen, then an attacker can do an offline decryption attack on it, and should they succeed, they have both parts of the login to compromise you.

At the very least, you SHOULD keep the 2FA credentials in a separate database (IE, keepassxc can keep multiple databases), so an attacker would need to double their efforts to get both parts of the login.

Re:Why does storing 2FA codes in your password manager make ... by ziml77 on Wednesday January 01, 2025 @01:16PM (#42567882)
Are there any reasonable attacks against AES-GCM-256 where the key is a mix of a randomly generated 128-bit key and a password? If not then I have no concerns about an attacker cracking my 1Password database.
Re:Why does storing 2FA codes in your password manager make ... by bluGill on Wednesday January 01, 2025 @01:32PM (#42568007)
The password is generally the weak point. If you can remember it any modern computer can guess it in a short time. Which is why password generation is so imporant.
Re:Why does storing 2FA codes in your password manager make ... by yoble on Wednesday January 01, 2025 @01:53PM (#42568167)
I don't think that's correct as a blanket statement - you can use a passphrase, or remember a 14+ character password since you only have one to remember.

Even if it's only random-ish, password managers do key stretching (for example by hashing the password 600k times - bitwarden has a high default value and lets you increase it if you like) so that it has to take some computational effort to check if a single password is correct. That's why it take a few seconds to unlock your vault each time.

With these in place I think you're pretty safe for a long time. (Well, maybe until quantum computing breaks those cyphers?)

Re:Why does storing 2FA codes in your password manager make ... by Modified3019 on Wednesday January 01, 2025 @02:28PM (#42568535)
Paraphrases are much easier than passwords in this regard. Though I fear keylogging more than brute forcing what my main password is.

But this is why I use security keys like yubikeys. Doesn’t matter if an attacker knows my main password for any number of reasons, there’s fuckall they can do with it without my physical key.

And even if they get into my vault and extract passwords, for many websites (in particular the most important ones) they’d still need to use my security key, they can’t just use the passwords.

Attacks are still possible (with browser session fuckery?) but much harder that yet another breach where a website was storing passwords in plaintext

Note, it’s best to not select “remember me” for Bitwarden: https://bitwarden.com/help/twostep-faqs/#q-why-is-bitwarden-...

Re:Why does storing 2FA codes in your password manager make ... by Brian_K_White on Wednesday January 01, 2025 @03:16PM (#42568917)
This leaves yourself too vulnerable for my taste.

I like, no I think it's simply a hard requirement, that I can recover from nothing but the contents of my head. I can wake up naked in a foreign country and regain everything.

Re:Why does storing 2FA codes in your password manager make ... by baliex on Wednesday January 01, 2025 @01:48PM (#42568123)
> If you can remember it any modern computer can guess it in a short time.

That's not true. A long sentence of your choosing is easy to memorise and plenty long enough to not be able to be guessed by a computer (brute force).

Re:Why does storing 2FA codes in your password manager make ... by bluGill on Wednesday January 01, 2025 @02:49PM (#42568715)
That isn't a word though.
Re:Why does storing 2FA codes in your password manager make ... by number6 on Thursday January 02, 2025 @01:53AM (#42572342)
As a German I have access to words like "Moselschifffahrtspolizeimützenverordnung" and that's a mild one :)
Re:Why does storing 2FA codes in your password manager make ... by bluGill on Thursday January 02, 2025 @08:55AM (#42574407)
Stupid German proving me wrong with something that most languages don't have access to.

\s

I'm sure German is not alone, but it is the only one I'm aware of - though with over 7000 known languages I doubt anyone knows enough to state anything with confidence.

Re:Why does storing 2FA codes in your password manager make ... by number6 on Friday January 03, 2025 @03:54AM (#42583884)
I believe Sanskrit has some very long words like 600 Roman letters or something
Re:Why does storing 2FA codes in your password manager make ... by yablak on Wednesday January 01, 2025 @07:01PM (#42570347)
I'm also interested in the answer to this question. Can one separate the cracking of the password and the key?
Re:Why does storing 2FA codes in your password manager make ... by Eddy_Viscosity2 on Thursday January 02, 2025 @08:39AM (#42574299)
> Are there any reasonable attacks against AES-GCM-256 where the key is a mix of a randomly generated 128-bit key and a password? If not then I have no concerns about an attacker cracking my 1Password database.

Hackers rarely break through the front door. They find a vulnerability elsewhere in the code, your OS, other programs on your computer, the companies servers, the companies staff, and so on. You have to have full faith not just in the encryption algorithm, but its implementation, everything and everyone around it and everywhere it operates and interacts with. Any one of these could be a route in.

Re:Why does storing 2FA codes in your password manager make ... by ghjfrdghibt on Wednesday January 01, 2025 @01:50PM (#42568149)
Or you can protect the database with a keyfile and/or a hardware key meaning you need 2 or 3 factors for the database.

This is what I do for my keepass database. It means I can store my database in a cloud service of my choice for sync purposes too.

Re:Why does storing 2FA codes in your password manager make ... by EPWN3D on Wednesday January 01, 2025 @11:52PM (#42571728)
The threat model of password managers and encryption as a whole assumes that the adversary has the ciphertext. If the adversary can decrypt it, then the encryption algorithm is fundamentally broken.

There is literally no point to encryption if possession of the ciphertext is sufficient to extract the secret.

Re:Why does storing 2FA codes in your password manager make ... by WXLCKNO on Wednesday January 01, 2025 @01:09PM (#42567827)
After seeing people lose cryptocurrency first hand through the LastPass leaks (hot wallet seed phrases, which is still stupid to have online but..), I really feel like the odds of a leak being the cause of any issues higher than a bad password, for tech savvy security conscious users at least.
Re:Why does storing 2FA codes in your password manager make ... by 01HNNWZ0MV43FF on Wednesday January 01, 2025 @01:15PM (#42567872)
Wasn't that because they had backed up their password vaults to LastPass' cloud service?

I use KeePass, never upgrade it, and only back it up to my own cold spinning drives. If malware stole my local vault I'd be in trouble, but it's more convenient than keeping my passwords on paper.

Re:Why does storing 2FA codes in your password manager make ... by niij on Wednesday January 01, 2025 @06:25PM (#42570165)
LastPass is inherently a SaaS, right? There is no ability to use it without syncing your vault to their servers.
Re:Why does storing 2FA codes in your password manager make ... by justinclift on Wednesday January 01, 2025 @08:11PM (#42570733)
Maybe Bitwarden would be the better alternative, as its OSS?

https://github.com/bitwarden

Re:Why does storing 2FA codes in your password manager make ... by connicpu on Wednesday January 01, 2025 @01:17PM (#42567891)
Part of why I avoid password managers that use their own cloud system. Storing my vault in a regular cloud database, not a password-specific one, to me makes it much less likely my vault will be compromised.
Re:Why does storing 2FA codes in your password manager make ... by rkagerer on Wednesday January 01, 2025 @04:57PM (#42569659)
Not criticizing, but I'd rather not have it in the Cloud at all.
Re:Why does storing 2FA codes in your password manager make ... by kcartlidge on Thursday January 02, 2025 @04:23AM (#42572972)
> After seeing people lose cryptocurrency first hand through the LastPass leaks

The reason for those losses was partially that LastPass was encrypting with extremely low iterations on long-standing accounts (it also may not have helped that they didn't encrypt URLs either). That was a terrible practice which isn't duplicated by credible alternatives.

As a matter of opinion you may still be right, though personally I consider the risks of a bad password to be higher than a leak purely because without a password manager making it simple to use long random passwords most do tend to be bad ones (duplicated/short/guessable/engineerable) as those are the only ones that are memorable.

It's the usual trade-off between security and usability, with the perfect being the enemy of the good, especially in regard to pushing less technical users to solutions which may not be ideal but are still much safer.

Re:Why does storing 2FA codes in your password manager make ... by watermelon0 on Wednesday January 01, 2025 @01:14PM (#42567866)
If you store both in one place, it's similar to 1FA. In such case it's a lot better to just use passkeys (where supported).
Re:Why does storing 2FA codes in your password manager make ... by zzyzxd on Wednesday January 01, 2025 @02:46PM (#42568690)
How many places is generally irrelevant. If a system requires user to provide 2 factors to authenticate, it is 2FA. A password manager software itself should be no exception.
Re:Why does storing 2FA codes in your password manager make ... by crazygringo on Wednesday January 01, 2025 @01:18PM (#42567899)
Good point about it being similar to passkeys.

But why would it be better to use passkeys?

Because don't sites with passkeys generally still allow you to fall back to password, since it's common for people to lose their phone and then lose their passkey? Whereas sites with 2FA obviously don't, and have more complicated/secure recovery mechanisms?

So seems to me like 2FA (TOTP's) are currently vastly better in practice?

Re:Why does storing 2FA codes in your password manager make ... by jamesmotherway on Wednesday January 01, 2025 @01:54PM (#42568182)
Hardware keys and passkeys are better because they can't be phished. In the case of hardware keys, one should register multiple to prevent lockout. Most implementations of passkeys seem to be portable, letting them exist on multiple devices (something that gives me pause).

If an adversary can successfully phish someone, they can often also trick them into providing TOTP codes or approving push notifications. However, TOTP remains significantly better than the alternatives, as it prevents credential stuffing attacks and SMS-related compromises while potentially limiting any account breach to a single session.

Re:Why does storing 2FA codes in your password manager make ... by crazygringo on Wednesday January 01, 2025 @06:45PM (#42570264)
> Hardware keys and passkeys are better because they can't be phished.

I think you're missing the point I made -- that because of the way sites are currently set up, your password can be phished even if you have a passkey, and your password is good enough to get you in.

So given that that is the current state of things, isn't TOTP better because it prevents this? Because at least the TOTP won't let an adversary get in a second time.

Re:Why does storing 2FA codes in your password manager make ... by jamesmotherway on Wednesday January 01, 2025 @10:30PM (#42571358)
Sorry, I overlooked part of your post earlier - I'm tired. As I previously alluded to, I don't use passkeys due to concerns about their implementation. Whether passkeys are better than TOTP really depends on the individual user's circumstances.

Which service is it? Do they ever use that password?

If I were used to signing in with a passkey, I'd find a password prompt suspicious. While the average person might not, it's also possible they would have forgotten the password entirely. There are other services that force TOTP even with hardware keys enrolled. Technically they can be phished, but it would not be successful in all cases.

Unfortunately, varying behavior and support for multifactor protocols (along with risky reset flows) makes it hard to give blanket recommendations.

Re:Why does storing 2FA codes in your password manager make ... by Ferret7446 on Saturday January 04, 2025 @07:08AM (#42594248)
Most sites that allow a passkey also require you setup 2FA with your password when enabling passkeys. Which, unless you also set up an alternative method like TOTP, would also be your passkey.

So ironically, your options would be your passkey, or your password+passkey/FIDO key (in 2FA mode).

Re:Why does storing 2FA codes in your password manager make ... by jamesmotherway on Wednesday January 01, 2025 @01:45PM (#42568108)
If the vault requires a hardware key and master password to access the encrypted password and token, would you still describe it as single-factor authentication?
Re:Why does storing 2FA codes in your password manager make ... by Spooky23 on Wednesday January 01, 2025 @01:23PM (#42567930)
TOTP tokens aren’t really MFA anyway. They are just another type of password that is more protecting against bad password practices and other compromises. They deliver multi-step auth.

Tokens that increase the trust level of an authentication come with additional controls (tamper resistant hardware, passcode, etc)

For normal people, a FIDO token delivers the highest level of security and integrity.