feat(aws): add cloudfront_distributions_pqc_tls_enabled check#11317
feat(aws): add cloudfront_distributions_pqc_tls_enabled check#11317pedrooot wants to merge 1 commit into
Conversation
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
|
✅ All necessary |
Compliance Mapping ReviewThis PR adds new checks. Please verify that they have been mapped to the relevant compliance framework requirements. New checks already mapped in this PR
Use the |
|
✅ Conflict Markers Resolved All conflict markers have been successfully resolved in this pull request. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #11317 +/- ##
===========================================
- Coverage 93.97% 6.86% -87.11%
===========================================
Files 237 858 +621
Lines 34829 25140 -9689
===========================================
- Hits 32729 1725 -31004
- Misses 2100 23415 +21315
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
🔒 Container Security ScanImage: 📊 Vulnerability Summary
5 package(s) affected
|
292ed6d to
48a87b0
Compare
Context
CloudFront's quantum-safe key exchanges (
X25519MLKEM768,SecP256r1MLKEM768) are only negotiated over TLS 1.3. A distribution that still allows TLS 1.2 falls back to classical key exchange and remains exposed to "harvest now, decrypt later" attacks. Prowler had no check for this.Description
Adds the
cloudfront_distributions_pqc_tls_enabledcheck. It evaluates each distribution'sMinimumProtocolVersionagainst a configurable allowlist (cloudfront_pqc_min_protocol_versions, default:TLSv1.3_2025). Distributions using the default CloudFront certificate are pinned to the legacyTLSv1policy and fail. Thecloudfrontservice is extended to exposeMinimumProtocolVersion. Severity: low.Steps to review
prowler/providers/aws/services/cloudfront/cloudfront_distributions_pqc_tls_enabled/MinimumProtocolVersion:prowler/providers/aws/services/cloudfront/cloudfront_service.pypoetry run pytest tests/providers/aws/services/cloudfront/cloudfront_distributions_pqc_tls_enabled/ tests/providers/aws/services/cloudfront/cloudfront_service_test.py -vprowler aws --check cloudfront_distributions_pqc_tls_enabledChecklist
Community Checklist
SDK/CLI
SecurityAuditpolicy.License
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.