def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("Image", default="").endswith("\\addinutil.exe"),
                    event.deep_get("OriginalFileName", default="") == "AddInUtil.exe",
                ]
            ),
            any(
                [
                    "-AddInRoot:" in event.deep_get("CommandLine", default=""),
                    "-PipelineRoot:" in event.deep_get("CommandLine", default=""),
                ]
            ),
            not any(
                [
                    '-AddInRoot:"C:\\Program Files (x86)\\Common Files\\Microsoft Shared\\VSTA'
                    in event.deep_get("CommandLine", default=""),
                    "-AddInRoot:C:\\Program Files (x86)\\Common Files\\Microsoft Shared\\VSTA"
                    in event.deep_get("CommandLine", default=""),
                    '-PipelineRoot:"C:\\Program Files (x86)\\Common Files\\Microsoft Shared\\VSTA'
                    in event.deep_get("CommandLine", default=""),
                    "-PipelineRoot:C:\\Program Files (x86)\\Common Files\\Microsoft Shared\\VSTA"
                    in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
