Ensures AWS WAF Classic global web ACLs contain at least one rule or rule group, necessary for robust web security management.
Rule | AWS WAF Classic global web ACLs should have at least one rule or rule group |
Framework | AWS Foundational Security Best Practices |
Severity | ✔ Medium |
Rule/Policy Description
AWS WAF Classic global Web ACLs should have at least one rule or rule group for AWS Foundational Security Best Practices to ensure the protection of web applications from common web exploits and malicious traffic.
Troubleshooting Steps
If the global Web ACL does not have a rule or rule group for AWS Foundational Security Best Practices, follow these troubleshooting steps:
Necessary Codes
If no rules or rule groups are currently in place, you can use AWS Managed Rules for AWS WAF to implement AWS Foundational Security Best Practices. Here is an example of using AWS CLI to associate an AWS Managed Rule Group with a Web ACL:
aws wafv2 associate-web-acl --web-acl-id <web-acl-id> --scope REGIONAL --rule-group-arn <rule-group-arn>
Remediation Steps
Follow these steps to add an AWS Managed Rule Group for AWS Foundational Security Best Practices to the global Web ACL using AWS CLI:
aws wafv2 list-web-acls
aws wafv2 associate-web-acl --web-acl-id <web-acl-id> --scope REGIONAL --rule-group-arn <rule-group-arn>
aws wafv2 get-web-acl --id <web-acl-id>
By following these steps, you can ensure that the global Web ACL includes rules or rule groups for AWS Foundational Security Best Practices, enhancing the security posture of your web applications.