r/github • u/jeido-senpai • Feb 22 '25
SECURE YOUR GITHUB ACCOUNT!!!
so my pc system got corrupted and i completely did a reformat erasing everything and completely forgot that my github recovery codes are also there (authy on my old phone old email registered didnt have access). realizing i fucked up. why i fucked up? cause even github cant help if you dont have access to those 2FA’s. like your account will be totally lost forever. (realizing your projects you worked for years is lost cant imagine). I realized i have an old laptop used to use so i checked and luckily retrieved my github code in recycle bin (mistakenly deleted) gonna cry fr. So guys secure your recovery codes find it and store it somewhere safe we never know what happen in future. Github is where all our arsenals are kept.
20
u/katafrakt Feb 22 '25
Github is where all our arsenals are kept.
So maybe don't do that? I have many projects mirrored to Gitlab or Codeberg in case GitHub is down or just to sleep better, knowing I did not put all eggs in one basket.
4
8
22
u/Ok-Radish-8394 Feb 22 '25
That’s a rookie mistake. Should be a good learning experience for you and anybody who doesn’t know how to backup.
2
5
u/walrusdog32 Feb 22 '25
yea, I think in my to do list I wrote, write down GitHub codes on paper
Thanks for the advocacy
2
0
77
u/Tiwaztyr_ Feb 22 '25
Bitwarden & other password managers allow you to save a note or something similar, do with that information what you will
32
Feb 22 '25
Bitwarden is a keeper
10
u/bistr-o-math Feb 22 '25
Until you lock out yourself and lose all content 👀
24
u/4everYoung45 Feb 22 '25
We'll have the exact same post but in r/bitwarden
9
4
u/Silent-Treat-6512 Feb 22 '25
I don’t use 2fa in BitWarden but my master password is 52 chars long, almost paragraph, good luck guessing that.
9
u/Fzetski Feb 22 '25
Mentioning that it is 52 characters long really helps reduce how many options I have to go through, thank you.
Bruteforcing as we speak. We'll be in touch-
0
u/Silent-Treat-6512 Feb 22 '25 edited Feb 22 '25
The total number of possible passwords for a 52-character alphanumeric password is:
1.6 \times 10{92}
This is an astronomically large number, making brute-force attacks completely infeasible with current computing power. Even if an attacker could try one trillion (10¹²) passwords per second, it would take far longer than the age of the universe to crack it. 
Source: ChatGPT.
Update. ChatGPT forgot that I had spaces as well, which makes it 26+26+11 (a-zA-Z0-9) plus space and punctuations - as I am using a paragraph that I can remember
8
u/carsncode Feb 22 '25
Well since we're clearly all taking the joke too get here... You're using a paragraph you can remember, which reduces the problem space to 52 characters of legible, grammatical text, eliminating all but a miniscule fraction of the problem space.
0
u/Silent-Treat-6512 Feb 22 '25
NOW this is getting somewhere.. actually not 52, thats ChatGPT counting it wrong. Let me give you real charspace and see if you can guess it.
A-Z a-z 0-9 (comma) (double quote) (period) (space) 66 chars
Even with an optimistic quantum computer capable of 10¹⁸ guesses per second, it would take:
4.13×10764.13 \times 10^{76}4.13×1076 seconds
1.31×10691.31 \times 10^{69}1.31×1069 years
to brute-force your 52-character password.
For context, the age of the universe is only about 1.38×10101.38 \times 10^{10}1.38×1010 years—so even quantum computing wouldn't make a dent in cracking your password!
4
u/carsncode Feb 22 '25
Again, you're looking at it wrong. It's not brute forcing the full character space across 52 characters, it's the tiny, tiny fraction of that space that makes up legible grammatical text.
→ More replies (0)3
2
u/Lewissunn Feb 24 '25
Hang on "That's chatGPT counting it wrong". You didn't paste your master password into chatGPT did you?
-1
u/Silent-Treat-6512 Feb 22 '25 edited Feb 22 '25
Sure - can you guess how many tries are there now? You answer clearly says you don’t know how password length works.
1
Feb 26 '25
That's why I host the vaultwarden server at home, and weekly I export the password vault from bitwarden and leave it on vaultwarden as a backup lol
2
1
u/Handshake6610 Feb 22 '25
There are some things to prevent this: emergency sheets, regular exports/backups, "login-with-passkey"-passkeys...
2
u/bistr-o-math Feb 22 '25
Regular exports? Well.. you could do regular exports of GitHub as well. That’s not what I’m talking about.
Point being: once you lock yourself out from GitHub or Bitwarden - you are lost. End of story. NO WAY BACK.
1
u/Handshake6610 Feb 22 '25
And that was, what I was talking about: very unlikely to lock yourself out of Bitwarden with an emergency sheet and "login-with-passkey"-passkeys... and even if it happened: with restoring the last export, you still have most or all of your data.
1
1
u/Herve-M Feb 22 '25
Would be better to save recovery codes into something offline and outside of any password manager.
1
u/gamesky1234 Feb 25 '25
I personally would recommend vault warden (if self hosting) but both are amazing! (Ignore the little security vulnerability (patched now) vault Warden had a little bit ago)
7
u/sujaldhamija Feb 22 '25
Why Github is not able to help us in these cases? I mean if you are able to identify that you are the owner even then?
3
u/jimmiebfulton Feb 22 '25
Their inability to assist you is a security posture, and a necessary one. If all someone has to do is get access to enough personal information about you to convince GitHub support staff that they are you, GitHub would literally be handing over all your hard work to anyone with good social engineering skills. No Bueno. As someone else pointed out, losing your 2FA recovery keys is a rookie mistake. For the rest of us who made mistakes like this a long time ago and learned our lessons, we don’t want someone’s rookie mistake at GitHub allowing a social engineered from taking over our accounts in spite of our own personal diligence.
Chalk this up as a painful learning experience, and never let it happen again. Use a password/secrets manager, ensure it is backed up/distributed, and print those recovery codes and place them in a vault. I personally have everything in !Password, including my 2FA codes, recovery codes, etc. As long as I can get into 1Password, I can recover from any disaster.
This goes for 2FA that is stored on your phone. If 2FA is tied to your phone, and you forget about that little detail when you go to upgrade your phone, you can be in a similar situation. Always store your 2FA in something that be recovered on a second or replacement device. 1Password can store One Time Secrets, as do others.
1
u/foramperandi Feb 22 '25
How could they verify it's you? You didn't prove your identity when you created the account, so how could you do it when you get locked out?
-1
u/jeido-senpai Feb 22 '25
yeah it states in their support page that they cant help you if those keys are gone. they should do something about it, one mistake and your life is done. Github has no mercy :(
1
u/hazily Feb 22 '25
If your life is done should you lose access to your GitHub account, don’t you think you should take their warnings when setting up 2FA more seriously?
17
Feb 22 '25
[removed] — view removed comment
4
u/jeido-senpai Feb 22 '25
yeah we are just used to having all credentials and we are able to retrieve or regain access. Well github is different now we know and its good to know.
3
u/Silent-Treat-6512 Feb 22 '25
Time to invest $10 per year onto BitWarden
1
u/MrPoint3r Feb 23 '25
I've been using it for free for several years and haven't been disappointed so far - What am I missing by not going Premium?
3
u/Silent-Treat-6512 Feb 23 '25
for me TOTP was the biggest driver given everything except bitwarden I have it set to use 2FA (where ever supported) and sometime uses file attachments but mostly to support a great product
2
u/idkwhatimdoing069 Feb 22 '25
+1 for using a password manager like 1Password. I put almost everything in 1pass and with it, all my passwords are different across my accounts and it’s an ease to login to everything, even with everything being different passwords
1
2
u/ich3ckmat3 Feb 22 '25
Use some sync tool, like resilio or syncthing to replicate imp stuff to other PCs / phone
2
u/Beneficial_Slide_424 Feb 22 '25
The hypocrisy is they will sell you to Law Enforcement and Courts and also train their AI on your repos but can't help you when you lose your 2FA... Github, if you are going to encrypt it, do it right and make it so that no one can access the data without user keys, even the government.
2
2
u/grumhelden Feb 23 '25
Is this your first day online and it’s actually 1999? A hard lesson learned by many before you, who didn’t want you to learn it the hard way, including a big warning about keeping recovery codes somewhere safe. Well done for getting your recovery codes, and well done for remembering this lesson for the rest of your career.
1
u/yoleya Feb 22 '25
Where do i find my recovery codes?
1
u/MoussaAdam Feb 22 '25
When you enable 2FA, github gives you the recovery codes that you can use to access your account when 2FA doesn't work for some reason. if you don't have 2FA, there's nothing to worry about in regards to recovery codes
1
u/cowboyecosse Feb 22 '25
You can also download them at any time in your account settings. Save them somewhere in the cloud like Google drive or a synced password manager. You can’t lose these.
2
u/Kaper2 Feb 22 '25
Yea please don't save them plain text in google drive. Put them in a password manager or write them down on actual paper.
1
1
u/Awesome_Knowwhere Feb 22 '25
I just use the the Authenticator app, it got me covered!!
1
u/ithinuel Feb 22 '25
Until your phone crashes and you lose access to the app. It happened to me. Luckily I wasn't using it with GitHub yet at the time. I'm keeping copies of my recovery codes on several encrypted cold storages now. Not taking risks of losing those :O
1
1
1
Feb 23 '25
Just sync the 2fa or passkey to ur phone or iCloud. That way you always have multiple options and devices to defer to
1
u/Fading-Ghost Feb 25 '25
I have two YubiKeys acting as second factor for my accounts. One is securely locked away in the event I lose one or it’s compromised.
1
u/happy_hawking Feb 26 '25
That's why you get a printable copy of your 2FA codes. Which you should also save on an external drive or similar. Just not on the computer where you are actively using those accounts.
Sorry for your loss though, everyone has to learn that the hard way.
0
u/SnooCupcakes4720 Feb 23 '25
I did this and the fact github wouldn't let me opt out "because I make to many contributions" ...has angered me so I have abandoned github altogether and I'm developing my own git type repo system in python ....I was not respected and its my work that furthers everything I do on github ...sorry I mean did
0
u/SnooCupcakes4720 Feb 23 '25
And it basically comes down to I don't want that security because its a hassle and I foresaw the issue
0
u/Adventurous-Owl-977 Feb 23 '25
Sorry if I sound dumb can someone explain in simpler terms what happened and how to protect my accounts for the future and things to keep in mind ??
0
u/SelectInteraction916 Feb 23 '25
that why i have password manager like bitwarden and have bitwarden passkey save in my icloud password
0
0
Feb 23 '25
[deleted]
2
u/carsncode Feb 23 '25
Wow, you're just desperate to pick a flight with me aren't you, so much so that you'll start a whole new thread and make stuff up just to call me out. Which is the reason I'm not interested in whatever "challenge" you'd like to pose. Please point to where I said it would be 'very easy to crack". Anywhere? Anywhere at all? Nope!
All I did was try to help you with your heinously incompetent complexity assessment while you tried to drag me into some password cracking BS which I'm not interested in because it involves you. I'm not ducking out on the problem, I don't care about the problem, I just don't want anything to do with you personally, because I think you're obnoxious.
Hope that clears things up! Have a great day.
0
Feb 22 '25
[removed] — view removed comment
3
u/jeido-senpai Feb 22 '25
yeah this feature atleast be implemented. Github hear us out lmao.
1
u/PLASMA_chicken Feb 22 '25
This feature is already implemented in GitHub and Google Chrome atleast. You can create and login with a passkey stored on your phone / Google account / PC.
https://docs.github.com/en/authentication/authenticating-with-a-passkey/about-passkeys
2
Feb 22 '25
[removed] — view removed comment
1
u/PLASMA_chicken Feb 22 '25
https://docs.github.com/en/authentication/authenticating-with-a-passkey/about-passkeys
Can still hack the companies servers tho
4
u/Classic-Shake6517 Feb 22 '25
They have probably the most convenient auth system out there. It is biometric, and it is passwordless and that counts as both factors. One fingerprint and I log in.
3
u/MoussaAdam Feb 22 '25 edited Feb 22 '25
just use a password manager and remeber one single strong password. biometric verification is a bad idea for privacy
-1
Feb 22 '25
[removed] — view removed comment
3
u/MoussaAdam Feb 22 '25
how is it bad for the future of humanity, are humans in the future unable to remember a single password ?
0
Feb 22 '25
[deleted]
1
u/PLASMA_chicken Feb 22 '25
Once your account has access to accept pull requests though it gets a different level.
0
Feb 22 '25
[deleted]
1
u/PLASMA_chicken Feb 22 '25
And even if not, then there are account's that can accept and merge pull requests into big repos, you want them to be as secure as possible.
148
u/cowboyecosse Feb 22 '25
This is often a hard earned lesson. If the stuff you store on GitHub is important to you (and GitHub thinks it is) don’t lose access because GitHub is Fort Knox for 2FA protected accounts.