6 ms·
TOTP for 2FA is incredibly easy to implement. So what's your excuse?
- Arch-TK 4y agoThis reminds me of the one time someone tried to get me to implement TOTP in an environment without an implementation of HMAC-SHA1 (or SHA1 itself for that matter). There was also no easy way of implementing HMAC-SHA1. While protesting the insanity of the situation I produced a hacked together implementation using MD5 (which was, somehow, available).
- ignoramous 4y ago> While protesting the insanity of the situation I produced a hacked together implementation using MD5 (which was, somehow, available). Not sure of its cryptographic guarantees but one can sponge MD5 for more goodness: https://archive.is/pqFnv https://archive.is/pqFnv
- ztcfegzgf 4y ago"you don’t have to worry about phishing" .... TOTP is also vulnerable to phishing, same as SMS.
- xienze 4y ago> certainly much better than SMS. And it’s much easier to implement than SMS as well. Certainly it is, and where sites have it available I prefer to use it over those stupid SMS codes. But -- having worked closely with marketing/UX teams in the past, I'm fairly certain the hurdle isn't technical, it's that most users can at least sorta understand 2FA in the form of an SMS message, not so much using a dedicated password manager app that keeps track of TOTPs. I like to think this explains why lots of "big" sites that deal with customers from all walks of life (like banks and utilities) offer, at best, SMS 2FA.
- pards 4y agoThis. Banks have to cater to customers with all levels of technical abilities for compliance, plus they may rely on older on-prem IAM systems that don't support TOPT.
- fullstop 4y agoVanguard actually supports fido2/webauthn. I registered two keys and they sent me two confirmation letters in the mail, one for each key.
- itsrajju 4y agoBut what is stopping them from offering both? You can have the SMS 2FA as the default option, but also offer TOTP for the technically minded.
- xienze 4y agoGenerally the justification is "hey, we offer one form of 2FA, that's pretty good. This TOTP thing is for paranoid nerds." Bosses see it as extra work for ~no gain, what's the point? You can explain the technical superiority of the approach until you're blue in the face but they see it as just another way to do what's already implemented.
- GoblinSlayer 4y agoThe technically minded can simply use a strong password.
- bvrmn 4y agoThis! There is no additional security for aware users with MFA. Make MFA turned on by default, ok, but for god's sake if you provide only SMS-based 2FA, allow it to be disabled.
- VLM 4y agoIts not socially acceptable to say in public that you don't know how to text, so SMS 2FA has zero help desk support costs. It is socially acceptable to say you as a revenue generating customer don't know every little detail of TOTP, so the help desk for all practical purposes has to become a TOTP app help desk and provide support for every app ever written and every use case imaginable including device upgrades, etc. There is no upper limit to technical support. "Your helpdesk told me to install this app and now my battery is dead I demand compensation" TOTP is pretty expensive to implement.
- samuli 4y agoYou'll need to implement views for handling recovery tokens, processes for people losing their second factor due to stolen phone or corrupted app, and FAQ pages for questions about why my second factor is not accepted.
- FiloSottile 4y agoBingo. The support cost of MFA, especially non-SMS methods where some of the recovery process is delegated to the mobile operator, is the top-level bit. It’s frustrating to see technical people discount or ignore that side of the deployment work, because that’s the kind of issue that actually blocks most security and cryptography measures in practice. If I had a thousand dollars for every time I heard “just make the user keep a key safe” I could fund so much UX research :)
- sneak 4y agosneak’s law: users can not and will not securely manage* key material * generate, authenticate, distribute, back up
- LinAGKar 4y agoGoogle Authenticator AFAIK doesn't even let you backup the codes. When your phone is lost or breaks, you have to reset every account by some other way.
- unethical_ban 4y agoUse Authy, 2faone or any other totp tool than google authenticator. Shame on Google, honestly, for not enabling a backup mechanism for that. If you can’t do it right, don’t do it at all.
- LinAGKar 4y agoI use AndOTP. But I imagine most people will use use Google Authenticator and not think about backups until it's too late.
- exabrial 4y agoSms hijacks a credit check the phone carriers used on most people, reducing account spam. Unfortunately that’s why. Should be illegal
- BenjiWiebe 4y agoWhen do you get a credit check for getting a phone? I sure haven't.
- wccrawford 4y agoIf you need to go in debt to buy a phone (without just using an existing credit card) you're going to get a credit check. I don't actually know anyone who has gone through that, but I have no doubts that it happens.
- fasteo 4y agoIn my experience, TOTP for 2FA is incredibly difficult to deploy at scale. That's the reason for SMS success: It is indeed incredibly easy to implement and deploy at scale.
- anamexis 4y agoWhy? The only difficult thing I could see would be securely distributing the secret key.
- zerkten 4y agoI think they mean "at scale" to refer to a large number of users. Any service with a significantly large number of users is going to have a lot of people with limited technical aptitude that can't setup 2FA, lose access when changing their phones, etc.
- fasteo 4y agoI couldn't explain it any better than this
- wink 4y agoI hardly blame the users though. If you actually have a certain amount of 2FA methods, the order in which they want to be migrated is often contradicting. So for some of them what you should do (according to docs): Unlink 2FA, migrate phone, link 2FA. For others you can spend an hour searching their docs and there's nothing - and then you find out that you should set up 2FA on the new phone and then somehow recover. It's aggravating, really. Then there are some where you just hope for the best because no docs exist at all.
- zerkten 4y agoI wasn't trying to blame the users. It's more a situation that you have to spend time managing. Many of the problems and situations can be understood ahead of time, but people avoid the early investments needed to smooth them out ending up in the situation you described. People that do recognize the issues get waved away or asked to work on "higher priority" items because it's viewed as manageable by the support team. It's really a core user experience issue.
- throwawaaarrgh 4y agoMy excuse is I hate using TOTP. Stop making me open an app, wait for it to load, read numbers, type it in. If you have a situation where you have to auth multiple times, it's even more annoying. Other modern methods are less annoying and (arguably) more secure.
- ok123456 4y agoYou don't need an app to do TOTP. You can do it from a command line if you have the secret.
- dingaling 4y agoAnd you could do it with pencil and paper if you wanted. If you were very quick at maths. The point is that it places a requirement on the user and interrupts their workflow when they just want to Get Stuff Done. And if it stops working then the burden is on the user to make it work again.
- ok123456 4y agoThat's true of any authentication mechanism. It works until it doesn't. If you wanted to work this into a traditional terminal workflow "generateToken my.host && ssh my.host" TOPT is the least worst way of doing 2FA. I wish I lived in a world where this sort of thing wasn't necessary, but if you have a service where there are accounts that are worth a lot of money in the real world, you need to have some kind of 2FA.
- throwawaaarrgh 4y agoRSA SecurID requires their app for TOTP because they have some secret company seed, or something.
- ok123456 4y agoProbably some sad attempt at keeping their enterprise customers locked in.
- deleted 4y ago[deleted]
- tialaramex 4y ago> you don’t have to worry about phishing TOTP is almost purpose made to be phished. There are just six digits, most people are getting them from a separate device, and you can type them into the box on phishing-site.example just as easily as real-site.example, there's no indication this might not be a good idea, and hey, phishing-site.example can even give you a "Thumbs up" indication that you got the digits right, hooray. All the bad guys need is one of dozens of ready-made tools to eat the input on phishing-site.example and feed it into real-site.example, stall the duped user and give them access. So this is something you "don't have to worry" about only in the same sense as duplicating mag stripe cards, or somebody cutting off your bike lock, or a dozen other things we know crooks do all the time with low effort and little risk of being caught.
- latchkey 4y agoI just posted something for free on FB marketplace. Someone almost immediately contacted me via FB messenger "interested" in my item. They asked me to txt them (area code was same as my city). I texted them. Then, they asked me to verify a code and send the 5 digit code to them. Sure, ok (lol). I receive a code from google voice. Then they got really angry because I sent them 69420. I then tried to send them some tubgirl (nsfw) pictures, but apparently they don't see those. About 20 minutes later, I got yet another "person" doing the same exact thing, but by then, I was bored and just blocked them.
- 0cf8612b2e1e 4y agoCan you close the loop on this for me? Presumably they still would have required your password to do something nefarious, so I do not understand how they potentially profit from this.
- latchkey 4y ago¯\_(ツ)_/¯, your comment was originally flagged and has been made alive again. I'm honestly not sure what the code was for. My guess is that my FB uid is associated with my email address in some database somewhere, so let's assume they have my email. The phone number I originally texted them from is not connected with anything 2FA. I almost never have 2FA associated with SMS, since that is just dumb and when I do, it is with another number that I don't use as my main phone number. So, maybe they have some account of mine somewhere that can be validated with a 2FA sms. If they have my email, they can request the code for that account, plug in my email address + code and somehow get into my account. I don't know. It was odd... I kind of wish I had some sort of honeypot account I could have used to see what got 'hacked' after giving them the real code.
- est 4y agoOff topic: is it secure to replace password with 2FA altogether? If not, what about some kind of 2FA variant?
- raspyberr 4y ago2FA isn't some app. It's an idea. That multiple and different forms of authentication increase security. You can't just get rid of one of the factors. You at least have to replace it with another form. So yeah you can have password + totp, but if you get rid of password then you just have single factor and have lowered your security.
- dns_snek 4y agoThis doesn't exactly answer your first question, but WebAuthn exists as part of the FIDO2 framework. One of the authentication modes it provides is passwordless authentication where all you need to log in is your hardware token like YubiKey or platform token like Apple/Google Passkeys. https://www.yubico.com/authentication-standards/fido2/ https://www.yubico.com/authentication-standards/fido2/ https://webauthn.guide/ https://webauthn.guide/
- nokya 4y ago- What's your excuse? - Our CISO is both incompetent and a poor leader. Next question? :)