Malicious NuGet Packages Turn Fake .NET Job Assessments Into Malware Traps

· Original article ↗

Summary

Socket researchers traced 13 malicious NuGet packages used in fake .NET job assessments. The packages can download and run payloads, including through DLL sideloading; researchers linked the activity to related fake Axios repositories and npm packages.

Key points

  • The packages posed as Windows UI controls and were embedded in a fake take-home assessment for .NET developers.
  • VS_Builder.MSBuildAnalyzer downloads a DLL and stages it beside osk.exe; a related package can trigger the DLL through sideloading.
  • Other packages download and run Windows executables, including one retrieved through the GitHub API using an embedded access token.
  • Researchers connected the activity to bogus Axios repositories, related npm packages, and a .NET app whose bundled DLL continues running after its window is closed.
  • The fraudulent job was advertised on LaborX as a C# WPF development project involving crypto-wallet inventory.
  • The 13 identified NuGet packages had been removed from the gallery. Researchers did not attribute the campaign to a named actor and found no indicators or code shared with published Contagious Interview or other North Korean campaigns.

Article Details

Attack Vectors
  • Malicious NuGet packages posed as WinUI 3 and WPF controls and executed code when projects using them were built or run.
  • An MSBuild targets file ran a bundled DLL after each build; the DLL downloaded a file from GitHub and staged it alongside osk.exe for DLL sideloading.
  • Other packages downloaded Windows executables from GitHub repositories and ran them, including through a background routine in WinUI.Button.
  • A fake job-assessment repository directed .NET developers to projects that referenced the malicious packages.
  • A fake reCAPTCHA page used a ClickFix-style prompt telling visitors to copy a security token into the Windows Run dialog.
  • A .NET app presented as a crypto-wallet inventory tool loaded a bundled native DLL that continued running in a background thread after the window was closed.
Defensive Notes
  • The identified NuGet packages had been deleted from the gallery as of the article's publication.
  • Review package dependencies and build-time MSBuild targets in untrusted assessment projects; the reported targets ran a bundled DLL after every build.

MITRE ATT&CK

People

Products

Industries

Related Articles