News for hackers. Stuff that matters.
Re:Passwordless: a different kind of hell? by Al-Khwarizmi on Tuesday January 16, 2024 @09:24AM (#39013527)
We are going way over the top with 2FA.

Why do I need to activate mandatory 2FA in services like GitHub repositories for hobby projects? It's a lot of extra effort for a questionable security improvement, and anyway, if someone impersonates me there, it's not the end of the world. If they care about end users (which my projects mostly don't even have) mark me as "unverified" or something, but let me avoid the hassle.

And in more serious services, like banking... since there is no such thing about 100% security (and in particular 2FA is far from it, e.g. if your phone is stolen with the banking app open, you're screwed), actually the most important thing is that the bank responds and can refund the money if fraud is committed, which it inevitably will for some percentage of unlucky customers. I view 2FA as a way to pass responsability to the customer ("we have very secure systems, so if someone transferred $X out of your account it's surely your fault"). Personally, I feel safer with less security and the bank worrying about fraud than the other way around, so I don't think they're protecting me when they implement this kind of stuff.

Re:Passwordless: a different kind of hell? by whartung on Tuesday January 16, 2024 @10:42AM (#39014547)
Github 2FA is made extra fun because they only offer a single mechanic of replacing it (that I know of), and that's using the recovery codes.

So, they forced me to use 2FA, and I dutifully printed out the recovery codes (don't write down your passwords, that's bad practice, but here's 20 recovery codes that stand between you and losing your account forever, so you know, manage that somehow).

When I bought a new iPhone, apparently none of my stored information got copied over. The apps did, but none of the information for those apps (for example, the TOTP info maintained by the authenticator I used). So, I went to log in to Github, opened up my authenticator app, and it was blank.

Thankfully I had the codes...back at home, in a drawer, guarded by a cat, so I wasn't completely doomed, but it ruined the day to be sure until I could get home and recover it and recalibrate my TOTP app.

Oh, guess who has a photo of their recovery codes on their phone now?

Re:Passwordless: a different kind of hell? by ta1243 on Tuesday January 16, 2024 @11:17AM (#39015052)
TOTP backups from phones is a major issue, from what I can tell you simply can't do it.
Re:Passwordless: a different kind of hell? by hot_gril on Tuesday January 16, 2024 @12:11PM (#39015774)
It's the Google Authenticator app's fault. The most popular TOTP app probably, and for a long time, they were saying it's intentionally designed not to let you copy the codes. Now you can, but there are lots of pitfalls and vague documentation. I'm not convinced that TOTP is a user-friendly design to begin with, but it didn't have to be this bad.

I don't fw TOTP now. There are other apps, but I'm done. I'll only use it if the iPhone Keychain has built-in support some day.

Re:Passwordless: a different kind of hell? by eppsilon on Tuesday January 16, 2024 @12:52PM (#39016329)
The iOS Keychain already supports TOTP.
Re:Passwordless: a different kind of hell? by hot_gril on Tuesday January 16, 2024 @01:53PM (#39017185)
Ah yeah, it's hidden away a little cause they don't call it TOTP and you need to manually copy codes into your settings app. Gonna see if I can set it up on Mac cause that's where I'll actually maybe need it.
Re:Passwordless: a different kind of hell? by Willamin on Tuesday January 16, 2024 @02:08PM (#39017478)
Set up should be simpler than needing to manually copy codes into your settings app.

When a QR code is present on screen that resolves to a TOTP seed, an additional context menu option should be present to "Add Verification Code in Passwords" or "Set Up Verification Code" or similar.

Here's a screenshot I nabbed from a way-too-wordy article on the subject: https://tidbits.com/uploads/2021/10/Add-Verification-Code-15...

Re:Passwordless: a different kind of hell? by 369548684892826 on Tuesday January 16, 2024 @11:56AM (#39015537)
2FAS [0] and I think Authy [1] as well have options for backing up your TOTP config

0: https://apps.apple.com/us/app/2fa-authenticator-2fas/id12177...

1: https://apps.apple.com/us/app/twilio-authy/id494168017

Re:Passwordless: a different kind of hell? by smallpipe on Tuesday January 16, 2024 @11:42AM (#39015332)
With a yubikey everything is stored on the key and the phone is just a terminal, so it travels between phones. Now if you lose the key that's another issue :)
Re:Passwordless: a different kind of hell? by ta1243 on Tuesday January 16, 2024 @11:42AM (#39015350)
Sure, so same problem. Less likely your yubikey will be stolen I guess, but less convenient too (something else to carry)
Re:Passwordless: a different kind of hell? by tnbp on Tuesday January 16, 2024 @03:06PM (#39018354)
But it's a key though. It goes on the keychain. Unless you don't carry around keys either, in which case yes, that would be very inconvenient indeed.

Also, your Yubikey is probably less likely to be stolen or break, but I figure it's much easier to lose it, which is why you might want to have two, just in case. And that's where it gets really inconvenient.

Re:Passwordless: a different kind of hell? by lannisterstark on Tuesday January 16, 2024 @03:53PM (#39018985)
>But it's a key though. It goes on the keychain. Unless you don't carry around keys either, in which case yes, that would be very inconvenient indeed.

Half the time I choose for TOTP authentication over Yubikey because "Oh god it's in the living room I don't want to go get it."

I do have a backup key mind, but that's USB-C instead of A. Maybe I should make another USB A backup.

Re:Passwordless: a different kind of hell? by hot_gril on Tuesday January 16, 2024 @05:41PM (#39020167)
Two yubikeys sounds ok, but I don't 100% trust that the second one works forever. Anyway, my keychain got ran over by a bus, and luckily the yubikey survived.
Re:Passwordless: a different kind of hell? by filleokus on Wednesday January 17, 2024 @02:34AM (#39024490)
The problem I've always had with the two yubikey-model (except for cost an inconvenience of course) is that you can't really keep the second key in cold storage, because you need to enroll it to new accounts. That doesn't happen every day, but probably regularly enough that you can't keep in a bank vault or something.

On the other hand, you know the second one works and haven't spontaneously bitrotted.

My nerdy preferred version would have been (pre-passkey) to have a hardware token where the root secret is generated out-of-device and exist on e.g a paper backup or something. Then I could just buy a new hardware token and inject the same token if the device dies.

Re:Passwordless: a different kind of hell? by tnbp on Wednesday January 17, 2024 @08:20AM (#39027242)
You can technically do this with TOTP if you save the secret instead of simply enrolling the account. You're not supposed to do that, though.
Re:Passwordless: a different kind of hell? by ta1243 on Wednesday January 17, 2024 @06:12AM (#39026223)
> But it's a key though. It goes on the keychain. Unless you don't carry around keys either, in which case yes, that would be very inconvenient indeed.

Even if I do have keys, they are safe in my pocket, not sticking out the side of a fragile USB port.

There's then the whole mobile problem -- yubikeys are perhaps fine with my laptop, but how about when I'm using a mobile and my laptop is in my bag, or at home?

And OK, lets say I solve all that. How do I add a second key?

The beauty of SMS for 2FA is that my phone number sticks with me. If my phone is lost or stolen, a new sim card is sent to my home and I have access to all my 2FA authenticaitons. It also ties in well with my phone -- if I get an SMS with a number 123456, it appears as an automatic insert option on the form, no need to go to another app to copy a number and switch back to paste.

TOTP and Yubikeys do not match the usability of SMS.

Re:Passwordless: a different kind of hell? by tnbp on Wednesday January 17, 2024 @07:52AM (#39026996)

  Even if I do have keys, they are safe in my pocket, not sticking out the side of a fragile USB port.
It's difficult, though not impossible, to break your USB port with a Yubikey due to its shape. It's not a regular USB plug and will come out quite easily.

  but how about when I'm using a mobile and my laptop is in my bag, or at home?
USB-C and NFC variants are quite common.

  And OK, lets say I solve all that. How do I add a second key?
The same way you add the first--most of the time, you have to scan a QR code. You can scan it more than once.

  The beauty of SMS for 2FA is that my phone number sticks with me. If my phone is lost or stolen, a new sim card is sent to my home and I have access to all my 2FA authenticaitons.
I'm not giving you my phone number, and mobile providers are known to send replacement SIM cards to random strangers if they ask nicely.
Re:Passwordless: a different kind of hell? by justanorherhack on Tuesday January 16, 2024 @01:16PM (#39016586)
Use ravio on io’s, lets you copy, backup and duplicate them to other places.
Re:Passwordless: a different kind of hell? by MrDrMcCoy on Tuesday January 16, 2024 @01:55PM (#39017223)
That's why I store them in Bitwarden.
Re:Passwordless: a different kind of hell? by Vinnl on Tuesday January 16, 2024 @03:08PM (#39018374)
Oh huh, I switched from AndOTP to Aegis and was able to export from the former and import into the latter. Then on desktop I'm using Authenticator [0], which can import from both.

[0] https://flathub.org/apps/com.belmoussaoui.Authenticator

Re:Passwordless: a different kind of hell? by lannisterstark on Tuesday January 16, 2024 @03:52PM (#39018972)
>TOTP backups from phones is a major issue, from what I can tell you simply can't do it.

I've done it in Aegis multiple times. They even allow you to export the 'database' (which iirc is just an encrypted json file)

Re:Passwordless: a different kind of hell? by tzs on Tuesday January 16, 2024 @05:11PM (#39019871)
What I do is when I receive a QR code to set up TOTP while creating a new account is to take a screenshot of that code and save an encrypted copy of that screenshot. Then it is just part of my ordinary data backed up as part of my normal backups.

If I ever want to set up a TOTP app on a new device it is not hard to decrypt all my saved QR codes, open them all at the same time in Preview on my Mac, select the option to show one page at a time, and then get into a nice rhythm using one hand to scan on the new device and the other to hit "page down" on the Mac keyboard.

If the site also gives a text form of the shared secret from the QR code I save that too. Having the text form around is handy in case I need to login but for some reason don't have the devices where I have the TOTP apps. Given the text form of the code, this command, from the oathtool package, will give the current login code:

  $ oathtool --totp -b "secret"
That's if the secret is encoded in base32, which they commonly are. If it is in hex leave off the -b.

If the site doesn't give a text form of the shared secret I read the QR code to get it. If you do that be careful. Some QR code reader apps do the processing server side which you probably don't want...and they don't necessarily make that clear in the description. I had to try a couple of apps from the Mac app store before finding one that did it client side. (Then I found out that Mathematica's BarcodeRecognize function can do it, and deleted the QR code reader app. Now I just open Mathematica, type BarcodeRecognize[], drag and drop an image file that has the QR code between the brackets, and hit shift-return).

Re:Passwordless: a different kind of hell? by hot_gril on Tuesday January 16, 2024 @05:39PM (#39020142)
Why use a QR code reader app instead of the built in camera app?

Personally, I email the backup codes to myself. Yes it's less secure in theory, but the only time I'm using totp is against my will.

Re:Passwordless: a different kind of hell? by tzs on Tuesday January 16, 2024 @06:34PM (#39020744)
> Why use a QR code reader app instead of the built in camera app?

The QR code is on the screen of my desktop Mac. The camera is right above the screen facing me and can't see what is on the screen.

I could read it with the built in camera app on my iPhone or iPad, but that just tells me it is a QR code for the TOTP authenticator app I use and opens that if I tap. I don't see a way to get it to tell me the content of the QR code in text form. Even if it had a way that would be on the phone and I want the text to save it on the Mac.

Re:Passwordless: a different kind of hell? by hot_gril on Tuesday January 16, 2024 @06:38PM (#39020780)
Oh, got it. Classic problem with QR codes. Some people get around it with two mirrors, haha.
Re:Passwordless: a different kind of hell? by shortsunblack on Tuesday January 16, 2024 @07:41PM (#39021471)
Use Aegis.
Re:Passwordless: a different kind of hell? by samcat116 on Tuesday January 16, 2024 @12:54PM (#39016344)
there are other methods for 2fa recovery. The main one involves an SSH key you've previously added to your account.
Re:Passwordless: a different kind of hell? by qhwudbebd on Tuesday January 16, 2024 @03:38PM (#39018810)
Using said ssh key as one of the 2fa choices for standard login would be quite a nice feature too...
Re:Passwordless: a different kind of hell? by nlawalker on Tuesday January 16, 2024 @12:09PM (#39015722)
> Why do I need to activate mandatory 2FA in services like GitHub repositories for hobby projects?

Same reason Microsoft forces Windows updates so aggressively - because if some kind of security breach makes the news, even if it's clearly due to poor user choices (poor password choices and/or security; repeatedly opting out of critical security updates), it's always the vendor/service provider that looks bad.

Re:Passwordless: a different kind of hell? by PurpleRamen on Tuesday January 16, 2024 @11:09AM (#39014964)
> Why do I need to activate mandatory 2FA in services like GitHub repositories for hobby projects?

Because your hobby-project can emerge to be the backbone of someone's multibillion dollar-business, or a small gear in a million other projects, and you will get targeted for a supply-chain-attack.

Re:Passwordless: a different kind of hell? by massysett on Tuesday January 16, 2024 @12:03PM (#39015641)
You are right. However this cost should really be imposed on the multi-billion-dollar business and not on the author of the hobby app.
Re:Passwordless: a different kind of hell? by PurpleRamen on Tuesday January 16, 2024 @12:20PM (#39015889)
How should that work? Nobody knows who is using which part from which repo. And it's not just about big business. There are all kind of small communities and little apps, extensions, etc. with some small communities. Most of them don't even make money, but are juicy targets for some small fast money.

Forcing everyone to raise their security and gain awareness about those things is a huge win for everyone, and only a little problem for the individual user. And it seems to be only a phase anyway, as most people & services are moving to more comfortable solutions over time.

Re:Passwordless: a different kind of hell? by massysett on Tuesday January 16, 2024 @01:21PM (#39016651)
Billion-dollar businesses can pay full-time professionals for support. They can hire staff or contract with a vendor. They can audit the free software they use or, like the good old days, pay for software whose vendors maintain it.

Or they can use hobbyist-written software for free, which is just fine, but don’t expect the hobbyist to support it for free.

Re:Passwordless: a different kind of hell? by simoncion on Tuesday January 16, 2024 @12:58PM (#39016402)
> How should that work?

By the users of the software I publish noticing the license that states that while I hope this software is useful to them, it is provided with `"NO WARRANTY, NOT EVEN FOR FITNESS OF PURPOSE" and planning accordingly.

If you're an entity that wants to ensure that software you use from a source that you have approximately zero power over (and has explicitly provided NO warranty for that software) is and continues to be fit for purpose, you're going to have to inspect that software at a point in time, determine if it is fit for your purposes, and carefully inspect every future version of that software that you're considering using.

There really are no shortcuts. Requiring one to drink a Confirmation Can to log in doesn't change the math here.

Re:Passwordless: a different kind of hell? by parineum on Tuesday January 16, 2024 @02:43PM (#39018037)
> How should that work?

Fork and change the readme to reflect that this version is hardened for big business.

Re:Passwordless: a different kind of hell? by bigstrat2003 on Tuesday January 16, 2024 @11:58AM (#39015559)
So implement those tighter security controls when they make sense. Don't force them on everyone when only a small fraction of cases are worthwhile.
Re:Passwordless: a different kind of hell? by zamadatix on Tuesday January 16, 2024 @01:32PM (#39016807)
Why should a multi-billion dollar business or a million other projects trust my code simply because GitHub made me 2FA to sign in? I may well decide the next push rewrites half the project in a breaking way on a whim or get an offer for $100k to give control of the project to the bad actor or just decide I don't like big corp anyway and be the bad actor myself.

Turning providing source code into promising you'll follow other's desires on how it should be worked on is a recipe for disaster while simultaneously not really making hobby projects low risk to rely on anyways.

Re:Passwordless: a different kind of hell? by judge2020 on Tuesday January 16, 2024 @02:38PM (#39017954)
I think it's more about GitHub's image and its self-imposed viewpoint that it needs to keep the software landscape secure. Requiring 2fa drastically reduces the number of ways a repo that is a building block for x% of a country's GDP gets compromised - now the only path is if the author intentionally hands over the repo/their account to a bad actor or e.g. posts their 2fa secrets on the internet for anyone to use.
Re:Passwordless: a different kind of hell? by zamadatix on Tuesday January 16, 2024 @02:46PM (#39018070)
There are also plenty more ways for it get compromised which don't involve the owner handing over anything - say simply accepting a merge which adds a cool feature while still compromising the other users of the project. Github still gets the same marginal image impact risk because ultimately the security of billions of dollars or X% of a country's GDP isn't protected by requiring a hobby developer to 2FA their afternoon code changes. You can't make them interested in protecting your billions via secure account login. Instead it's done by the billion dollar companies or countries themselves because they are the only ones with resources large enough to protect that much asset in a useful way. All this ignoring the same impact can be had by the author simply having a mistake and not fixing it over holiday vacation, no malicious actors required in the first place.
Re:Passwordless: a different kind of hell? by Shank on Tuesday January 16, 2024 @09:25AM (#39013547)
Just turn on Passkeys on GitHub, then you don't need 2FA/TOTP. It's also faster.
Re:Passwordless: a different kind of hell? by mminer237 on Tuesday January 16, 2024 @09:36AM (#39013672)
My password manager autofilling will always be faster than any other option, especially one that requires me to pull out my phone, navigate to my authenticator app, switch to your app (which will only become more time-consuming as more sites require it), then type in the code by hand.

The only thing that can compete with password managers on user experience is just actually remembering they're logged in instead of pointlessly logging them out every single day for no reason.

Re:Passwordless: a different kind of hell? by mimsee on Tuesday January 16, 2024 @09:47AM (#39013817)
1Password supports Passkeys, not sure for others. But it's one click on the login page and you're in.
Re:Passwordless: a different kind of hell? by jeroenhd on Tuesday January 16, 2024 @10:21AM (#39014225)
Passkeys work without a phone, or a second device. Windows Hello/TouchID will verify you almost instantly. There are also browser extensions you can use, like 1Password or Bitwarden, to do the passkey flow for you if your device or OS lacks quick authentication options.
Re:Passwordless: a different kind of hell? by samcat116 on Tuesday January 16, 2024 @12:55PM (#39016368)
> My password manager autofilling will always be faster than any other option

Passkeys will be faster.

Re:Passwordless: a different kind of hell? by whartung on Tuesday January 16, 2024 @12:31PM (#39016034)
I don't see how Passkeys eliminates the need for 2FA.

Seems to me, and I may not understand it, but it seems to me that Passkeys are more of a way to eliminate having to constantly re-enter you password, but do not eliminate passwords.

For example, if I set up a Passkey, that's bound to a specific machine/browser/phones/whatever. But if I log in from another device, there are no Passkeys, so I just need to use my password. If my lose my machine/browser/phone, I'm in the same boat -- new device, and I need to login. Thus the password.

I don't use any syncing system, I'm not on iCloud, or use apps, or anything like that, so there's no mechanic for distribution of passkeys. Plus that wouldn't work if I wanted to log from my friends laptop, or something like that.

Am I mistaken in how this works? How does enabling Passkeys eliminate 2FA?

My issues with 2FA aren't so much the 2FA part (yea, it's a pain in the neck, "one more step", etc., but, it is what it is). My issue is that if my 2FA is lost, and my recovery codes are lost, I'm toast. There's no other way to recover. No other mechanic, at least for Github.

Re:Passwordless: a different kind of hell? by asmor on Tuesday January 16, 2024 @02:08PM (#39017479)
> I don't use any syncing system, I'm not on iCloud, or use apps, or anything like that, so there's no mechanic for distribution of passkeys. Plus that wouldn't work if I wanted to log from my friends laptop, or something like that.

iOS and Android can also just keep local Passkeys where you scan a QR code, though of course if you don't backup anything anywhere you will always have a redundancy problem with any 2FA mechanism.

Passkeys are supposed to not be a single authenticator either, so you can enroll another Phone or a Yubikey (or also your local TPM, binding to your user account, for convenience), but not all services support that in practice.

Re:Passwordless: a different kind of hell? by pmontra on Tuesday January 16, 2024 @12:25PM (#39015946)
I stopped logging in into GitHub since then. My customers are using Bitbucket right now so the only reasons to log into GitHub would be to search the code of some project or opening an issue to one. Luckily I can search issues without being logged in and about opening issues, I feel a little bad but I don't open them anymore. It was my way to contribute to open source, it's gone because of too much friction.
Re:Passwordless: a different kind of hell? by hot_gril on Tuesday January 16, 2024 @05:43PM (#39020181)
Making login harder is Microsoft's classic thing. At least they didn't do it like Minecraft, locking out tons of pre-existing users.
Re:Passwordless: a different kind of hell? by devnullbrain on Tuesday January 16, 2024 @01:37PM (#39016905)
Github is an unfortunate choice of example because the replies have fixated on it but there are a large number of sites that impose security cargo-culting to secure things that just don't need it. e.g. Why do I need to make an account with a password to pay a bill?
Re:Passwordless: a different kind of hell? by watwut on Tuesday January 16, 2024 @01:56PM (#39017247)
Personally, I think that they simply don't like to be go to free storage for all of our personal or hobby or open spurce projects.

This way, free users are less likely to use github while paying corporations will stay.

Re:Passwordless: a different kind of hell? by qhwudbebd on Tuesday January 16, 2024 @03:32PM (#39018731)
I spent a little time trying to decide whether GitHub's 2fa was genuinely an extra factor whose compromise (with an uncompromised password) wouldn't weaken security vs a situation where it hadn't been set up at all.

In that case, presumably I could embed the totp key in a bookmarklet in the conveniently-sized 'public bio' field on my profile so I can complete it on whatever device I happen to be using, and effectively opt out?

But I'm really not convinced they aren't fuckwits and wouldn't treat the 'second factor' as an authoritative single factor in some circumstances (e.g. password reset) which wouldn't be unauthenticated if 2fa wasn't set up.

I'm also not convinced one can even contact anyone at GitHub clueful enough to answer that question authoritatively nowadays rather than reading off a script.

Re:Passwordless: a different kind of hell? by Al-Khwarizmi on Tuesday January 16, 2024 @05:17PM (#39019924)
That's another pet peeve of mine with 2FA, which I didn't mention to avoid posting a wall of text: in many cases (no idea if GitHub in particular is one of them), the second factor totally dominates (allowing you to recover the first factor or logging in without it) so it effectively is 1FA, where the factor is almost always your phone. Lose your phone, and you're screwed.
Re:Passwordless: a different kind of hell? by rurp on Tuesday January 16, 2024 @04:26PM (#39019381)
2FA can also be a way to get more private data, like phone numbers, out of users; which will be used for things having nothing to do with security or helping the user. Facebook did exactly this and I'm sure other companies have as well.

2FA increases risk of the account owner losing access to their account. There are a huge amount of posts online from people livid about getting locked out of their account because of some mundane reason like their phone breaking. That risk rarely seems to be considered by the crowd pushing 2FA everywhere and anywhere, probably because it happens most often to non-techies.

Things that seem easy or obvious to folks working in tech are often a huge hurdle for regular users, who make up the majority of users for many products. Many tech companies could do a much better job of considering the needs of their users, rather than building what the devs and product managers personally think is cool.

Re:Passwordless: a different kind of hell? by tim333 on Wednesday January 17, 2024 @06:10AM (#39026200)
>if your phone is stolen with the banking app open, you're screwed

With my one not really as you still have to enter a simple password to do anything - six letters, no dumb requirements for capitals and odd symbols.

There is something to be said for simple passwords that people can actually remember. They don't work in situations where hackers can try loads of attempts electronically but where you have to type them if they are quite good really.

Re:Passwordless: a different kind of hell? by sandmn on Wednesday January 17, 2024 @07:38PM (#39035823)
While 2FA is everywhere but whether it should be enabled by default or not is very subjective.

Not that long time ago there was a discussion about 23andMe data leak through user accounts that reused emails/passwords on some other compromised site. I was surprised how many people here argued that 23andMe should be responsible for this data breach because it's common knowledge that people reuse passwords all the time and yet 23ndMe didn't make 2FA mandatory until after the leak.

Personally I prefer to have a choice on whether 2FA should be enabled or not but I also understand companies that don't want to be blamed for something that is entirely user's fault so it's much easier for them to make 2FA mandatory, even though with phone apps it's not really 2FA since it's the same device.