Home / Work / RepoGuard

RepoGuard: what your GitHub is oversharing

Public repos leak more than code. RepoGuard finds the passwords, keys and personal data that slip past GitHub's own scanner, and tells you how to fix each one.

Role
Design and engineering
Type
Web app
Built with
Next.js, TypeScript, Auth.js
Status
Live

The problem

Your GitHub profile works like a CV: recruiters and clients read it. It's also where most developers' early mistakes live in public: a password typed into a seed file, a .env committed in a hurry, real phone numbers left in test data.

The scanners that exist are built for companies, and they look for one thing: tokens with a known shape, like AWS or Stripe keys. A plain password or a list of phone numbers has no shape, so it sits there for years. Git keeps everything, so deleting the line doesn't make it private. And if the data belongs to real people, publishing it is a disclosure under Kenya's Data Protection Act, even in a test file.

How it works

  1. 01

    You enter a username

    RepoGuard downloads each public repo and reads it in memory. Nothing is stored.

  2. 02

    It checks four things

    Secrets, old commits, personal data like Kenyan phone numbers and KRA PINs, and what recruiters see.

  3. 03

    Only the owner sees details

    Visitors get counts. The signed-in owner gets the file, the line and the fix, in order.

Privacy by design

Each repo's result is encrypted before it reaches a visitor's browser, and the summary only opens them all together, so nobody can work out which repo leaks. Leaked values are masked on the server and never sent whole, even to the owner.

Signing in asks GitHub for your public profile only: no private repos, no write access.

What I learned

Finding leaks was the easy part. Deciding who gets to see them was harder: a tool that shows anyone the passwords in anyone's repos is a gift to attackers. So visitors only see counts, and the details unlock for the account's owner alone.

Trust mattered as much as privacy. Test passwords, example values and shared README templates each needed their own rule, tested against real repos, before the results were worth acting on.