r/github • • Sep 26 '26

Discussion Account hacked

This is NOT an account suspension post.

First of all, my account has 2FA enabled. But according to the automatic emails, someone somehow bypassed the 2FA and logged in to my account. Then changed every info, including the 2FA app registration.

Update: I checked the security log. There was no login entry of that hacker. So he somehow bypassed login?

Update: the first entry of that hacker is "Country changed from your previous session". But my only github interactions this week were only pushes from VSCode.

0 Upvotes

21 comments sorted by

3

u/extoniks Sep 26 '26

I don't think it's possible unless someone has access to your password and 2FA TOTP.

1

u/StealManiac Sep 26 '26

I checked my security log and there was no login entry from that hacker. There also was no new login alert email, only info change alerts. So login was somehow bypassed?

3

u/Dement__ Sep 26 '26

Token access, you need to reset your password I think to log out all devices. Trust me, 2FA isn't enough, that's why passkeys have been becoming a thing too.

1

u/StealManiac Sep 26 '26

Yeah done all that after the incident. Changed to using passkey too.

1

u/FondantConscious2868 Oct 01 '26

Session stealer probably.

1

u/forestcall Sep 26 '26

Can you elaborate on how you use GitHub? Mac/PC/Linux? Vscode or terminal or other IDE? Is your env in a gitignore? What DB service or platform?

1

u/StealManiac Sep 26 '26

Windows, VSCode, venv are in gitignore in every repo. No DB. Never logged in to Github on public wifi.

I looked up session hijacking, and git push without ssh key seems to be a potential issue?

1

u/cowboyecosse GitHub staff Sep 26 '26

Have you contacted support about this? There’s an option on the can’t sign in form that your account is compromised.

1

u/StealManiac Sep 26 '26

Yeah, I did. But I've already recovered my account using a recovery code. The current objective is to prevent future session hijacking.

2

u/sandnose Sep 26 '26

The risk of the email(s) being phishing is higher than you being hacked imo

0

u/Dement__ Sep 26 '26 edited Sep 26 '26

If someone is bypassing your 2FA and not showing up on your device history, that is a red flag for token access, they can bypass all that now days. 2FA is not enough anymore, I recently had been hacked and all my accounts were affected for many platforms.

Get Malwarebyte and scan all of your devices immediately, I also strongly recommend changing your bank password, and anything that is connected to your money or funds after the scan.

That is the most important step, changing passwords comes after confirmation your devices don't have anything, chances are you may also have to do wipe and reinstall if you can remove the info stealers/malware.

  • scan your devices to confirm your PC is safe or not.
  • if PC not safe, then..
  • remove the files or wipe the PC with fresh install, you may have to remove Internet access.
  • update your tokens.
  • update your passwords.

If it is none of the above, I would be worried about your GitHub files too, look into your activity log for repo updates.

The common culprit these days are gaming mods it seems like, that's what I keep seeing the most on the malware threads .

2

u/StealManiac Sep 26 '26

Thanks for the suggestions, going through it now. I'm also quite sure that the hacker used my github mobile session, since when I revoked other sessions, my mobile session was not shown.

1

u/Anr7e Sep 26 '26

Maybe obfuscated code being ran on a project when you open the workspace with VS code

1

u/RiderFZ10 Sep 26 '26

I forget the name, but look up github worm. A hack through compromised repo and libraries.

1

u/hediisdaddy Sep 26 '26

You probably the attacker got access through a session stealer

1

u/Sirmagger Sep 26 '26

It's possible, someone might have hijacked your session! Learn more about session hijacking you would see why it's possible

0

u/chidaluma Sep 26 '26

そんなこと本当に可能なのか

1

u/noninesdev Sep 26 '26

Treat the VS Code token or another authorized app as the likely entry point: revoke all active sessions, OAuth authorizations, and personal access tokens, then rotate your password and 2FA recovery codes from a known-clean device. Also check the repository audit log and contact GitHub Support immediately, since a session or token change may not appear as a new password login.

0

u/AdQueasy5574 Sep 26 '26

Je sais pas vraiment, peut être une extension VSCode malveillante ?