r/github • • 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.

491 Upvotes

106 comments sorted by

View all comments

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.