Malicious NuGet Packages: The Take-Home Test Was Malware

By 12 min read
Malicious NuGet packages hidden in a fake .NET job assessment that runs code at build time

A WinUI 3 coding exercise asked candidates to spend three or four hours building a “Mini File Vault”. The catch was in the build itself: pressing Build in Visual Studio ran attacker code before the candidate wrote a single line.

In short: Socket found 13 malicious NuGet packages, 28 versions from four accounts, that were wired into fake .NET job assessments, and simply building the take-home project was enough to stage malware on a developer’s Windows machine.

Socket’s Threat Research Team published the analysis on 23 November 2026. This article walks through how the build-time trick works, the five separate infection paths the same operators ran, how the campaign compares with Contagious Interview and other developer-targeted attacks, and what to hunt for.

What are the malicious NuGet packages in this campaign?

They are packages on NuGet, the official package registry for .NET, that pretended to be harmless user interface controls. Most posed as WinUI 3 or WPF button controls with names like WinUI3IconButton, StyledAppButton and SetButtonColor.

Socket counts 13 unique packages and 28 versions, published between 23 July and 4 November 2026 by four NuGet accounts. NuGet removed 12 of them. WinUI.Button 1.0.0 was still listed when Socket published, with roughly 160 downloads, a number Socket says includes mirrors and scanners rather than confirmed victims.

Four headline figures: 13 malicious NuGet packages, 28 versions, 5 infection paths, 12 removed
The NuGet packages were only one part of a wider operation that also used npm, GitHub and a freelance job site. Data: Socket Threat Research.

The four publisher accounts

NuGet account Packages (per Socket) When
HappyOne WinUI3IconButton, RevertButtonIcon, WindowsAccentColorName, SetButtonColor, InitializeCustomButton, StyledAppButton, StyledComponent July and August 2026
HappyOne HappyOne.MSBuildAnalyzer, HappyOne.WinUI3Controls 4 November 2026
Carol-White-Super WinUI.Button 2 September 2026
Steven-White-Super Web3TotalButton 25 October 2026
VS_Builder VS_Builder.MSBuildAnalyzer, VS_Builder.WinUI3Controls 2 November 2026

NuGet’s own removal log names Web3TotalButton and the two VS_Builder packages as malware. Socket separately flags RevertButtonIcon, SetButtonColor and InitializeCustomButton.

Why target .NET developers with fake job assessments?

Developers are valuable targets because their machines hold source code, signing material, cloud keys and tokens for GitHub and package registries. A fake job test is a reliable way to get them to download and build an unknown project, since that is exactly what the exercise asks for.

The approach is not new. Fake recruiter lures aimed at JavaScript and Python developers have run for years, most famously in the North Korea-linked activity known as Contagious Interview. What stands out here is the target: Windows desktop developers working in Visual Studio, and a delivery trick native to the .NET build system.

We covered a related pattern in PolinRider, the campaign that poisoned thousands of GitHub repositories, where simply building or testing a repository was enough to infect the developer.

How does the fake take-home assessment work?

The main lure was a public GitHub repository called WinUI3_Home_Assessment, created on 4 November 2026. Its README described a 3 to 4 hour task to build a file vault and tracker with Visual Studio 2026, and told candidates not to modify an external FileButton control. Socket found no recruiter message or job post tied to this specific repository.

Six-stage chain from a fake WinUI 3 assessment to a side-loaded DLL via osk.exe
The candidate never runs anything suspicious on purpose: building and launching the exercise is enough. Data: Socket Threat Research.

Step 1: a package feed inside the repository

The project shipped its own Packages folder and told NuGet to use it as an extra package source through the RestoreAdditionalProjectSources property. That means the malicious packages came from the repository itself, not only from nuget.org. The project also disabled Visual Studio’s fast up-to-date check, so builds would not be skipped.

Step 2: an MSBuild hook that runs on every build

MSBuild is the build engine behind Visual Studio and the dotnet command. A NuGet package can include .targets files in a build folder, and MSBuild automatically imports them into any project that references the package.

