Detection rules · Sigma, Cortex XQL, YARA

All rules, every day

The catalogue of Threat Brief rules since day one: filter by format, period, level or ATT&CK technique, open a rule to read its code, and download the selection as one file.

1 rule over 1 day · technique T1127.001 (remove) Most recent first
DateFormatRule and topicLevelATT&CK
24/11 YARA MSBuild .targets file of the VS_Builder / HappyOne.MSBuildAnalyzer stagerThirteen malicious NuGet packages posing as a WinUI 3 job assessment: code runs on every MSBuild build and stages an osk.exe side-load high T1195.001 T1127.001
tb-2026-11-24-fichier-msbuild-targets-du-stager-vs-builder-happyone-msbuil.yarDownload YARA rule
rule TB_20261124_NuGet_MSBuildAnalyzer_targets
{
    meta:
        author = "Threat Brief (tlpclear.fr)"
        date = "2026-11-24"
        reference = "https://socket.dev/blog/malicious-nuget-packages-fake-job-assessments"
        description = "MSBuild targets file of the VS_Builder / HappyOne.MSBuildAnalyzer NuGet stager that runs MSBuildAnalyzer.dll after every build"
        status = "experimental"
    strings:
        $t1 = "ExecuteInlineCSharpTarget" ascii wide
        $t2 = "ForceExecuteNonExistenFile.txt" ascii wide
        $t3 = "MSBuildAnalyzer.dll" ascii wide
        $t4 = "_AnalyzerLibFolder" ascii wide
    condition:
        (uint8(0) == 0x3C or uint16(0) == 0xBBEF or uint16(0) == 0xFEFF) and filesize < 50KB and 3 of ($t*)
}
yara: compiled files (NuGet cache, cloned repositories) Licence DRL 1.1

build/*.MsBuildAnalyzer.targets file that runs dotnet MSBuildAnalyzer.dll after every build (ExecuteInlineCSharpTarget target, ForceExecuteNonExistenFile.txt output), to hunt in the NuGet cache and in take-home test repositories. False positives: copy kept by a researcher or an analysis tool.

3 quotes from the sources
  • “ExecuteInlineCSharpTarget runs after Build and launches dotnet on MSBuildAnalyzer.dll” socket.dev
  • “Its Outputs value names ForceExecuteNonExistenFile.txt , a file that nothing creates” socket.dev
  • “< _AnalyzerLibFolder Condition” socket.dev