def rule(event):
    if all(
        [
            event.deep_get("TargetImage", default="").endswith(":\\Windows\\System32\\svchost.exe"),
            event.deep_get("GrantedAccess", default="") == "0x1F3FFF",
            "UNKNOWN" in event.deep_get("CallTrace", default=""),
            not all(
                [
                    ":\\Program Files\\Microsoft Visual Studio\\"
                    in event.deep_get("SourceImage", default=""),
                    event.deep_get("SourceImage", default="").endswith(
                        "\\MSBuild\\Current\\Bin\\MSBuild.exe"
                    ),
                    any(
                        [
                            "Microsoft.Build.ni.dll" in event.deep_get("CallTrace", default=""),
                            "System.ni.dll" in event.deep_get("CallTrace", default=""),
                        ]
                    ),
                ]
            ),
        ]
    ):
        return True
    return False
