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.

2 rules 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
24/11 XQL osk.exe started outside System32, or dotnet running MSBuildAnalyzer.dll (Cortex XDR)Thirteen malicious NuGet packages posing as a WinUI 3 job assessment: code runs on every MSBuild build and stages an osk.exe side-load medium T1574.002 T1195.001 T1127.001
tb-2026-11-24-osk-exe-lanc-hors-de-system32-ou-dotnet-ex-cutant-msbuildana.xqlXSIAM correlation rule
BIOC
Download XQL query
// Threat Brief 2026-11-24 · nuget-winui-osk · experimental
// osk.exe started outside System32 (OskSupport.dll side-loading pair) or dotnet running the MSBuildAnalyzer.dll stager
config case_sensitive = false
| dataset = xdr_data
| filter event_type = ENUM.PROCESS and event_sub_type = ENUM.PROCESS_START
| filter (action_process_image_name = "osk.exe" and action_process_image_path not contains "system32") or action_process_image_command_line contains "MSBuildAnalyzer.dll"
| fields _time, agent_hostname, actor_effective_username, actor_process_image_name, actor_process_command_line, causality_actor_process_image_name, action_process_image_path, action_process_image_command_line
xql: reviewed, not executed xdr_data (Windows processes) Licence DRL 1.1

Copy of the On-Screen Keyboard osk.exe started outside System32 (side-loading pair with OskSupport.dll under %LOCALAPPDATA%\osk) or a command line running MSBuildAnalyzer.dll, the stager of the NuGet packages described by Socket. False positives: osk.exe started from SysWOW64 or installation media ; internal tool named MSBuildAnalyzer.dll.

3 quotes from the sources
  • “copies C:\Windows\System32\osk.exe next to it.” socket.dev
  • “These decrypt to osk/osk.exe , which the control joins to %LOCALAPPDATA%” socket.dev
  • “launches dotnet on MSBuildAnalyzer.dll from the package” socket.dev