def rule(event):
    if any(
        [
            all(
                [
                    event.deep_get("cs-method", default="") == "POST",
                    "/ecp/" in event.deep_get("cs-uri-query", default=""),
                    "/RulesEditor/InboxRules.svc/NewObject"
                    in event.deep_get("cs-uri-query", default=""),
                    event.deep_get("sc-status", default="") == 500,
                ]
            ),
            all(
                [
                    "SecurityToken=" in event.deep_get("cs-uri-query", default=""),
                    "/ecp/" in event.deep_get("cs-uri-query", default=""),
                    event.deep_get("sc-status", default="") == 500,
                ]
            ),
        ]
    ):
        return True
    return False
