aws / aws/Trusted-Advisor-Tools

Check for S3 Bucket Public Permissions and Automate Permission Removal

Open
#5 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
278
Forks
118
PR merge metrics
No merged PRs in 30d

Description

We need a check that looks for public S3 read/write permissions and automatically revokes these when found. This check would look for the following public permissions:

Bucket list objects
Bucket write objects (This is high severity)
Bucket read permissions
Bucket write permissions (This is high severity)

For the high severity permissions we should explicitly detail the customer should manually audit the bucket and it's objects to ensure that is has not been compromised.

This automation workflow can follow a similar pattern to the one for Exposed Access Keys linked below:

https://github.com/aws/Trusted-Advisor-Tools/tree/master/ExposedAccessKeys

Let me know what you think about this proposed check.

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the ExposedAccessKeys workflow linked in the issue to understand the repository’s AWS Lambda and CloudWatch Events pattern. Then determine how the proposed check should identify and revoke public S3 list, read, and write permissions, including the required high-severity audit warning. Done means the workflow detects these permissions, removes them as specified, and communicates the manual audit requirement.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, python
Domain
cloud, security
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.