def rule(event):
    if all(
        [
            event.deep_get("Provider_Name", default="") == "Service Control Manager",
            event.deep_get("EventID", default="") == 7045,
            any(
                [
                    "\\AppData\\" in event.deep_get("ImagePath", default=""),
                    "\\\\127.0.0.1" in event.deep_get("ImagePath", default=""),
                    "\\\\localhost" in event.deep_get("ImagePath", default=""),
                ]
            ),
            not all(
                [
                    event.deep_get("ServiceName", default="") == "Zoom Sharing Service",
                    ":\\Program Files\\Common Files\\Zoom\\Support\\CptService.exe"
                    in event.deep_get("ImagePath", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
