Security & privacy

Malicious NuGet packages target .NET developers via fake job assessments

Thirteen malicious NuGet packages disguised as UI controls were used to deliver malware through a fake take-home coding assessment for Windows .NET developers.

A glass cube with red circuits on a desk with resumes and a laptop
Illustration generated for this article

Security researchers have identified a coordinated supply chain attack targeting Windows .NET developers through thirteen malicious NuGet packages. The campaign, active from July to November 2026, lured victims with a fake take-home job assessment hosted on GitHub and advertised on a Web3 freelance marketplace.

The attackers posed as a client seeking a C# WPF developer for a crypto wallet inventory tool, using the guise of a standard technical interview to distribute malware that steals browser profiles and establishes command-and-control channels.

What happened

The attack vector began with a GitHub repository named "stevenleedig-ux/WinUI3_Home_Assessment," created on November 3, 2026. This repository contained a project file referencing two specific NuGet packages: VS_Builder.MSBuildAnalyzer and VS_Builder.WinUI3Controls. Candidates were asked to complete tasks involving a FileButton control within three to four hours, with instructions permitting the use of AI assistants but discouraging blind copy-pasting.

When developers built or ran the project, the referenced packages executed malicious code. The VS_Builder.MSBuildAnalyzer package included an MSBuild targets file that ran a bundled DLL after every build. This DLL downloaded a file from GitHub and copied the legitimate Microsoft On-Screen Keyboard executable (osk.exe) next to it, preparing for a DLL sideloading attack. The second package, VS_Builder.WinUI3Controls, triggered the execution of this staged DLL when the FileButton control was interacted with.

The campaign involved a total of thirteen packages, including WinUI.Button, HappyOne.MSBuildAnalyzer, and RevertButtonIcon. Some packages acted as loaders, downloading executables like "avast.exe" from attacker-controlled GitHub repositories and running them from the user's temporary folder. Others served as dependencies to ensure the malicious code remained embedded in the project structure. All identified packages have since been removed from the NuGet gallery.

How it works

The core mechanism relies on DLL sideloading and abuse of the build process. In the primary variant, the malicious MSBuild target executes a DLL during the compilation phase. This DLL places a malicious library in the same directory as a trusted system binary, osk.exe. When the application later attempts to load the On-Screen Keyboard, Windows loads the malicious DLL instead of the legitimate one due to search order hijacking.

Other packages in the set used more direct methods. For instance, the WinUI.Button package initiated a background routine that used an embedded GitHub access token to download an executable from a remote repository. This file was saved as Launcher.exe in the temp directory and executed immediately. Several packages were interdependent, ensuring that if one was removed, others might still pull in the malicious components or maintain persistence through dependency chains.

The infrastructure extended beyond NuGet. The attackers also maintained bogus npm packages impersonating the popular Axios HTTP client, such as axios-test-one and telemetry-metrics. These Node.js packages downloaded Windows executables that functioned as loaders, Chrome profile stealers, or info-stealers reporting system details to Telegram bots. The attackers used multiple GitHub accounts, including gabsantosbus-star and figma-share, to host these payloads and manage command-and-control communications.

Key details

  • Thirteen malicious NuGet packages were identified, including WinUI.Button, VS_Builder.MSBuildAnalyzer, and HappyOne.WinUI3Controls.
  • The attack was promoted via a $8,500–$10,000 job listing on the LaborX freelance marketplace, posing as a crypto wallet development role.
  • The lure repository instructed candidates to use AI tools like Copilot but warned against generating solutions without understanding the code.
  • Malware payloads included Chrome profile stealers, info-stealers sending data to Telegram, and loaders using GitHub repositories for command-and-control.
  • The threat actor’s X profile claimed to be based in Miami, Florida, but account metadata indicated a location in Korea.
  • No specific threat group has been attributed, though the tactics resemble recruitment-themed campaigns linked to North Korea and Iran.

Why it matters

This incident highlights the vulnerability of open-source supply chains to social engineering. Developers often trust packages that appear to solve immediate problems, especially when they are part of a structured task like a job assessment. The use of common UI control names made the packages seem legitimate, and the integration into a plausible hiring workflow lowered suspicion.

For engineering leads and security teams, this underscores the risk of third-party dependencies in build pipelines. Malicious code executing during the build phase can bypass runtime security controls that focus on application behavior rather than compilation artifacts. The overlap with npm attacks suggests a multi-ecosystem strategy, where attackers exploit trust in both .NET and JavaScript communities to maximize reach.

What you can do

  • Audit your NuGet and npm dependencies for any packages listed in the attack details, such as VS_Builder.MSBuildAnalyzer or axios-test-one.
  • Implement strict package allow-lists in your build pipelines to prevent unauthorized or unknown packages from being installed.
  • Review MSBuild targets and pre-build scripts in third-party packages for unusual file operations or network requests.
  • Verify the identity of hiring clients on freelance platforms by cross-referencing their contact details and company history.
  • Use sandboxed environments for completing take-home assessments to isolate potential malware from your primary development machine.
  • Monitor GitHub repositories for suspicious activity, such as newly created accounts hosting binaries or using typosquatting names like jasonsayman.
  • #nuget
  • #supply chain security
  • #malware
  • #.net
  • #social engineering

Tools from the Bytechap store

Keep reading

All stories