There are several tools that can be used to test different cloud environments. The installation steps and links are going to be indicated in this section.
AWS, Azure, GCP, Alibaba Cloud, Oracle Cloud Infrastructure
pip3 install scoutsuite
AWS, GCP, Azure, DigitalOcean
git clone https://github.com/SecurityFTW/cs-suite.git && cd cs-suite/pip install virtualenvvirtualenv -p python2.7 venvsource venv/bin/activatepip install -r requirements.txtpython cs.py --help
Nessus has an Audit Cloud Infrastructure scan supporting: AWS, Azure, Office 365, Rackspace, Salesforce. Some extra configurations in Azure are needed to obtain a Client Id.
Take a look to the network access rules and detect if the services are correctly protected:
ssh available from everywhere?
Unencrypted services running (telnet, http, ...)?
Unprotected admin consoles?
In general, check that all services are correctly protected depending on their needs
To start the tests you should have credentials for a Global Reader user.
It is recommended to install azure-cli in a linux and windows virtual machines (to be able to run powershell and python scripts): https://docs.microsoft.com/en-us/cli/azure/install-azure-cli?view=azure-cli-latest
az login to login. Note the account information and token will be saved inside <HOME>/.azure (in both Windows and Linux).
Remember that if the Security Centre Standard Pricing Tier is being used and not the free tier, you can generate a CIS compliance scan report from the azure portal. Go to Policy & Compliance-> Regulatory Compliance. If the company is not paying for a Standard account you may need to review the CIS Microsoft Azure Foundations Benchmark by "hand" (you can get some help using the following tools). Download it from here.
Run the scanners to look for vulnerabilities and compare the security measures implemented with CIS.
scout azure --cli --report-dir <output_dir>python cs.py -env azure#Azucar is an Azure security scanner for PowerShell (https://github.com/nccgroup/azucar)#Run it from its folder.\Azucar.ps1 -AuthMode Interactive -ForceAuth -ExportTo EXCEL#Azure-CIS-Scanner,CIS scanner for Azure (https://github.com/kbroughton/azure_cis_scanner)pip3 install azure-cis-scanner #Installazscan #Run, login before with `az login`
Check for a high number of global admins (between 2-4 are recommended).
Dedicated admin account shouldn't have mailboxes
Local AD shouldn't be sync with Azure AD if not needed
Get objets in graph: https://github.com/FSecureLABS/awspx