Check ID:
Provider: AWS
Service:
Severity: MEDIUM
Categories:
Resource type:
cloudfront_distributions_s3_origin_access_controlProvider: AWS
Service:
cloudfrontSeverity: MEDIUM
Categories:
trust-boundaries, internet-exposedResource type:
AwsCloudFrontDistributionWhat this check verifies
CloudFront distributions with Amazon S3 origins are expected to use Origin Access Control (OAC) on each S3 origin.
The evaluation inspects distributions that include s3_origin_config and identifies S3 origins that lack an associated OAC.
Risk
Without OAC, S3 objects can be reached outside CloudFront, bypassing edge controls and weakening confidentiality and integrity.- Direct access enables data exfiltration
- Loss of WAF, rate-limiting, and detailed logging; cost abuse
- Limited support for signed writes and SSE-KMS, increasing tampering risk
Recommendation
Enable Origin Access Control for all S3 origins and keep buckets non-public. Apply least privilege: scope bucket and key permissions to CloudFront and the intended distribution. Ensure origin requests are signed, migrate from legacy OAI, and use defense in depth with WAF and monitoring to protect and observe access.Remediation
- CLI
- Terraform
- Native IaC
- Dashboard steps
References
- https://www.trendmicro.com/trendaivisiononecloudriskmanagement/knowledge-base/aws/CloudFront/s3-origin.html
- https://repost.aws/knowledge-center/cloudfront-access-to-amazon-s3
- https://docs.aws.amazon.com/securityhub/latest/userguide/cloudfront-controls.html#cloudfront-13
- https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-restricting-access-to-s3.html
Where this check fires
This check runs on every scheduled scan against your AWS account. Findings appear at Cloud Security → Findings filterable byCheck ID = cloudfront_distributions_s3_origin_access_control. To re-evaluate after a fix, hit Run now on the account’s schedule under Cloud Security → Schedules — the next scan re-checks this control and marks the finding fixed or keeps it persistent.
← Back to AWS checks