This check verifies if AWS S3 bucket ACLs are configured to prevent access from all authenticated AWS users. When an S3 bucket grants access to the AuthenticatedUsers group, it allows any AWS account holder worldwide to access your data, not just users within your organization. This significantly increases the risk of unauthorized data access, potential data breaches, and violation of data governance policies.
To secure your S3 bucket, use specific canonical user IDs rather than the global authenticated users group. For example, instead of using:
grantee {
type = "Group"
uri = "http://acs.amazonaws.com/groups/global/AuthenticatedUsers"
}
Use a specific user configuration:
grantee {
type = "CanonicalUser"
id = "1234567890abcdef1234567890abcdef12345678"
}
resource"aws_s3_bucket_acl""bad_example"{bucket=aws_s3_bucket.example.idaccess_control_policy{grant{grantee{type="Group"uri="http://acs.amazonaws.com/groups/global/AuthenticatedUsers" # ❌ Allows access to all authenticated users
}permission="READ"}owner{id=aws_s3_bucket.example.owner_id}}}
1
2
rulesets:- Terraform / AWS # Rules to enforce / AWS.
パーソナライズされたデモをリクエスト
Datadog を始める
Ask AI
AI-generated responses may be inaccurate. Verify important info.