r/github • u/tandir_boy • 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.
10
u/Rulmeq Oct 16 '26
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.
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
2
u/ToTheBatmobileGuy Oct 16 '26
.................... 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.
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
2
u/Deepta_512 Oct 16 '26
100% on you my guy