News for hackers. Stuff that matters.
Re:GitHub Archive Program by Latty on Wednesday November 13, 2019 @03:08PM (#21528890)
If you can talk your way past two factor auth, it is useless.

I can see the argument for being forceful about prompting you to write down backup codes or whatever, but fixing that after-the-fact is something they should absolutely not been doing.

I do think that sites should offer better options for recovery. NearlyFreeSpeech do a really good job of this, offering seven methods of recovery and letting you decide how many you need to fulfil to be given access and which you want to configure. However, things like checking photo ID and more "offline" options are expensive to support, so I get why that is rare.

Re:GitHub Archive Program by godelski on Wednesday November 13, 2019 @07:56PM (#21531648)
> If you can talk your way past two factor auth, it is useless.

No, it just means you use a different 2FA. Here's some examples.

- Gov ID

- Pushing to a private repo

- Checking if IP matches historical records (hell, since they're fingerprinting everyone, why not use that?)

There's problems with 2FA. Mainly that it is on your phone. Phones are pretty valuable devices and it isn't unlikely that they get stolen. Even if Google backed up Authenticator to Drive, how do you get Authenticator back on your new phone?

It isn't hard to come up with a hundred scenarios where things fall apart. This is why there are different levels of security. But my GitHub isn't so sensitive that if I lose access I don't want anyone to ever get access. Yet at the same time it is sensitive enough (and GitHub is attacked enough) that I don't think just a user name and password is sufficient. Where's the middle ground? Even with YubiKeys I have to have multiples (as a backup in case I lose one). There's such a thing as "acceptable security levels."

We're trying to make things easier and safer for humans. But that doesn't mean they aren't still going to be human.

Re:GitHub Archive Program by dvcrn on Wednesday November 13, 2019 @10:14PM (#21532451)
Not if you didn't previously acknowledge using these kinds of documents as 2FA. I set 2FA fully aware that if I lose my recovery codes I'm done. I don't want anyone ever to be able to restore my accounts without the codes. There are so many attack vectors with government documents. Just one service hacked that I had to upload them for verification and that kind of information can become 'public'. Humans and social engineering are one of the biggest attack vectors nowadays because of things like "humans make mistake, let's reset his account because he knew the last digits of the creditcard used and uploaded an ID".

Gandi handles this nicely with a checkbox in the settings that explicitly tells support to never ever restore the account if 2FA is lost

Re:GitHub Archive Program by ProZsolt on Thursday November 14, 2019 @07:31AM (#21534876)
Gov ID would only work if you show it in person. A lot of people have a photocopy of ID. IP address is easy to fake.

The main problem is with targeted attacks. That's why SMS not secure

Re:GitHub Archive Program by godelski on Thursday November 14, 2019 @04:35PM (#21539699)
I think you're missing a key part of my point.

> This is why there are different levels of security. But my GitHub isn't so sensitive that if I lose access I don't want anyone to ever get access. Yet at the same time it is sensitive enough (and GitHub is attacked enough) that I don't think just a user name and password is sufficient.

Yes, there is stuff people would rather have destroyed than get into the wrong hands. But I personally can't think of any. But I do think we all agree that a password alone is not secure enough. What I'm saying is that there shouldn't be two choices. There should be middle grounds. SMS is not a great recovery tool for 2FA because it is trivial to fake. Specifically with my GitHub I'm okay with my security not being invulnerable to nation state actors. But I don't want it to be hacked because of a dictionary attack with some modifications. If someone has a copy of my passport then there's much bigger problems that I have than my GitHub being hacked.

The key part here is that there should be varying levels of security. The two levels we have (no 2FA vs 2FA) is too small.

* as to the IP: I was suggesting that it was being used in combination with other stuff. Not a standalone verification. Just like your phone number should never be a standalone verification. We're talking multifactor.

Re:GitHub Archive Program by Latty on Thursday November 14, 2019 @06:52PM (#21540885)
The thing is, GitHub shouldn't care what you want here.

GitHub is a social site, and the users accessing repositories are just as important as those that own them. You might not care if your account is compromised, but if other people trust your repoisitories and they get attacked through your compromised account, that is a problem.

Re:GitHub Archive Program by anoncake on Thursday November 14, 2019 @06:23PM (#21540640)
> Gov ID would only work if you show it in person. A lot of people have a photocopy of ID.

Sounds reasonable. What's important is that you can securely recover the account at all, not that it's cheap.

Re:GitHub Archive Program by soheil on Wednesday November 13, 2019 @03:43PM (#21529308)
> If you can talk your way past two factor auth, it is useless.

> However, things like checking photo ID and more "offline" options are expensive to support, so I get why that is rare.

For you to characterize my efforts with Github support as "talking my way past it" is absurd. I was never once asked to provide a photo ID, etc. something I would have gladly complied with.

Re:GitHub Archive Program by zaarn on Wednesday November 13, 2019 @04:13PM (#21529643)
Unless Github obtained your photo ID or something similar before you enabled 2FA, that's kind of pointless to ask for.
Re:GitHub Archive Program by soheil on Wednesday November 13, 2019 @04:48PM (#21529975)
They can re-activate the keys they automatically purged from my account, I still have their associated private keys. My github profile also has detailed information in its bio section including my past employer and links to my various social media/website. They could simply validate my ownership of one of those accounts etc.
Re:GitHub Archive Program by zaarn on Thursday November 14, 2019 @12:24AM (#21533009)
The social media websites could have been hacked by some attacker, the private keys could have been obtained as well. Or put there by an attacker that is now locked out by 2FA.

The entire point of 2FA is that it's a second factor and no way around it without a second factor that is verifiable without doubt.

Re:GitHub Archive Program by kortilla on Thursday November 14, 2019 @03:43AM (#21533853)
Nope. Many 2FA setups have a way to workaround the second factor if it’s missing. Recovery codes, emails to secondary addresses, faxing an ID, etc etc.
Re:GitHub Archive Program by zaarn on Thursday November 14, 2019 @06:25AM (#21534572)
If you can social engineer yourself around 2FA it's not a proper 2FA setup.
Re:GitHub Archive Program by soheil on Thursday November 14, 2019 @11:07AM (#21536516)
So they could hack your other social media accounts possibly also with 2fa enabled but not be able to steal your back up codes smfh
Re:GitHub Archive Program by calvinmorrison on Wednesday November 13, 2019 @07:15PM (#21531324)
Yeah seems simple to ask you to sign message with your key to prove its you!
Re:GitHub Archive Program by 0xffff2 on Wednesday November 13, 2019 @04:13PM (#21529646)
What good would a photo ID be, really? It's not like they have an existing copy to compare it to, and a photo-copy quality copy of an average ID would be pretty simple to fake.
Re:GitHub Archive Program by closeparen on Wednesday November 13, 2019 @06:32PM (#21530990)
You can talk your way past it at AWS. Need a medallion signature guarantee (more intense form of notary) from a bank. It’s not easy but you can do that.

After that experience I switched to Authy, which does an encrypted cloud backup of your TOTP secrets.

Re:GitHub Archive Program by exolymph on Wednesday November 13, 2019 @03:56PM (#21529456)
Nearly Free Speech is awesome <3 Anyone reading this, if you want a web host with hacker values — not in the blackhat sense, in the old school sense — check 'em out!
Re:GitHub Archive Program by Latty on Thursday November 14, 2019 @07:06PM (#21540988)
They are pretty unique and are good, although they are slow to update the service and it's starting to hit some real issues for me.

The most relevant issue for me being the lack of U2F (now WebAuthn, I guess) support. It is also really annoying you can't have restricted SSH keys to allow for automation that is locked down to single sites.

They have had those issues on their feature voting for years.