Giter Site home page Giter Site logo

s3nake's Introduction

s3nake (ransssomware PoC)

~

For educational purposes ONLY, not built for performance, some arrangements need to be done
It should mainly used to illustrate how a misconfigured s3 bucket could be abused. Proof-of-Concept built with the will to be harmless

~

Show 'em ๐Ÿช„๐ŸŽฉ๐Ÿ‡

For all the command the flags -p/--profile, -r/--region, -b/buckets are not mandatory. Input will be requested if necessary.

1. Set up - Copy the s3 buckets targeted

python s3nake.py setup -b [comma_separated_bucket_list] --check
  • We perform a copy of the bucket to not alter the original one with the PoC
  • --check flag performs s3 configuration checks to estimate wether or not the bucket is vulnerable to s3 ransomware attack

2. Perform the "ransomware" attack - Encrypt all the files

# to see the magic happen in real time
./watch_ransomware.sh [bucket_name]
# in another shell
python s3nake.py encrypt -b [comma_separated_bucket_list] -k [key_id]
  • -k/--key-id flag is not mandatory, if not provided a KMS key will be automatically generated with the appropriate policy

3. Decrypt the ransomware -

TODO In fact, not really needed, as it is a PoC and should not be used as a real ransomware

4. Clean the PoC - delete s3 bucket copy

python s3nake.py clean -b [comma_separated_bucket_list]

s3nake's People

Contributors

ariary 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.