import json


def rule(event):
    if any(
        [
            "ActionController::InvalidAuthenticityToken" in json.dumps(event.to_dict()),
            "ActionController::InvalidCrossOriginRequest" in json.dumps(event.to_dict()),
            "ActionController::MethodNotAllowed" in json.dumps(event.to_dict()),
            "ActionController::BadRequest" in json.dumps(event.to_dict()),
            "ActionController::ParameterMissing" in json.dumps(event.to_dict()),
        ]
    ):
        return True
    return False
