Panther medium experimental python

AWS WAF WebACL Has Associated Resources

This policy ensures that AWS WAF WebACLs are associated with at least one resource (ALB, CloudFront Distribution, or API Gateway). If a WebACL is not associated with any resources, it is inactive and not providing any protection.

View Source

Detection Logic

def policy(resource):
    # Check if the WebACL has any associated resources
    associations = resource.get("AssociatedResources", [])
    return len(associations) > 0

Field Validations

Loading…

Comments (0)

Loading comments...