The analyzer package carried a target that ran after the Build step and executed a bundled .NET DLL with the dotnet command. It ignored errors, so a failure would not break the build, and it declared an output file that is never created, which forces the target to run every time.

Step 3: the stager prepares a side-load

The stager made 17 decoy calls, then downloaded a file from GitHub and saved it as OskSupport.dll in a new %LOCALAPPDATA%\osk\ folder. It also copied the real Windows On-Screen Keyboard, osk.exe, from System32 into the same folder. Its strings were layered behind Base64, XOR and AES encryption.

The stager never ran what it wrote. That is a deliberate split: the build step only prepares files, which looks less alarming to anyone watching.

Step 4: the button control pulls the trigger

The second package, the FileButton control, started the copied osk.exe in a hidden window the first time a FileButton was created, which happens when the candidate runs the app. Socket notes that osk.exe with OskSupport.dll is a publicly documented side-load pair.

DLL side-loading means placing a malicious DLL next to a legitimate, often signed, program so that the program loads the attacker’s code when it starts. Socket did not test the side-load itself, and the GitHub repository hosting the DLL returned 404 at analysis time, so the final payload of this path is not known.

Step 5: the operators adapted to the takedown

On 2 November the VS_Builder account published its packages; NuGet unlisted them the same day and deleted them before midnight UTC. Roughly 39 hours later, HappyOne published replacement packages, fixed a file naming mistake 26 minutes later, and updated the assessment repository to use them. NuGet removed every HappyOne package on 6 November.

What were the five infection paths?

Socket tied the NuGet packages to a wider operation with five separate routes onto a developer’s machine. Most of them used GitHub repositories as command and control (C2), the channel an attacker uses to send instructions and collect stolen data.

Five infection paths used by the campaign, from take-home test to ClickFix page
Each path targets a slightly different victim, but they share accounts, code and GitHub-based C2. Data: Socket Threat Research.

Path B: WinUI.Button

WinUI.Button 1.0.0 did not wait for a build hook. Its constructor started a background task that downloaded a file through the GitHub API, using an access token embedded in the DLL, saved it as %TEMP%\Launcher.exe and ran it, retrying without limit.

Path C: fake axios repositories

Two GitHub repositories imitated axios, the popular JavaScript HTTP library, and served Windows executables disguised as a .csproj file. The first file placed there was a harmless copy of Sysinternals Autoruns; the history held nine binaries in total. A native loader used another GitHub repository as C2 and refused to run on virtual machines, on low-spec hosts or when tools such as Wireshark, x64dbg, Ghidra or IDA Pro were present.

Path D: the Crypto Wallet Analyzer

On 7 November a two-day-old client account on LaborX, a freelance marketplace that pays in cryptocurrency, posted an 8,500 to 10,000 dollar job for a C# WPF “Crypto Wallet Analyzer”. Socket says the client persona matches a GitHub identity used elsewhere in the campaign. On 13 November that identity published a GitHub release of the app, which quietly loaded a bundled native DLL named to look like a Visual C++ runtime file. The DLL was a new build of the same GitHub C2 loader.

Path E: a ClickFix page

ClickFix is a social engineering trick where a fake error page tells the visitor to paste a command into the Windows Run box. Here a GitHub Pages site showed a fake reCAPTCHA and a “Security Handshake Error”, then asked the visitor to paste a hidden PowerShell command that would fetch and run a remote script. The download host did not resolve during Socket’s analysis, so the payload is unknown.

What does the malware steal?

The recovered payloads were built for theft and access:

  • A Chrome stealer, packaged with PyInstaller, created a Volume Shadow Copy, zipped Chrome profile folders including saved logins and cookies, and uploaded the archive in parts to a GitHub repository.
  • A payload Socket calls WeapF read an encrypted config from a GitHub README, sent the computer name, user, time zone and CPU model to a Telegram bot, and set a Run registry key for persistence. It was signed with a self-signed certificate pretending to be Microsoft.
  • The GitHub C2 loader profiled the host, fetched an encrypted payload per victim, ran it in memory and deleted itself.

For a developer, browser cookies are the real prize. Session cookies for GitHub, cloud consoles and package registries can let an attacker skip passwords and multi-factor prompts entirely, which is how a single laptop becomes a software supply chain incident like the WPPConnect compromise.

