AWS Tools
- git clone https://github.com/mohtork/sleuth.git
- pip install -r requirements.txt
Get reports about S3 buckets to easily identify
- Infected files (download and scan bucket files with clamAV)
- Which buckets have public access
- Buckets size in MB
- Number of files in each bucket
- Check & fix public policy
- Download bucket files to your machine
- ClamAV (https://goo.gl/fR81Mz)
- Create IAM user with S3 Full Permissions
- Configure AWS CLI (https://goo.gl/xhA5mR)
- List Buckets
python sleuth.py s3 list-buckets
- List Buckets permissions
python sleuth.py s3 list-permissions
- List Buckets Size
python sleuth.py s3 bucket-size
- List number of files for your buckets
python sleuth.py s3 count-files
- Fix Public ACL permissions
python sleuth.py s3 fix-acl-permissions
- Download bucket files to you machine or a server
python sleuth.py s3 download bucket_name download_dir_path<br/>
example: python sleuth.py s3 download linuxdirection /backup
linuxdirection: bucketname
/backup: the directory path on your machine
- Scan Bucket files
python sleuth.py s3 scan bucket_name download_dir_path<br/>
example: python sleuth.py s3 scan linuxdirection /tmp