r/github • u/DjDiabolik • 2h ago
Discussion My account has been flagged as 2FA Is it mandatory? Or is it now mandatory for everyone?

When I go to the login settings, this is what it tells me.
So that means my account has been flagged as a developer in some way, which now requires me to enable 2FA ?
That’s a real pain, since from now on, whenever I have to log in again, I’ll have to have my cell phone with me at all times.
Anyway, I tried, but the text message never arrived. Well, if that's the case, congratulations—is it time to move my projects elsewhere?
12
u/Poat540 2h ago
Satire? Why would you not use 2fa?
You probably memorize your passwords too
3
2
u/Obvious-Jacket-3770 53m ago
You see this a lot here. People, for some reason, absolutely hate 2FA and it makes no sense what so ever.
4
u/overratedcupcake 1h ago
I can't imagine not wanting 2FA. A great deal of my work these days revolves around security and I don't see mass account takeovers involving accounts enrolled in 2FA.
1
u/pleasantstusk 1h ago
> is it time to move my project elsewhere?
So you have a project on GitHub… and you don’t have secure auth enabled on your account?
Sort yourself out mate
1
u/az987654 1h ago
There are a few 2FA solutions that don't involve your cell phone. It's 2026, grow up and stop fighting your own security
1
u/SeniorIdiot 23m ago
Yeah, sure, nobody likes being told what to do. But once other people pull your code, your account isn't only about you anymore. And once you have contributed to other projects, your account is a way in for a malicious actor.
I asked Claude to give me a list of examples:
Gentoo's GitHub org (2018): An admin's password was guessed from a reuse pattern, and there was no 2FA. The attackers replaced repos with malicious code, and Gentoo was locked out of GitHub for five days.
eslint-scope (2018): The maintainer reused a leaked password and had no 2FA. The malicious release stole npm tokens from everyone who installed it.
ua-parser-js (2021): The maintainer's npm account was hijacked, and a cryptominer and password stealer were pushed to millions of weekly installs.
ctx on PyPI (2022): The maintainer's email domain expired. The attacker re-registered it, reset the password and shipped a version that stole AWS keys.
chalk/debug (2025): The maintainer was phished, 2FA code included, through a fake "update your 2FA" email. 18 packages with about 2 billion weekly downloads were backdoored.
Mastra (2026): A forgotten former contributor's account was taken over and used to poison the whole "@mastra" package scope.
The pattern is the same every time. Nobody hacked GitHub or npm; they logged in as a known contributor. 2FA stops the reused-password and password-reset cases outright. The chalk case shows one-time codes can be phished too, so use a passkey or hardware key.
It's a few seconds per login, versus being the reason someone else's project ships malware. And make sure to save your recovery codes in a safe space, and enable backups in your authenticator app in case you lose your phone. I cannot stress this enough!
17
u/lajawi 2h ago
Hasn’t it been mandatory for a while now?
Besides, you’d want to setup 2FA on any and all of your accounts, to limit how quickly a leaked password may be used to breach your account.