How did the campaign develop over time?

The operation started on npm, not NuGet. Between 14 and 23 July 2026, six npm packages appeared, including axios-test-one, telemetry-axios and fs-extra-core, and all were gone by 23 July. Socket says the first themed NuGet package followed about eight hours after the first fake axios repository was created.

Timeline of the fake job assessment campaign from npm packages in July to Socket's report in November
The operators moved from npm to NuGet to a paid job post within four months, switching accounts after each takedown. Data: Socket Threat Research.

Who is behind it?

Socket’s answer is plain: it has not attributed this campaign to a named threat actor.

Socket notes the take-home lures resemble fake-interview operations publicly linked to North Korea, and that the VPS provider behind one host also appears among Contagious Interview’s providers in MITRE’s records. But it found no shared code or indicators with any published Contagious Interview campaign, and none of the known families, BeaverTail, InvisibleFerret or OtterCookie, showed up. Socket also points to an Iranian-nexus cluster, reported by Unit 42, that used a Visual Studio project disguised as a coding test with GitHub C2. The techniques are widely shared, so they do not identify a group on their own.

How does it compare with other developer-targeted campaigns?

Campaign Ecosystem Lure Code runs when Attribution
This campaign (Socket, Nov 2026) NuGet, npm, GitHub Fake .NET take-home test, freelance job Project is built, then run Unattributed
Contagious Interview Developer projects Fake job interview coding task Candidate runs the project Linked to North Korea in public reporting
PolinRider GitHub repos Poisoned real repositories Project is built or tested Assessed as a Contagious Interview sub-cluster, as reported
TrojanPony GitHub repos Fake ‘improved’ AI coding-agent skills Skill is installed or used Not covered here

The common thread is that developer tooling treats “build” and “install” as safe actions. They are not: package managers and build systems run code by design.

Who is affected and how do you check exposure?

Anyone who built or ran one of the take-home projects, installed one of the listed packages, ran the Crypto Wallet Analyzer, or pasted the ClickFix command is potentially affected. Windows .NET developers who applied to freelance or remote jobs in the second half of 2026 are the most likely group.

To check a machine, Socket advises looking for:

  • The package names in project files, Directory.Packages.props, lock files, obj/project.assets.json and the local NuGet cache.
  • A %LOCALAPPDATA%\osk\ folder containing osk.exe or OskSupport.dll.
  • A %TEMP%\Launcher.exe file.
  • Any CryptoWalletAnalyzer.exe that has been run.

How do you detect this campaign?

Socket publishes 58 indicators, hashes and detection strings on its report page; use that as the authoritative list. The behaviours below are the ones Socket recommends alerting on.

Endpoint telemetry

  • osk.exe running from anywhere other than %WINDIR%\System32, or OskSupport.dll written outside it, especially when a .NET or WinUI app starts osk.exe hidden.
  • dotnet launched by MSBuild with a DLL from a NuGet package lib folder.
  • .NET applications writing executables to %TEMP%, self-deleting batch files, and Win32_ShadowCopy creation on developer workstations.

Network telemetry

  • GitHub API requests with the User-Agent MyUpdater or CppHttp/1.0, and GitHub contents uploads with commit messages such as “Backup” or “downloading new version”.
  • Telegram Bot API traffic from developer workstations.
  • raw.githubusercontent.com downloads of files ending in .csproj or .docker that are actually executables.

MITRE ATT&CK techniques

Socket maps the campaign to 41 techniques. Among the most useful for detection: Trusted Developer Utilities Proxy Execution: MSBuild (T1127.001), DLL side-loading under Hijack Execution Flow (T1574.001), Compromise Software Dependencies and Development Tools (T1195.001), Malicious Copy and Paste (T1204.004), Bidirectional Communication via web service (T1102.002), Exfiltration to Code Repository (T1567.001), Credentials from Web Browsers (T1555.003) and Steal Web Session Cookie (T1539).

