This Python script scans readable files in AWS S3 buckets for sensitive information such as passwords, keys, and access tokens. It supports various file types including .txt, .docx, .xlsx, .csv, .json, etc.
-
Clone the repository:
git clone https://github.com/dazzyddos/aws_s3_scanner.git cd aws_s3_scanner -
Install the required Python packages:
pip install -r requirements.txt
-
Ensure your AWS credentials are configured
aws configure. You can also do this by setting environment variables or using the AWS credentials file. -
Usage: To scan specific buckets:
python s3_scanner.py -b bucket1 bucket2To scan all accessible buckets:
python s3_scanner.py- Text files (
.txt) - Word documents (
.docx) - Excel spreadsheets (
.xlsx) - CSV files (
.csv) - JSON files (
.json) - XML files (
.xml) - YAML files (
.yaml,.yml) - INI configuration files (
.ini) - SQL files (
.sql)
