Other Articles
- IAM - Enable User MFA
- IAM - Enforce Key Rotation
- IAM - Enforce Active Key Limit
- IAM - Disable Unused User Credentials
- IAM - Enforce Group Permission
- IAM - Enforce Password Length
- IAM - Prohibit Password Reuse
- IAM - Check Root Access Keys Existence
- IAM - Enable Root MFA
- IAM - Establish Support Role
- IAM - Enable Key Rotation
- Purge Expired Certificates
- EC2 Volume – Enable EBS Volume Backup
- EC2 Volume – Enable EBS Encryption
- EFS – Enable EFS Storage Backup
- S3 Bucket – Enable S3 Bucket Versioning
- S3 Bucket – Enable S3 Bucket Encryption
- S3 Bucket – Block S3 Bucket Public Access
- RDS DB Instance – Encryption of Storage
- RDS DB Instance – Enable Deletion Protection
- RDS DB Instance – Enable Auto Minor Version Upgrade
- DynamoDB Table – Enable Table Encryption
- DynamoDB Table – Enable Table Point In Time Recovery
- DynamoDB Table – Enable Table Deletion Protection
- EKS Cluster – Enable Secrets Encryption
- OpenSearch Domain – Enable Encryption at Rest
- RDS DB Cluster – Retain Backups for 7 Days
- RDS DB Cluster – Encryption of Storage
- RDS DB Cluster – Enable Deletion Protection
- EC2 Instance – Monitor CPU Utilization
- ECS Service – Monitor CPU Utilization
- ECS Service – Monitor Memory Utilization
- RDS DB Instance – Monitor Free Storage Space
- RDS DB Instance – Monitor CPU Utilization
- SQS Queue – Monitor Message Age
- SQS Queue – Monitor Message Visibility
- DynamoDB Table – Monitor Table Read Capacity
- DynamoDB Table – Monitor Table Write Capacity
- DynamoDB Table – Monitor Table Latency
- Enable CloudTrail
- Encrypt CloudTrail Logs
- EC2 VPC – Ensure Flow Logs are Enabled
- EKS Cluster – Enable Control Plane Logging
- CloudWatch Log Group – Enable KMS Encryption
- CloudWatch Log Group – Configure Retention
- Load Balancer – Enable Access Logs
- RDS DB Instance – Block Public Access
- EC2 Security Group – Restrict Public SSH and RDP Access
- EC2 Security Group – Restrict Public Database Access
- EKS Cluster – Restrict Public Endpoint
- EC2 VPC – Restrict Default Security Group Traffic
- Load Balancer – Redirect HTTP Traffic to HTTPS
- Load Balancer – Use Strong TLS Policies
- OpenSearch Domain – Enable Node-to-Node Encryption
- OpenSearch Domain – Enforce HTTPS
- OpenSearch Domain – Restrict Public Access
- RDS DB Cluster – Block Public Access
- EC2 Instance – Enable Deletion Protection
- ECS Service – Enable Auto Scaling
- Load Balancer – Enable Deletion Protection
- Enable AWS Security Hub
- Enable GuardDuty
- CloudFront Distribution – Enforce HTTPS for Viewers
- CloudFront Distribution – Require TLS 1.2 for Viewers
- CloudFront Distribution – Protect S3 Origin Access
- KMS Key – Avoid Pending Deletion
- SNS Topic – Enable Encryption
- SNS Topic – Restrict Topic Policy Access
CloudFront Distribution – Associate a WAF Web ACL
Secure Configuration Checks > AWS
This check ensures that every CloudFront distribution has an AWS WAF web ACL associated with it. A web ACL filters malicious requests before they reach your application.
Check Details
- Resource: CloudFront Distribution
- Check: Associate a WAF web ACL with CloudFront (
WebACLAssociated) - Risk: Web attacks and bots can reach the application and disrupt it
Remediation via AWS Console
-
Open the Amazon CloudFront console and select the affected distribution.
-
Open the Security tab and click (Enable/Disable protections) under Web Application Firewall (WAF).
-
Ensure Use monitor mode is unchecked so WAF actively blocks malicious requests.
-
Click Save changes and verify that WAF protection is active.
Note: WAF protections are included by default. Monitor mode only monitors threats without blocking them. Layer 7 DDoS protection requires the Business plan.
Remediation via AWS CLI
-
Log in to the AWS Management Console and click the CloudShell icon (
>_) in the top-right corner.
-
List the CloudFront web ACLs and note the ARN of the one to use:
aws wafv2 list-web-acls \ --scope CLOUDFRONT \ --region us-east-1 \ --query 'WebACLs[*].[Name,ARN]' \ --output table
-
Download the current distribution configuration:
aws cloudfront get-distribution-config \ --id <distribution-id> > dist-config.json
-
Set the web ACL in the configuration:
WEB_ACL_ARN="<web-acl-arn>" ETAG=$(jq -r '.ETag' dist-config.json) jq --arg arn "$WEB_ACL_ARN" '.DistributionConfig | .WebACLId = $arn' \ dist-config.json > updated-config.json
-
Apply the updated configuration:
aws cloudfront update-distribution \ --id <distribution-id> \ --if-match "$ETAG" \ --distribution-config file://updated-config.json
-
Verify that the web ACL is associated:
aws cloudfront get-distribution-config \ --id <distribution-id> \ --query 'DistributionConfig.WebACLId'
Replace <distribution-id> with your distribution ID, for example E1ABCDEF234567.
Replace <web-acl-arn> with the ARN from step 2.
Updated on 03 November, 2026