For AI agents: A markdown version of this page is available at https://docs.datadoghq.com/security/code_security/iac_security/iac_rules/cloudformation-aws-secure-ciphers-disabled.md.
A documentation index is available at /llms.txt.
CloudFront distributions that use a custom TLS certificate should enforce a modern TLS protocol version. This prevents negotiation of weak or deprecated protocols that enable downgrade attacks or compromise confidentiality and integrity.
For AWS::CloudFront::Distribution resources where ViewerCertificate.CloudFrontDefaultCertificate is false, ViewerCertificate.MinimumProtocolVersion must be set to TLSv1.1 or TLSv1.2. Resources missing MinimumProtocolVersion, or configured with any other value, will be flagged. Distributions using the default CloudFront certificate (CloudFrontDefaultCertificate: true) are not evaluated by this rule.
#this code is a correct code for which the query should not find any resultAWSTemplateFormatVersion:"2010-09-09"Resources:cloudfrontdistribution:Type:AWS::CloudFront::DistributionProperties:DistributionConfig:CacheBehaviors:- LambdaFunctionAssociations:- EventType:viewer-requestLambdaFunctionARN:exampDefaultCacheBehavior:LambdaFunctionAssociations:- EventType:viewer-requestLambdaFunctionARN:exampIPV6Enabled:trueOrigins:- CustomOriginConfig:OriginKeepaliveTimeout:60OriginReadTimeout:30Tags:- Key:nameValue:exampleViewerCertificate:CloudFrontDefaultCertificate:true
#this is a problematic code where the query should report a result(s)AWSTemplateFormatVersion:"2010-09-09"Resources:cloudfrontdistribution:Type:AWS::CloudFront::DistributionProperties:DistributionConfig:CacheBehaviors:- LambdaFunctionAssociations:- EventType:viewer-requestLambdaFunctionARN:exampDefaultCacheBehavior:LambdaFunctionAssociations:- EventType:viewer-requestLambdaFunctionARN:exampIPV6Enabled:trueOrigins:- CustomOriginConfig:OriginKeepaliveTimeout:60OriginReadTimeout:30Tags:- Key:nameValue:exampleViewerCertificate:CloudFrontDefaultCertificate:falseMinimumProtocolVersion:SSLv3