
Strumento di gestione dei test e dei report per AWS
Outpost è un semplice strumento per generare file di configurazione AWS per AssumeRole, una funzionalità di test per verificare che gli account funzionino, e un generatore di report per i risultati delle scansioni ScoutSuite.
Outpost richiede Python3 e boto3 per funzionare.
Installa le dipendenze.
virtualenv -p python3 .
source bin/activate
pip install -r requirements.txt
python outpost.py --help
usage: outpost.py [-h] --command COMMAND [--config-creds] [--assume ASSUME] [--accounts ACCOUNTS] [--primary PRIMARY] [--token TOKEN]
[--secret-key SECRET_KEY] [--access-key ACCESS_KEY] [--directory DIRECTORY] [--risk RISK] [--project PROJECT]
optional arguments:
-h, --help show this help message and exit
--command COMMAND Commands: generate, report, testaccounts
--config-creds Configure creds while using the generate command
--assume ASSUME Optional assume role ARN, use ACCOUNT_ID for placeholder. (i.e. arn:aws:iam::ACCOUNT_ID:role/ROLENAME
--accounts ACCOUNTS File containing account numbers (one account per line)
--primary PRIMARY Primary account used to assume roles
--token TOKEN Primary AWS session token
--secret-key SECRET_KEY
Primary AWS secret access key
--access-key ACCESS_KEY
Primary AWS access key
--directory DIRECTORY
Parent directory of ScoutSuite report(s)
--risk RISK Select finding risk to report: danger, warning
--project PROJECT Project name for report details
Outpost attraverserà ricorsivamente tutte le cartelle dei report alla ricerca dei file scoutsuite_results*.js da analizzare. Questo significa che se la cartella principale dei report contiene report ScoutSuite separati, devi fornire la cartella principale come flag --directory.
Una struttura di esempio potrebbe essere:
~/Engagements/CustomerName/reports/account1/
~/Engagements/CustomerName/reports/account2/
~/Engagements/CustomerName/reports/account3/
Per analizzare tutti e 3 i report degli account, dovresti eseguire il seguente comando:
python outpost.py --command report --directory ~/Engagements/CustomerName/reports/ --project Customer_2022-123
Lo strumento crea una cartella chiamata data_archive all'interno della cartella principale dei risultati di ScoutSuite. Genera un file chiamato <project name>.txt con i findings che possono essere copiati/incollati direttamente nel report. Inoltre, verranno creati file supplementari per ogni finding all'interno della cartella, che descrivono l'account e le risorse specifiche vulnerabili.