1-minute read
What a defender needs to know
Socket traced 13 malicious NuGet package IDs to fake .NET developer assessments. The first two commits of a WinUI 3 starter project carry two package archives in a local Packages folder; its latest commit no longer restores them. Building one of those early revisions runs an MSBuild target from VS_Builder.MSBuildAnalyzer version 1.2.7, staging %LOCALAPPDATA%\osk\OskSupport.dll beside a copied osk.exe; opening the starter window makes FileButton from VS_Builder.WinUI3Controls version 1.0.7 try to launch that copied executable. Socket did not test successful side-loading on current Windows builds, so treat the attempted launch and staged files as investigation leads. Another package, WinUI.Button version 1.0.0, tries to write and run %TEMP%\Launcher.exe when its control is created. Its NuGet Gallery entry now says the package has been deleted.
Before building an unfamiliar take-home project, inspect NuGet.config, RestoreAdditionalProjectSources, .nupkg files and imported build/*.targets; use package source mapping and a disposable Windows VM without developer credentials. On machines that built or ran the project, inspect MSBuild-to-dotnet.exe process ancestry, %LOCALAPPDATA%\osk\ and %TEMP%\Launcher.exe. Isolate affected systems, preserve evidence, reimage, and rotate browser and developer secrets from a clean device. Verify the repaired project has only approved package sources and no affected dependency or cached package. Public gallery deletion leaves previously downloaded archives and local feeds to check.