// Threat Brief 2026-11-24 ยท MSBuild .targets file of the VS_Builder / HappyOne.MSBuildAnalyzer stager // Experimental rule, provided without warranty: test and validate in your environment before any production use; do not block on it alone. // License DRL 1.1 (https://github.com/SigmaHQ/Detection-Rule-License), author Threat Brief, https://tlpclear.fr/detections/2026-11-24 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*) }