π‘οΈ AWS S3 Access Point is not configured to block public accessπ’
- Contextual name: π‘οΈ Access Point is not configured to block public accessπ’
- ID:
/ce/ca/aws/s3/access-point-block-public-access - Tags:
- π’ Policy with categories
- π’ Policy with type
- π’ Production policy
- Policy Type:
COMPLIANCE_POLICY - Policy Categories:
SECURITY
Logicβ
- π§ prod.logic.yamlπ’
Similar Policiesβ
Descriptionβ
Descriptionβ
This policy identifies AWS S3 Access Points that are not configured to block all public access.
Amazon S3 Access Points simplify managing data access at scale for shared datasets stored in S3. Each access point has its own permissions and network controls, including Block Public Access settings. These settings provide an additional security layer to prevent accidental public exposure of data through the access point.
Rationaleβ
Keeping Block Public Access settings enabled for S3 Access Points ensures that, regardless of the underlying bucket policies or object ACLs, the access point will reject all public requests. This helps prevent data leaks caused by misconfigurations and enforces a strict boundary against unauthorized public access.
Auditβ
This policy flags an AWS S3 Access Point as
INCOMPLIANTif any of the following settings are not set to Yes:
- Block Public ACLs
- Block Public Policy
- Ignore Public ACLs
- Restrict Public Buckets
Remediationβ
Remediationβ
Enable Block Public Access for S3 Access Pointsβ
The Block Public Access settings for an S3 Access Point are immutable and cannot be modified after the access point is created. To remediate this issue, you must create a new access point with the correct configuration and migrate all dependencies from the incompliant one.
Remediation Stepsβ
Create a new S3 Access Point
Use the following command to create a new access point with all public access blocked. Ensure that the
--public-access-block-configurationparameter includes all four blocking options set totrue:aws s3control create-access-point \
--account-id {{account-id}} \
--name {{new-access-point-name}} \
--bucket {{bucket-name}} \
--public-access-block-configuration "BlockPublicAcls=true,IgnorePublicAcls=true,BlockPublicPolicy=true,RestrictPublicBuckets=true"Update All References to the New Access Point
Update all dependent resources to use the ARN of the new access point instead of the old one.
... see more