r/github • • Oct 16 '26

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 Oct 16 '26

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 Oct 16 '26

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 Oct 16 '26

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

1

u/tandir_boy Oct 16 '26

I did. Then what heppened?

1

u/Rudy_TheRude Oct 16 '26

Someone usually reply to your ticket through your email

1

u/tandir_boy Oct 16 '26

Oh nice, thank you

2

u/ToTheBatmobileGuy Oct 16 '26

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 Oct 16 '26 edited Oct 16 '26

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 Oct 16 '26

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

4

u/Flagvanus_ Oct 16 '26

that's on you

4

u/Lumethys Oct 16 '26

Yeah no shit

3

u/maikel87 Oct 16 '26

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

1

u/nihillistic_raccoon Oct 16 '26

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 Oct 16 '26

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 Oct 16 '26

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 Oct 16 '26

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 Oct 16 '26

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

2

u/Deepta_512 Oct 16 '26

100% on you my guy