CloudFront serves content to viewers over plain HTTP
- Severity
- Medium
- Service
- CloudFront
- Check ID
- CLOUDFRONT_VIEWER_HTTP_ALLOWED
What this check finds
A cache behaviour of this distribution has Viewer protocol policy "HTTP and HTTPS" (allow-all), so viewers can be served unencrypted, and anyone on their network can read or change the response.
Passing looks like: CloudFront serves viewers over HTTPS only.
How to fix it
Set the viewer protocol policy of each listed behaviour to Redirect HTTP to HTTPS, or HTTPS only.
AWS console
CloudFront → Distributions → select distribution → Behaviors → select behaviour → Edit → Viewer protocol policy.
Compliance controls it is evidence for
A failing result counts against these controls in KloudLytics; a passing one is evidence towards them. How compliance mapping works
| Framework | Controls |
|---|---|
| PCI-DSS v4.0.1 |
|
| NIST SP 800-53 Rev5 (Moderate) |
|
| NIST Cybersecurity Framework 2.0 |
|
| ISO/IEC 27001:2022 Annex A |
|
Checked on every scan
KloudLytics runs this check each time it scans a connected AWS account, through a read-only role, and lists every affected resource with its region. On Pro and Business a fix is written for the specific resource rather than the general case above. The exact access it needs