def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("Image", default="").endswith("\\addinutil.exe"),
                    event.deep_get("OriginalFileName", default="") == "AddInUtil.exe",
                ]
            ),
            not any(
                [
                    ":\\Windows\\Microsoft.NET\\Framework\\" in event.deep_get("Image", default=""),
                    ":\\Windows\\Microsoft.NET\\Framework64\\"
                    in event.deep_get("Image", default=""),
                    ":\\Windows\\Microsoft.NET\\FrameworkArm\\"
                    in event.deep_get("Image", default=""),
                    ":\\Windows\\Microsoft.NET\\FrameworkArm64\\"
                    in event.deep_get("Image", default=""),
                    ":\\Windows\\WinSxS\\" in event.deep_get("Image", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
