def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("Image", default="").endswith("\\sqltoolsps.exe"),
                    event.deep_get("ParentImage", default="").endswith("\\sqltoolsps.exe"),
                    event.deep_get("OriginalFileName", default="") == "\\sqltoolsps.exe",
                ]
            ),
            not event.deep_get("ParentImage", default="").endswith("\\smss.exe"),
        ]
    ):
        return True
    return False
