def rule(event):
    if all(
        [
            any(
                [
                    any(
                        [
                            event.deep_get("Image", default="").endswith("\\AnyDesk.exe"),
                            event.deep_get("Image", default="").endswith("\\AnyDeskMSI.exe"),
                        ]
                    ),
                    event.deep_get("Description", default="") == "AnyDesk",
                    event.deep_get("Product", default="") == "AnyDesk",
                    event.deep_get("Company", default="") == "AnyDesk Software GmbH",
                ]
            ),
            not any(
                [
                    "\\AppData\\" in event.deep_get("Image", default=""),
                    "Program Files (x86)\\AnyDesk" in event.deep_get("Image", default=""),
                    "Program Files\\AnyDesk" in event.deep_get("Image", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
