Events Securing Finance in the Age of AI · Secure.com X ZIG Finance · London, 12 Nov Register now

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

Malicious NuGet packages hidden in fake .NET job assessments ran attacker code the moment candidates clicked Build.

Malicious NuGet packages: your job test was the malware

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

Dateline: November 30, 2026

  • Who should care: .NET developers looking for jobs, and any company whose engineers build untrusted code on work laptops.
  • What could go wrong: One build hands over Chrome logins, session cookies and every token on the machine.
  • Do this: Open take home tests only in a throwaway VM.
  • Worth remembering: The README told candidates to build the project. The build was the attack.

A take home coding test for Windows .NET developers came with a nasty extra. Thirteen malicious NuGet packages, dressed up as WinUI 3 and WPF button controls, ran attacker code the moment a candidate hit Build in Visual Studio.

What Happened?

Socket researchers published the findings on November 23. The lure was a GitHub repo called WinUI3_Home_Assessment, a three to four hour “Mini File Vault & Tracker” exercise. Its project file pointed at a local folder of poisoned packages committed to the repo. One package ran code after every build, staging a DLL beside a copied osk.exe for side loading. Others pulled executables straight from GitHub. The packages spanned 28 versions and four publisher accounts, active since July.

Malicious NuGet packages attack chain: take home test lure, local package folder, MSBuild hook fires, osk.exe side load, Chrome stealer and GitHub C2 payload

What’s the Impact?

Payloads included a Chrome profile stealer and a loader that used GitHub repos as command and control. A developer laptop holds source code, SSH keys, cloud and registry tokens, plus browser sessions that already passed MFA. One infected candidate can become a supply chain incident.

The Web3 Angle

One of the same publisher accounts pushed a Web3TotalButton package, and a linked account released a trojanized “Crypto Wallet Analyzer” app. Socket also found a fake freelance gig on a marketplace that pays in crypto. Socket has not named the group. The playbook looks like North Korea’s fake recruiter campaigns, but Socket found no shared code with them.

How to Avoid This

  • Build and run every take home project in a disposable VM with zero real credentials.
  • Check .csproj files for RestoreAdditionalProjectSources and committed .nupkg files before you build.
  • Limit your builds to approved package feeds, as part of a wider dependency risk plan.
  • Alert on osk.exe or OskSupport.dll running outside System32, and on %TEMP%\Launcher.exe.
  • If you built it, reimage the machine and rotate passwords, cookies and tokens from a clean device.

Malicious NuGet Packages: Indicators of Compromise

Hunt for these package IDs, files, network indicators and hashes on developer machines. All values are defanged. Most of the GitHub accounts now return 404, but cached packages and copied payloads can still sit on disk.

Malicious NuGet packages indicators of compromise: 13 package IDs, network indicators, file paths, GitHub repos and SHA-256 hashes

Your Build Button Just Became an Attack Surface

Attackers keep going after the people who write the code, as the ChainDrop npm attack showed. Secure.com runs your defense as a service, so one bad build gets caught and contained before it turns into a breach.

  • Managed SecOps watches developer endpoints 24/7 and moves fast on side loading, odd MSBuild child processes and GitHub API beaconing.
  • When an infection lands, experts isolate the host and drive credential, token and session revocation.
  • Managed Exposure Management finds unapproved package feeds, exposed tokens and risky developer access before attackers do.
  • A vCISO sets clear rules for hiring tests, developer devices and dependency policy, then reports progress to the board.

Governed defense, powered by offense. Your team sets the rules; Secure.com does the grunt work.

FAQs

What are the malicious NuGet packages in the fake job test campaign?
They are 13 NuGet packages that pose as WinUI 3 and WPF button controls, spread across 28 versions and four publisher accounts. They ran attacker code when candidates built a fake .NET take home test in Visual Studio.
How did the malicious NuGet packages run without a separate download?
The project file told NuGet to restore packages from a folder of .nupkg files committed to the repo. When the candidate built the project, a build hook in one package ran attacker code after every build.
Are the malicious NuGet packages still on NuGet?
When Socket published its report, NuGet had removed 12 of the 13 packages. Removal does not protect anyone who already cloned the repo, because the committed package files still restore locally.
What did the malware steal?
One payload copied Chrome profiles, which hold saved logins and session cookies, and uploaded them to GitHub. Another loader used GitHub repos as command and control, and a third payload reported to Telegram.
What should I do if I built one of these projects?
Treat the machine as compromised. Reimage it, then rotate passwords, browser sessions, SSH keys and cloud tokens from a clean device, and hunt for the published indicators on other machines.