def rule(event):
    if all(
        [
            event.deep_get("protoPayload", "serviceName", default="") == "login.googleapis.com",
            event.deep_get("protoPayload", "metadata", "event", "eventName", default="")
            == "gov_attack_warning",
        ]
    ):
        return True
    return False
