More Info:

WAF rule groups should not be empty

Risk Level

High

Address

Security

Compliance Standards

CBP

Triage and Remediation

Remediation

To remediate the misconfiguration of having empty WAF V2 Rule Groups in AWS CloudWatch using the AWS console, follow these steps:

  1. Login to AWS Console: Go to the AWS Management Console (https://aws.amazon.com/) and login using your credentials.

  2. Navigate to AWS WAF: Click on the “Services” dropdown menu at the top of the page, search for “WAF & Shield” under the Security, Identity, & Compliance section, and click on it.

  3. Select the WAF Web ACL: In the AWS WAF & Shield dashboard, click on “Web ACLs” from the left-hand menu.

  4. Choose the Web ACL: Select the Web ACL that you want to check for empty WAF V2 Rule Groups.

  5. Review Rule Groups: In the selected Web ACL, review the configured Rule Groups to identify any that are empty.

  6. Edit the Web ACL: Click on the Web ACL that contains the empty WAF V2 Rule Groups to edit it.

  7. Remove Empty Rule Groups: In the Web ACL editor, locate the empty Rule Groups and remove them by clicking on the delete or remove option next to each empty Rule Group.

  8. Add Rules to Rule Groups: If necessary, add appropriate rules to the Rule Groups to ensure that they are not empty. You can create custom rules or use managed rule groups provided by AWS.

  9. Save Changes: After removing the empty Rule Groups and adding necessary rules, save the changes to the Web ACL.

  10. Review and Deploy: Review the updated Web ACL configuration to ensure that there are no more empty Rule Groups. Once you are satisfied with the changes, deploy the updated Web ACL to apply the changes.

By following these steps, you can remediate the misconfiguration of having empty WAF V2 Rule Groups in AWS CloudWatch using the AWS console.