def rule(event):
    if any(
        [
            all(
                [
                    event.deep_get("ResultType", default="") == 50074,
                    "Strong Auth required" in event.deep_get("ResultDescription", default=""),
                ]
            ),
            all(
                [
                    event.deep_get("ResultType", default="") == 500121,
                    "Authentication failed during strong authentication request"
                    in event.deep_get("ResultDescription", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
