Giter Site home page Giter Site logo

defensive-s3-buckets's Introduction

Defensive S3 Bucket Squatting

In the news everyday are stories of companies leaking data through exposed S3 buckets.

One thing I noticed is that a lot of leaks are found using common S3 bucket names, so I had an epiphany in the shower one day and I invented Defensive S3 Bucket Squatting where you preregister and secure the most common S3 bucket names so that no one else can use them. This obviously wont stop your company from still having miss-configured S3 buckets but it should make it harder for bad actors to find them and exploit them.

What It Does:

This script creates and secures the most common S3 bucket names to stop them from being used by anyone in an attempt to make finding unsecured buckets harder.

Screenshot

Usage:

  • chmod +x defensives3.sh
  • ./defensives3.sh companyname

This will create about 80 buckets using the names in buckets.txt.

Advance Usage:

  • Submit a ticket to have your S3 Bucket Limit increased to 750
  • Uncomment #for extension in $(cat 150buckets.txt); do
  • Comment out #for extension in $(catbuckets.txt); do
  • chmod +x defensives3.sh
  • ./defensives3.sh companyname

This will create about 600 buckets using the names in 150buckets.txt.

Backout Plan:

  • chmod +x deldefensives3.sh
  • ./deldefensives3.sh companyname

This will delete all buckets that where created by this script.

Important Notice

  • I likely don't know what I am doing and this could be done faster, better and simpler some other way.
  • These scripts could also break your cloud and make you cry.
  • There are minimal costs for having empty S3 buckets in your account. My best guess is under $5 a month.

defensive-s3-buckets's People

Contributors

jgamblin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.