News for hackers. Stuff that matters.
Re:Getting 2FA Right in 2019 by pvinis on Thursday June 20, 2019 @10:33AM (#20233292)
I use 1password for TOTP too, and this detaches my device from it. Now if I lose my phone, I just need to be able to access the app on my next phone and I'm all set.

I know that keeping the password and the TOTP at the same place is kinda not great, but I prefer this "risk" to the "hassle" you mentioned.

I'm open to better solutions!

Re:Getting 2FA Right in 2019 by tptacek on Thursday June 20, 2019 @11:08AM (#20233654)
At this point, what is TOTP actually doing for you? If you're using 1Password, it's already generating unguessable passwords for you. Your TOTP codes are literally just an extension of that password.
Re:Getting 2FA Right in 2019 by sametmax on Thursday June 20, 2019 @01:24PM (#20235069)
It mitigates phishing and password reset attacks. It also means you can give access to some account to a friend or family over the phone one time, without giving them permanent access. Also good on non encrypted public wifi or in a company network with a proxy that sees and logs everything.

The real word is very unperfect.

Re:Getting 2FA Right in 2019 by goatsi on Thursday June 20, 2019 @01:38PM (#20235232)
It mitigates the simplest forms of phishing. If someone is running a proxy server[0] and passing everything along to the real website, token (or SMS) based 2fa can't do anything.

[0]https://breakdev.org/evilginx-2-next-generation-of-phishing-...

Re:Getting 2FA Right in 2019 by sametmax on Thursday June 20, 2019 @01:56PM (#20235414)
Hence "mitigates" and not "cancels"
Re:Getting 2FA Right in 2019 by kogir on Thursday June 20, 2019 @11:11AM (#20233684)
A single use password extension.

The important thing here is that you only enter the secret once. It’s different from a password which is reused by design.

Re:Getting 2FA Right in 2019 by tptacek on Thursday June 20, 2019 @11:15AM (#20233726)
Right, I know that's the obvious response, but what's it really buying you? The rationale I always see is "the server could log the request and my password would wind up in plaintext". But the problem with plaintext password logs is that in a breach, a substantial number of those passwords will be used to credential-stuff other accounts. A breach already requires you to reset all your credentials for that service, and if you're using 1Password, those credentials had no other value anyways.
Re:Getting 2FA Right in 2019 by timoth on Thursday June 20, 2019 @12:22PM (#20234401)
I feel like I must be missing something here, especially given who I'm replying to, but doesn't it mean that, even if your password is compromised, it can't be used to log into the service which is also protected by TOTP? Regardless of impact on other services if someone reuses their password. So in theory, there's no desperate need for you to reset your password for the service (though of course you should) because it's still protected by your TOTP setup. (Well, unless your current TOTP was leaked and someone reuses your password and current TOTP before it times out, if the service allows that.) Of course, it depends on the nature of the breach. I've assumed the password leak via request logging as you mentioned (and possible leak of single TOTP), but if the seed for the TOTP is also leaked (e.g. DB breach), then naturally you're in trouble!
Re:Getting 2FA Right in 2019 by seaurchin on Thursday June 20, 2019 @08:03PM (#20238695)
I'd love a dumbed-down answer to this. Here's where I think 1Password's TOTP is useful:

User creates a strong password in 1Password when signing up for a service. The password is used only for this service. The service stores all usernames and passwords in plaintext. These credentials are compromised without the service knowing. If I'm using 1Password's TOTP then, I think, an attacker is prevented from logging into the service with my credentials. If I'm not using 1Password's TOTP then the attacker can login to the service.

Re:Getting 2FA Right in 2019 by tptacek on Friday June 21, 2019 @11:44AM (#20243505)
If the service is compromised, you can't trust your TOTP secret (the little binary string from which your TOTP codes are generated) either! The protections TOTP provide in this scenario are all based on magical thinking; that it "feels" secure. But really, with respect to a specific service, if they're compromised, your credentials are worthless and need to be reset wholesale.
Re:Getting 2FA Right in 2019 by cyphar on Thursday June 20, 2019 @10:23PM (#20239339)
It should be noted that the TOTP secret is probably kept in the same database (if not the same table) as the password hashes. I'm surprised we don't see more TOTP secrets in password dumps.
Re:Getting 2FA Right in 2019 by ensignavenger on Thursday June 20, 2019 @03:52PM (#20236665)
And you reset the password after you find out about the leak- but that may be a long time or even forever after the leak occurs, so with only a password, you more vulnerable.
Re:Getting 2FA Right in 2019 by kogir on Thursday June 20, 2019 @11:33AM (#20233929)
You know, that’s actually right.

I’m going to reconsider why I’m using 2FA and go all U2F or remove it entirely.

Re:Getting 2FA Right in 2019 by tptacek on Thursday June 20, 2019 @12:18PM (#20234361)
You sound surprised I’m right! :)
Re:Getting 2FA Right in 2019 by austhrow743 on Thursday June 20, 2019 @08:09PM (#20238735)
2FA is strongly pushed in a lot of places. Creates an impression of importance.

You just saved me a ton of hassle next time I swap phones. Cheers.

Re:Getting 2FA Right in 2019 by kogir on Thursday June 20, 2019 @05:30PM (#20237575)
Ha, I'd just not thought it through for some reason.
Re:Getting 2FA Right in 2019 by idlewords on Thursday June 20, 2019 @11:33AM (#20233932)
You're assuming that using 1password implies you're not re-using passwords, or using easily guessable ones. Is this assumption safe to make?
Re:Getting 2FA Right in 2019 by frereubu on Thursday June 20, 2019 @11:46AM (#20234061)
Not entirely. But 1Password does clearly flag weak passwords and reused passwords (i.e. used for two or more items in 1Password) with a message that's not dismissible.
Re:Getting 2FA Right in 2019 by tptacek on Thursday June 20, 2019 @12:29PM (#20234483)
In general, no, but for 1Password users sophisticated enough to store TOTP creds in it, I'm guessing: almost always yes.
Re:Getting 2FA Right in 2019 by pastage on Thursday June 20, 2019 @06:10PM (#20237900)
Similar, when you are using a tool to generate something unique for logon why does it have to be long? 4 characters should be plenty if you do not reuse it.
Re:Getting 2FA Right in 2019 by lixtra on Thursday June 20, 2019 @11:36AM (#20233972)
It mitigates passive attacks: If someone spies me entering the password (by keylogger or in person) they only get my password but cannot login 2 minutes later (TOTP tokens should not be reusable for some time, so even this 1 minute window gets closed).

Plus, some buerocrat can tick the 2FA box.

Re:Getting 2FA Right in 2019 by tptacek on Thursday June 20, 2019 @12:28PM (#20234471)
Right, but you're mitigating an extremely marginal attack (a purely passive interception of a login) and enabling a somewhat more realistic attack, and for what? If you're just doing it to fake out 2FA requirements, sure, do whatever. But otherwise, just use 1Password passwords and skip the TOTP theater.
Re:Getting 2FA Right in 2019 by reificator on Thursday June 20, 2019 @06:21PM (#20237981)
> Right, but you're mitigating an extremely marginal attack (a purely passive interception of a login) and enabling a somewhat more realistic attack, and for what? If you're just doing it to fake out 2FA requirements, sure, do whatever. But otherwise, just use 1Password passwords and skip the TOTP theater.

Passive interception is not the only possibility. How many password dumps show up each year? Having TOTP enabled, regardless of where it is stored, helps mitigate that threat unless the password that is leaked can also access whatever is storing your TOTP secrets. But if you're using a password manager and reusing passwords, I don't know what to tell you.

Personally I use a TOTP implementation that lets me move the backing store as a file. It's not stored in my password manager, but it's available to me should I need to change phones. That seems like the best of all worlds.

Re:Getting 2FA Right in 2019 by lixtra on Thursday June 20, 2019 @12:36PM (#20234569)
Password leakage is not a marginal problem. I find saved passwords in public browsers all the time. Those with TOTP are much better protected against this as well.
Re:Getting 2FA Right in 2019 by the_common_man on Thursday June 20, 2019 @01:01PM (#20234849)
Yeah, but you are not finding 1Password passwords in public browsers, are you?
Re:Getting 2FA Right in 2019 by giobox on Thursday June 20, 2019 @05:01PM (#20237331)
1Password also has a web UI, so yes it is still very possible to copy a password from 1Password and accidentally save it on a public browser.

Not to mention the simplest: type in password from 1Password on phone on public browser. Accidentally save password.

Re:Getting 2FA Right in 2019 by lixtra on Thursday June 20, 2019 @01:03PM (#20234877)
Sadly, I found ones from colleagues that use 1Password and even to me it happened that I clicked save for password that I didn’t want to save in that environment.
Re:Getting 2FA Right in 2019 by ensignavenger on Thursday June 20, 2019 @03:54PM (#20236692)
Ho does having TOTP in addition to a password versus just the password enable a more realistic attack?
Re:Getting 2FA Right in 2019 by griffinmb on Thursday June 20, 2019 @11:22AM (#20233811)
Agreed that you don't gain anything if you're using 1Password. But users may be required to set up MFA to access something like GitHub organizations, in which case having it available in 1Password is convenient.
Re:Getting 2FA Right in 2019 by munchbunny on Thursday June 20, 2019 @12:07PM (#20234254)
It's true, putting the TOTP in a synced app actually removes the "something you have" aspect of the second factor. Now you've created a way to intercept the "something you have" factor without touching either the user or the authenticating service, so it's just an extension to the "something you know".
Re:Getting 2FA Right in 2019 by souterrain on Thursday June 20, 2019 @11:23PM (#20239632)
TOTP implemented with 1Password is not 2FA.

All TOTP devices must store the symmetric key, yes. 1Password goes a step further and provides a UI to allow the user to simply copy the symmetric key out of the login record à la a password.

TOTP clients that make opinionated design decisions prohibiting a user from getting at the symmetric key are correct implementations.

That said, if one wants to mandate 2FA for one’s users, TOTP is not the right choice, given it allows users to do the wrong thing.

Re:Getting 2FA Right in 2019 by mbesto on Thursday June 20, 2019 @11:52AM (#20234102)
Reduction of chance for a successful phishing attack. Is it possible for a hacker to get both the password and the TOTP? Sure, but the timing of that is a 30-second window, in which the hacker needs to be extremely sophisticated in order to successfully compromise your account.
Re:Getting 2FA Right in 2019 by tptacek on Thursday June 20, 2019 @12:19PM (#20234372)
This is not at all true, and we’ve dealt with unsophisticated but successful ATO attacks on TOTP all year. TOTP does not defend ordinary users against phishing.
Re:Getting 2FA Right in 2019 by mbesto on Thursday June 20, 2019 @04:56PM (#20237285)
> TOTP does not defend ordinary users against phishing

I never said it ultimately defends ordinary users, just that it reduces the chances because it requires a more sophisticated attack.

Re:Getting 2FA Right in 2019 by tptacek on Friday June 21, 2019 @11:46AM (#20243519)
You said attackers need to be "extremely sophisticated" to pull it off, and I've spent a year seeing nitwits – clumsy and trivially detected nitwits – do it without much trouble. You were wrong, and wrong in a way that's important to correct so people know that it's wrong.
Re:Getting 2FA Right in 2019 by mbesto on Wednesday June 26, 2019 @12:15AM (#20281858)
And I've seen the opposite, what's your point? How do you qualify "clumsy and trivially detected nitwits"?

PS - Telling people they are "wrong" isn't convincing, and is downright condescending. Thanks for that.

Re:Getting 2FA Right in 2019 by akvadrako on Thursday June 20, 2019 @11:27AM (#20233856)
Then it's not really 2FA anymore. Anyone with access to your 1Password account can login anywhere.
Re:Getting 2FA Right in 2019 by spookthesunset on Thursday June 20, 2019 @03:24PM (#20236362)
If anybody has access to your 1pass account, you are fucked no matter what.

The biggest threat the vast majority of people face is getting one of their accounts taken over because they re-use credentials and some site, somewhere, got their account db compromised and now those credentials are on a list. Any account that has 2FA, even ones that use "weak" 2FA like SMS, will be immune to being broken into. These drive-by people won't be breaking into your 1pass account to recover your 2FA secret either--that is too much work. They'll just move on all the accounts that don't have 2FA enabled.

(huge asterisk: what I said is only true for drive-by attacks where some bot is burning through a list of a million accounts to try. If somebody is specifically trying to attack you and your accounts... you've got bigger problems to worry about than simply having SMS-enabled 2FA or saving your 2FA keys in a password manager.)

Re:Getting 2FA Right in 2019 by sorum on Thursday June 20, 2019 @04:29PM (#20237015)
Regarding people getting access to your 1Password account, things have gotten better recently.

1Password supports 2FA to login to the vault itself and most recently Webauthn security keys on browser, which I immediately switched to. On mobile it’s still TOTP, but better than nothing. I’ve got 2 physical keys and Google Authenticator as only 2FA methods.

Once U2F is supported on mobile, I’ll drop TOTP altogether for my 1Pass login. Probably buy another Titan key and throw into the bank box.

Re:Getting 2FA Right in 2019 by graeme on Thursday June 20, 2019 @03:31PM (#20236453)
If your 1password is broken but 2fa is elsewhere, you are much less fucked than you would be in the case of a breach of 1password + 2fa.

It would be royally annoying, but salveagable.

Re:Getting 2FA Right in 2019 by scrollaway on Thursday June 20, 2019 @11:34AM (#20233937)
It's two-step with a unique key every login. It wipes out phishing, password reuse and password leaks as vectors.
Re:Getting 2FA Right in 2019 by professorTuring on Thursday June 20, 2019 @11:48AM (#20234073)
It doesn't wipe phising. Phising is getting more and more complex, now phising sites ask you for your ToTP to gain control to your account in real-time. And that's one of the origins of FIDO2. - https://fidoalliance.org/fido2/
Re:Getting 2FA Right in 2019 by UncleMeat on Thursday June 20, 2019 @03:15PM (#20236262)
Unique passwords wipe out password leaks as a vector. Anything where you type in a code is also still phishable.
Re:Getting 2FA Right in 2019 by scrollaway on Thursday June 20, 2019 @09:02PM (#20238984)
People can still log into your account if your unique password leaks. It just prevents them logging into your other accounts.

Point is, TOTP isn't useless.

Re:Getting 2FA Right in 2019 by dmoy on Thursday June 20, 2019 @11:52AM (#20234107)
What's the second factor for 1password?
Re:Getting 2FA Right in 2019 by graeme on Thursday June 20, 2019 @03:32PM (#20236468)
They added 2fa with duo security + a few other methods.
Re:Getting 2FA Right in 2019 by spsoto on Thursday June 20, 2019 @11:00AM (#20233565)
+1 to this! Moreover, if you are invested into the Apple ecosystem, seamlessly integrates with iOS and comes with a WatchOS app, so you can see your 2FAs in the Watch. A huge convenience when doing TOTP from the phone.
Re:Getting 2FA Right in 2019 by giobox on Thursday June 20, 2019 @05:05PM (#20237376)
While you can use the watch for this, it's kind of a waste of time with the latest version of 1Password. 1Password automatically copies the TOTP to the clipboard for 1 minute after entering a password so you can paste the TOTP in immediately after 1Password has autofilled the initial login screen.

Works this way on Windows, iOS and macOS too. If you are using 1Password for TOTP this is synced anyway, making using the phone watch/app on a Mac or iPhone for the TOTP redundant. Just mash ctrl+v/cmd+v!

Re:Getting 2FA Right in 2019 by alchemism on Thursday June 20, 2019 @11:25AM (#20233841)
Use Authy. 2FA via account instead of device is hypothetically less-secure but as a practice for individual security, far better than being locked out of everything after the misfortune of losing a phone.
Re:Getting 2FA Right in 2019 by graeme on Thursday June 20, 2019 @03:33PM (#20236478)
Note that by default authy is vulnerable to sim porting. You can take over an authy account with a phone number.
Re:Getting 2FA Right in 2019 by secabeen on Thursday June 20, 2019 @06:44PM (#20238138)
You could take over an authy account, but does that give you the ability to decrypt the encrypted blob with the TOTP secrets in it? Authy says no: https://support.authy.com/hc/en-us/articles/115001950787-Bac...
Re:Getting 2FA Right in 2019 by graeme on Friday June 21, 2019 @12:32PM (#20244024)
Haven’t you lost all your 2fa keys at that point though? Decryption aside, that seems incredibly inconvenient.
Re:Getting 2FA Right in 2019 by secabeen on Friday June 21, 2019 @01:15PM (#20244476)
Well, maybe? If the SMS takeover attack results in the permanent loss of your phone number, then yes, you have lost everything. However, in most SMS takeover attacks, the attack only lasts some hours, where the attacker has control over your phone number and uses that to pivot into other accounts. With the Authy-style 2FA, they get your phone number, can then recover your Authy account, and get a copy of your encrypted blob, but they can't do anything with it. Any time they try to pivot to a different account, they don't have the 2FA and get blocked (ignoring account recovery attacks that bypass 2FA, that's out of scope). Eventually, you'd recover your SMS/phone account, and be able to download the blob, decrypt it, and have your keys. That's the model I'm seeing.

One protection that Authy should include is not letting someone who has recently performed an account recovery perform a blob deletion. That should require a delay.

Re:Getting 2FA Right in 2019 by pointillistic on Thursday June 20, 2019 @11:34AM (#20233940)
Authy only for Chrome, no Authy for Firefox.
Re:Getting 2FA Right in 2019 by slazaro on Thursday June 20, 2019 @12:46PM (#20234678)
Is that really a problem when you have a mobile app and a desktop app?