Skip to main content
emnode / learn
Compliance Medium severity

AWS Security Hub · CloudFront

CloudFront.10: No deprecated SSL protocols to custom origins

Written and reviewed by Emnode · Last reviewed

What does AWS Security Hub CloudFront.10 check?

CloudFront.10 checks the edge-to-origin TLS handshake on custom origins. It reports FAILED when a `CustomOriginConfig`'s `OriginSslProtocols` list still includes `SSLv3`. S3 origins, which have no viewer-configurable origin protocol set, are out of scope.

Why does CloudFront.10 matter?

SSLv3 was deprecated in 2015 (RFC 7568) because it's structurally broken — POODLE lets an attacker on the edge-to-origin path force a downgrade and decrypt traffic a byte at a time. Since the protocol is merely offered, an attacker who can influence the handshake picks the weakest mutually-supported option, exposing session tokens, form posts, and API payloads. It maps to PCI DSS 4.2.1 and NIST SC-8/SC-13/SC-23.

How do I fix CloudFront.10?

  1. Inventory every custom origin's `OriginSslProtocols.Items` to find any that include `SSLv3`.
  2. Confirm the origin already supports TLSv1.2 so trimming the list changes nothing operationally.
  3. Read-modify-write the distribution config, restricting `Items` to `TLSv1.2`, and push it back with `update-distribution --if-match <ETag>`.
  4. Gate new distributions in IaC so an SSLv3 entry can't reappear.

Remediation script · bash

# 1. Lock an S3 origin: only THIS distribution may read the bucket.
cat > bucket-policy.json <<'JSON'
{
  "Version": "2012-10-17",
  "Statement": [{
    "Sid": "AllowCloudFrontServicePrincipalReadOnly",
    "Effect": "Allow",
    "Principal": { "Service": "cloudfront.amazonaws.com" },
    "Action": "s3:GetObject",
    "Resource": "arn:aws:s3:::my-downloads-bucket/*",
    "Condition": { "StringEquals": {
      "AWS:SourceArn": "arn:aws:cloudfront::111122223333:distribution/E2QWRUHAPOMQZL"
    } }
  }]
}
JSON
aws s3api put-bucket-policy --bucket my-downloads-bucket --policy file://bucket-policy.json

# 2. Raise the minimum TLS version (the field is nested in ViewerCertificate, so send the whole config back).
aws cloudfront get-distribution-config --id E2QWRUHAPOMQZL > dist.json
ETAG=$(python3 -c "import json;print(json.load(open('dist.json'))['ETag'])")
# ... edit dist.json: ViewerCertificate.MinimumProtocolVersion = TLSv1.2_2021, ViewerProtocolPolicy = redirect-to-https ...
aws cloudfront update-distribution --id E2QWRUHAPOMQZL \
  --distribution-config file://distribution-config.json --if-match "$ETAG"

# 3. Confirm the second door is shut: a raw S3 GET should now return 403.
curl -s -o /dev/null -w '%{http_code}\n' https://my-downloads-bucket.s3.amazonaws.com/file.pdf

Full walkthrough (console steps, edge cases and verification) in the lesson Protect CloudFront distributions and origins.

Is CloudFront.10 a false positive?

A distribution can show a pristine TLS 1.3 viewer policy and pass CloudFront.15 while still failing CloudFront.10 — external scanners only see the viewer leg, so the stale origin protocol list hides behind a healthy-looking public posture.

Part of the learning path Lock down access