cloudamatic/mu

View on GitHub
extras/lambda_waf_domain_blacklist.py

Summary

Maintainability
A
45 mins
Test Coverage

Avoid deeply nested control flow statements.
Open

                    if re.search(regex, results[ip]) or results[ip] == dom:
                        print("Blocking IP "+ip+". Request from '"+results[ip]+"' matched blacklist entry. LB log was: "+key)
                        addIPToWAFBlacklist(ip)
    return True
Severity: Major
Found in extras/lambda_waf_domain_blacklist.py - About 45 mins to fix

    There are no issues that match your filters.

    Category
    Status