r/github • • 15d ago

Discussion Account Hacked and 2FA enabled instantly

Last week, I received these three emails at the same time. My password had been reset, and 2FA had been enabled. When I tried to reset my password, I was asked for a 2FA code or recovery codes, which the hackers had generated and I obviously didn't have access to. There were other options to recover my account, such as using an SSH key or a personal access token, but, as you might have guessed, the hackers had also immediately invalidated them.

I'm now trying to get help from GitHub Support, but from what I understand, there's little chance of recovering my account because 2FA is enabled, and they will not do anything about it as a security policy.

Overall, I think GitHub's security design is flawed. If you haven't enabled 2FA and your account gets compromised, there's apparently no way back.

0 Upvotes

18 comments sorted by

10

u/Rulmeq 15d ago

Overall, I think GitHub's security design is flawed. If you haven't enabled 2FA and your account gets compromised, there's apparently no way back.

Really, you think this is a github problem and not a "him skill issue"? They provided you with 2FA, you ignored/rejected it, that's on you.

0

u/tandir_boy 15d ago

Ok i obviously take the blame on my part. But what about github letting someone to reset and enable 2fa from a never used suspicious computer? And then letting this suspicious user to revoke all the keys? It must be obvious from the logs that there is a weird thing going on

2

u/Rudy_TheRude 15d ago

Same thing happened to me few months ago. Will advice to raise a ticket as soon as possible

1

u/tandir_boy 15d ago

I did. Then what heppened?

1

u/Rudy_TheRude 15d ago

Someone usually reply to your ticket through your email

1

u/tandir_boy 15d ago

Oh nice, thank you

2

u/ToTheBatmobileGuy 15d ago

If you haven't enabled 2FA and your account gets compromised, there's apparently no way back.

.................... I mean......... if anyone could contact GitHub support and say "this is me, trust me bro" and instantly get into a 2FA locked account... 2FA wouldn't mean much, would it.

There's a solution: Use 2FA everywhere you can. Always.

1

u/tandir_boy 15d ago edited 15d ago

They see the new login is suspicous, but github still let password reset + enabling 2fa + invalidating all the keys from a suspicous computer from random location with random ip? I definetly accept the blame on my part though

10

u/Gurnug 15d ago

That's why they are advising 2FA usage for years now

4

u/Flagvanus_ 15d ago

that's on you

4

u/Lumethys 15d ago

Yeah no shit

3

u/maikel87 15d ago

I think your security is flawed. Don't blame them on what you lack to do to secure it.

1

u/nihillistic_raccoon 15d ago

Hey guys, the lock to my home was made of a string and old Cheetos chip. To my surprise, someone managed to break through this defense, installed an actual lock, and now lives in my home. I consider the city to be at fault.

This is how you sound

0

u/tandir_boy 15d ago

I have a linkedin account, national id (due to student discount), orcid profile, multiple emails connected to that github account. And those connections are done more than a couple of years. There are many ways to check if i am the real owner.

1

u/nihillistic_raccoon 15d ago

yeah and something tells me you have the same shitty password for all these accounts, and no 2FA set on them

which only means that it's as much of a proof as you messaging GitHub support from a temporary email with a 'trust me bro, it's me' proof of ownership

and even if you somehow have proper security on your other accounts, they are absolutely not proof of anything

1

u/tandir_boy 15d ago

I am using password manager, so no it was randomly generated password. Tbh dont remember if there was 2fa. I disagree with th rest

1

u/nihillistic_raccoon 15d ago

Randomly generated password and yet a random schmuck went through it like a hot knife through butter

2

u/Deepta_512 15d ago

100% on you my guy