IAMagic scans and enumerates AWS access credentials and displays information like all the permissions policies attached to the account, buckets, running instances etc.
- Python 3.x
- awscli (credentials must be configured)
git clone https://github.com/Pyr0sec/IAMagic
cd IAMagic
pip install -r requirements.txt
(venv) C:\Users\puruj\Documents\git\IAMagic>python IAMagic.py -h
usage: IAMagic.py [-h] [[-id ACCESS_KEY_ID] [-key SECRET_ACCESS_KEY] | [--profile PROFILE]] [--enumerate]
options:
-h, --help show this help message and exit
-id ACCESS_KEY_ID, --access-key-id ACCESS_KEY_ID
Accepts AWS access key ID as an argument
-key SECRET_ACCESS_KEY, --secret-access-key SECRET_ACCESS_KEY
Accepts AWS Secret access key as an argument
--profile PROFILE Used to specify an AWS profile on your system (like awscli), Uses default credentials if not specified any.
--enumerate Further enumerates the credentials by Checking
python IAMagic.py --profile <aws-profile-here> --enumerate
python IAMagic.py -id <access-key> -key <secret-key> --enumerate