S3 bucket ACL allows public access to S3 bucket storing CloudTrail log files Affecting S3 service in AWS


Severity

0.0
high
0
10
Severity Framework
Snyk CCSS
Rule category
Data/ Logging

Is your environment affected by this misconfiguration?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
Frameworks
AWS-Well-ArchitectedCIS-AWSCSA-CCMISO-27001NIST-800-53PCI-DSSSOC-2
  • Snyk IDSNYK-CC-00172
  • creditSnyk Research Team

Description

Allowing public access to CloudTrail log data may aid an adversary in identifying weaknesses in the affected account's use or configuration.

How to fix?

Ensure the aws_s3_bucket acl field is not set to "public-read" or "public-read-write".

Example Configuration

resource "aws_s3_bucket" "private1" {
  acl = "private"
  # other required fields here
}