import json


def rule(event):
    if any(
        [
            "SuspiciousOperation" in json.dumps(event.to_dict()),
            "DisallowedHost" in json.dumps(event.to_dict()),
            "DisallowedModelAdminLookup" in json.dumps(event.to_dict()),
            "DisallowedModelAdminToField" in json.dumps(event.to_dict()),
            "DisallowedRedirect" in json.dumps(event.to_dict()),
            "InvalidSessionKey" in json.dumps(event.to_dict()),
            "RequestDataTooBig" in json.dumps(event.to_dict()),
            "SuspiciousFileOperation" in json.dumps(event.to_dict()),
            "SuspiciousMultipartForm" in json.dumps(event.to_dict()),
            "SuspiciousSession" in json.dumps(event.to_dict()),
            "TooManyFieldsSent" in json.dumps(event.to_dict()),
            "PermissionDenied" in json.dumps(event.to_dict()),
        ]
    ):
        return True
    return False