How do you stop malicious NuGet packages?

  1. Treat take-home projects as untrusted code. Build and run them only in a disposable virtual machine with no saved credentials, no SSH keys and no signed-in browser.
  2. Inspect the project before building. Look for RestoreAdditionalProjectSources, extra NuGet.config feeds, committed .nupkg files and unfamiliar package references.
  3. Turn on NuGet package source mapping. Restrict which feeds each package may come from, including folders inside a repository.
  4. Review third-party build logic. Check build and buildTransitive .targets files that contain Exec tasks, especially those with ContinueOnError or outputs that are never produced.
  5. If you were hit, assume the browser is burned. Isolate and reimage, then rotate passwords, tokens and sessions from a clean device.
  6. Verify recruiters. Confirm jobs and repositories through the company’s official site, and publish your own hiring tests only from verifiable accounts.

What is still unknown?

  • Final payloads. The GitHub repository hosting OskSupport.dll and the ClickFix download host were unavailable during Socket’s analysis, so what those paths ultimately delivered is not known.
  • Victim numbers. Download counts include mirrors and scanners. Neither Socket nor secondary coverage reports confirmed victims.
  • Who is behind it. Socket explicitly leaves attribution open.
  • The exact timing of the comeback. Socket says HappyOne returned about 39 hours later but does not state exactly what that interval is measured from.
  • Whether LaborX was used elsewhere. Socket documents one job post. Whether the same persona recruited through other freelance sites is not reported.

The bottom line

The 13 malicious NuGet packages in this campaign show that “just build it” is an execution step, not a safe preview. The operators reused GitHub, npm, NuGet and a real freelance site, and swapped accounts within hours of each takedown. Run every job test in a throwaway VM and lock NuGet to the feeds you trust.

Sources

This article is written for defenders and authorised security testers. Only test systems you own or have written permission to assess.

Frequently asked questions

What are the malicious NuGet packages in the fake job assessment campaign?

They are 13 NuGet packages, published as 28 versions by four accounts between 23 July and 4 November 2026, that Socket linked to fake .NET developer job tests. Most pretended to be WinUI 3 or WPF button controls, and some ran code during the build.

How does a NuGet package run code during a build?

A NuGet package can ship MSBuild .targets files in its build folder, and MSBuild imports them into any project that references the package. In this campaign a target ran after every build and executed a bundled .NET DLL with the dotnet command.

Which NuGet packages are malicious?

Socket lists packages from the accounts HappyOne, Carol-White-Super, Steven-White-Super and VS_Builder, including WinUI3IconButton, WinUI.Button, Web3TotalButton, VS_Builder.MSBuildAnalyzer, VS_Builder.WinUI3Controls, HappyOne.MSBuildAnalyzer and HappyOne.WinUI3Controls. NuGet removed 12 of the 13; WinUI.Button 1.0.0 was still listed when Socket published.

Is this campaign North Korea's Contagious Interview?

Socket says it has not attributed the campaign to a named threat actor. The fake job lures resemble Contagious Interview, but Socket found no code or indicators shared with published Contagious Interview activity, and none of its known malware families appeared.

What does the malware steal?

Recovered payloads included a Chrome stealer that copied browser profiles, including saved logins and cookies, through a Volume Shadow Copy and uploaded them to a GitHub repository. Other stages sent host details to a Telegram bot or loaded further payloads from GitHub.

How do I check whether I ran one of these packages?

Look for the package names in project files, lock files, obj/project.assets.json and your NuGet cache, and check for a %LOCALAPPDATA%\osk\ folder or %TEMP%\Launcher.exe. If either exists, isolate and reimage the machine and rotate credentials from a clean device.

How can companies block malicious NuGet packages?

Socket recommends NuGet package source mapping and a restricted list of feeds, including feeds defined inside a repository. It also advises reviewing third-party build and buildTransitive .targets files that contain Exec tasks.

Is it safe to do coding tests for job interviews?

It can be, if you treat the project as untrusted code. Build and run it only in a disposable virtual machine with no saved credentials, and check recruiters and repositories through the company's official channels first.

Keep reading

malicious NuGet packagesfake job assessments.NET securitysoftware supply chainDLL side-loadingthreat intelligencedeveloper security