GithubHelp home page GithubHelp logo

anthrax3 / cs-suite Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jdiazmx/cs-suite

0.0 0.0 0.0 3.22 MB

Cloud Security Suite - One stop tool for auditing the security posture of AWS & GCP infrastructure.

License: GNU General Public License v3.0

Dockerfile 0.03% Python 19.91% Shell 67.51% HTML 8.14% CSS 0.56% JavaScript 2.66% PowerShell 0.89% Ruby 0.03% Roff 0.26%

cs-suite's Introduction

Cloud Security Suite (cs-suite) - Version 3.0

Pre-requisites for Manual setup

  • OS - MacOS or Linux
  • Python 2.7
  • pip
  • git
  • gcc (for sshpass installation (OS Audit). Not a mandatory pre-requisite)
  • AWS Audit - AWS ReadOnly Keys
  • GCP Audit - gcloud setup
  • Azure Audit - Azure user read-only access

Installation

git clone https://github.com/SecurityFTW/cs-suite.git
cd cs-suite/
sudo python setup.py

Note - Generate a set of ReadOnly AWS keyswhich the tool will ask to finish the installation process. For GCP, setup google cloud SDK.

Running cs-suite

To run AWS Audit - python cs.py -env aws
To run GCP Audit - python cs.py -env gcp -pId <project_name>
To run Azure Audit - python cs.py -env azure
  • The final report will be available in reports directory

  • The final AWS Audit report looks like below:

AWS Audit report

  • The final GCP Audit report looks like below:

GCP Audit report

Docker Setup

  • Create a local directory aws with credentials and config files

  • The config file looks like below

$ cat aws/config

[default]
output = json
region = us-east-1
  • The credentials file looks like below
$ cat aws/credentials

[default]
aws_access_key_id = XXXXXXXXXXXXXXX
aws_secret_access_key = XXXXXXXXXXXXXXXXXXXXXXXXX

Note: This tool requires arn:aws:iam::aws:policy/ReadOnlyAccess IAM policy

  • Then run the follwing docker command to start
docker run -v `pwd`/aws:/root/.aws -v `pwd`/reports:/app/reports securityftw/cs-suite

For AWS

docker run -v `pwd`/aws:/root/.aws -v `pwd`/reports:/app/reports securityftw/cs-suite -env aws

Virtual Environment installation

(So you don't mess with the already installed python libraries)

  • pip install virtualenvwrapper
  • add it to the respective rc file of your shell (bashrc/zshrc) (for fish shell users check virtualfish)
  • echo "source /usr/local/bin/virtualenvwrapper.sh" >> ~/.bashrc
  • source the file source ~/.bashrc
  • cd cs-suite/
  • mkvirtualenv cssuite
  • workon cssuite
  • pip install -r requirements-virtual.txt
  • aws configure

Once installation is done, the tool will ask you for the AWS keys and region. These two are mandatory for the tool to work.

Documentation

https://securityftw.github.io

Thanks

cs-suite's People

Contributors

chetankapoor avatar flosell avatar jayeshchauhan avatar madhuakula avatar r3dsm0k3 avatar shivankar-madaan 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.