Skip to content

AWS S3 Buckets has block public access setting disabled

Description

This policy ensures that Amazon S3 buckets have the `block public ACLs` setting enabled. Blocking public ACLs helps prevent the exposure of sensitive data by ensuring that public access permissions are not granted through ACLs. This setting is crucial for maintaining the security and privacy of the data stored in S3 buckets. This policy checks whether the `BlockPublicAcls` option is enabled in the `PublicAccessBlockConfiguration` of S3 buckets.

Code Example

go
resource "aws_s3_bucket_public_access_block" "example" {
  ...
  
+ block_public_acls   = true
}

Remediation

Terraform

Rule Details

FieldValue
IDIAC-0106
SeverityMEDIUM
IaC TypeCloudformation
FrameworksCloudFormation, Terraform, TerraformPlan, Serverless
Checkov IDCKV_AWS_53

References