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

21 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

1

u/Mindless_Hedgehog181 6d ago

Yo bro, don't lose hope just yet, my account got hit with the exact same shit.

My GitHub account was compromised on July 19, 2026. The hacker changed my password, added their own email, and enabled 2FA, locking me out completely.

I tried the recovery process, but obviously couldn't get past the 2FA because the hacker had control of everything.

I contacted GitHub Support, and guess what? I didn't even receive a proper response until November 25, 2026. That's over four months of waiting, bro 💀

My account hasn't been recovered yet, so I can't promise anything. But at least I finally got a response from an actual support agent. They've suspended my account to prevent further unauthorized access and asked me to secure my original email before proceeding with the investigation.

I've completed that step, and now I'm waiting for their next response.

So yeah, bro, it takes a ridiculously long time, but don't give up on the support ticket. Keep following up, provide every piece of ownership evidence you have, and make sure your original email is secured.

Hopefully, we both get our accounts back. Don't let these clowns win, my guy.

1

u/tandir_boy 5d ago

Wow thanks for your reply and support. It is a really annoying issue. I am still waiting :/

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

1

u/AppropriateYou2834 5d ago

Same thing happen to me i don't know what to do now