binbashar / le-tf-infra-aws

Terraform code for Leverage Reference Architecture for AWS, designed under optimal configs for the most popular modern web and mobile applications needs.
https://www.binbash.co/leverage
Apache License 2.0
24 stars 7 forks source link

S3 buckets created/used should use a random suffix #566

Open diego-ojeda-binbash opened 2 months ago

diego-ojeda-binbash commented 2 months ago

Describe the Feature

According to this article, just knowing the name of a bucket, regardless of the bucket being private or public, issuing an unauthorized PUT request will charge the bucket owner.

At the moment, it seems that only making it difficult for attackers to know the bucket name is the only action we can take. That's why we suggest using a random suffix on the bucket name, which is one the recommendations the article makes.