Add a new s3 check to verify if objects inside the bucket are public #3463
Labels
feature-request
New feature request for Prowler.
provider/aws
Issues/PRs related with the AWS provider
work-in-progress
New feature motivation
The s3_bucket_public_access checks for public access at the bucket level, but objects inside of it might be public
Solution Proposed
Its not feasible to check every object in the bucket. My proposal is to use a function that will select a user-defined (via config options) number of random objects in the bucket, and check if they are public. What I am seeing on my current assessment is that there are buckets that arnt public, but every object in the buckets are public, so this check would catch this type of misconfig.
Risk is mitigated (when compared to a full-blown public bucket) as you cant simply list the objects in the bucket, as the bucket is not publicly accessible.
Here is some pseduo-code that could be modified and used
Describe alternatives you've considered
None
Additional context
No response
The text was updated successfully, but these errors were encountered: