Anyone Can Impersonate You on GitHub - Here's How to Protect Yourself
dev.to·9h·
Discuss: DEV
Flag this post

Last week, I found something scary. Anyone can pretend to be you on GitHub. They can commit code using your name. They don’t need your password. They don’t need any permission.

Look at this:

git config user.name "Linus Torvalds"
git config user.email "torvalds@linux-foundation.org"
git commit -m "Added backdoor (just kidding)"

You just committed code as Linus Torvalds. Yes, it’s that easy.

This is not a bug. Git was designed this way. But now we have a problem. Hackers can attack our code. Companies need to verify who wrote what. We need better security.

I will show you how to fix this. You will learn how to sign your commits with GPG. You will learn other security tips too. Let’s start.


🚨 The Problem: Anyone Can Fake Your Identity in Git

Why T…

Similar Posts

Loading similar posts...