def rule(event):
    if all(
        [
            event.deep_get("protoPayload", "Servicename", default="") == "login.googleapis.com",
            event.deep_get("protoPayload", "metadata", "event", "eventName", default="")
            in [
                "suspicious_login_less_secure_app",
                "suspicious_login",
                "suspicious_programmatic_login",
            ],
        ]
    ):
        return True
    return False
