Skip to content

Instantly share code, notes, and snippets.

@norsec0de
Last active April 1, 2022 06:46
Show Gist options
  • Save norsec0de/90d2948fa9e54ed46d8376fffa6f6f76 to your computer and use it in GitHub Desktop.
Save norsec0de/90d2948fa9e54ed46d8376fffa6f6f76 to your computer and use it in GitHub Desktop.
Install ScoutSuite on AWS EC2 (Amazon Linux)

Install ScoutSuite on AWS EC2 (Amazon Linux)

This guide assumes that pyenv and pipenv have been installed and configured guide here. If these requirements have not been met, please complete the pyenv and pipenv installations before proceeding.

Installing ScoutSuite

It's is HIGHLY recommended that you run ScoutSuite in a virtual python environment.

Checking ScoutSuite Dependencies

ScoutSuite requires that a supported version of Python exists and that the appropriate provider's CLI is installed:

  • Python 3 (Tested with 3.7.9)
  • AWS CLI (Tested with aws-cli/1.18.183 Python/3.6.8 Linux/3.10.0-1160.6.1.el7.x86_64 botocore/1.19.23)
  • Azure (Not Tested)
  • GCP (Not Tested)
  • Alibaba Cloud (Not Tested)
  • Oracle Cloud Infrastructure (Not Tested)
  • OpenStack (Not Tested)

Installing Python 3.7.9 with Pyenv

Install Python 3.7.9 with pyenv

pyenv install 3.7.9

Clone the ScoutSuite Repository

Start by cloning the ScoutSuite repository into a folder on your instance.

git clone https://github.com/nccgroup/ScoutSuite

Set the local Python version

cd ScoutSuite
pyenv local 3.7.9

Build the local virtual environment

pipenv install -r requirements.txt

Test the ScoutSuite venv

pipenv shell
python scout.py --help
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment