AWS Slurp Github Takeover

Aug 27, 2018 · 3 min read

Slurp is a tool used by information security professionals to enumerate AWS S3 buckets. Slurp takes a domain name ( or wordlist as input and cycles through likely S3 bucket names ( looking for any world-read/writeable buckets. S3 buckets are a great find for offensive security pros, because they are commonly misconfigured. This leads to things like the famous RNC Voter Records breach or Verizon’s 2017 breach.

Slurp became a popular tool among bug bounty hunters and penetration testers, and found it’s way into countless books, blog posts, tweets, and more.

At some point in Spring of 2018, the creator of Slurp (bbb31) deleted his Github account. This effectively orphaned Slurp and any other tools posted on bbb31’s Github page. Any blog/tweet/book links to the tool sent the user to a page like this.

404 error on

Any attempts to clone the repository through git would result in an authentication error, as if the repository were private and could only be accessed via an account that had permission.

Authentication failed for Slurp clone

All of the links to Slurp in books, tweets, etc. point specifically to “” — the repo named “slurp” owned by the user named “bbb31”. With the bbb31 account now deleted, what’s stopping someone from simply registering a new account with the same name and creating another repo named “slurp”?


Github user bbb31, back from the dead

Within about 5 minutes I was the owner of a brand new account named “bbb31” and had created a repository named “slurp”. Now all of the blog posts, tweets, etc. pointed to whatever code I wanted. The next time someone cloned and blindly ran the code off Github, it could be whatever code I wanted.

The new source code for Slurp

From August 14th to August 27th, 27 people have cloned the repository. Hundreds more have visited the page, thanks to referrals by and others. These are all people that could have been victims of malware, due to the lack of account re-use protections in place by Github.

This issue is not new — in fact, it’s been possible since Github’s creation. For a while, Github’s response was “well, don’t delete your account”. Recently, they have implemented some protections for what they consider “popular repositories”. This is great for companies like Microsoft that get hundreds of clones every day, but leaves everyone else in hot water. Obviously it would be best for everyone who gets code off Github to read and review it before they used it, but that is simply not feasible.

Recommendations for Github

  • No more username re-use!

Recommendations for Everyone

  • Don’t delete your Github profile if you’ve written code that people rely on (unless you really need to). Instead, wipe it clean and lock it down with a strong password and 2FA.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store