def rule(event):
    if any(
        [
            event.deep_get("OriginalFileName", default="") == "psservice.exe",
            any(
                [
                    event.deep_get("Image", default="").endswith("\\PsService.exe"),
                    event.deep_get("Image", default="").endswith("\\PsService64.exe"),
                ]
            ),
        ]
    ):
        return True
    return False
