s3scanner
Tool to find open S3 buckets and dump their contents. Supports multi-threaded scanning, S3-compatible APIs, permission checks, and Docker.
Description
s3scanner is a Kali Linux tool designed to identify open S3 buckets and extract their contents. It scans for misconfigurations by checking all bucket permissions, making it useful for security assessments of cloud storage setups. The tool supports a wide range of S3-compatible APIs from providers like AWS, DigitalOcean, Dreamhost, GCP, and Linode.
Key use cases include reconnaissance in penetration testing, auditing cloud storage security, and discovering publicly accessible data in object storage systems. Features like multi-threaded scanning speed up the process, while options to enumerate objects and dump contents to local folders aid in thorough analysis.
It integrates with external systems such as RabbitMQ for bucket input and Postgres for result storage, enhancing its utility in automated workflows. Docker support allows easy deployment in containerized environments.
How It Works
s3scanner performs multi-threaded scans on specified S3 buckets or lists, checking permissions across supported providers via their APIs. It detects open buckets and misconfigurations by testing access levels. When enumeration is enabled, it lists objects which can be dumped to a local folder. Configurable via YAML files for database output, RabbitMQ input, and custom providers. Threads default to 4 for parallel operations.
Installation
sudo apt install s3scannerFlags
Examples
s3scanner -hs3scanner -bucket example-buckets3scanner -bucket-file buckets.txts3scanner -bucket-file buckets.txt -provider gcps3scanner -bucket-file buckets.txt -threads 8 -enumerates3scanner -mq -bucket-file list.txts3scanner -bucket target -db -json