- Socket found 13 malicious NuGet packages tied to fake developer job tests. NuGet removed 12, and one was still listed when Socket wrote.
- Two packages worked as a pair: one prepared files when the project was built, and the other launched them at run time.
- Socket could not tell how the test projects reach candidates. Review where outside code is built, and check your projects for the package names Socket lists.
A job test is a request to run a stranger's code
A take-home coding test asks a developer to build and run a project written by someone they have not met. Candidates see a chance at a job. They do not see a security decision. Socket's Threat Research Team describes an operation built on that gap.
The lesson here is that the hiring process can be the way in. The attacker does not have to break into a developer's machine. The developer is asked to run the code. The instructions also forbid changing the one control that carries the trigger.
What Socket found
Socket's researchers identified 13 malicious NuGet packages. NuGet is the public package source for .NET developers. The 13 names had 28 versions between them. Most pose as button controls for WinUI 3 and WPF, which are toolkits for building Windows apps.
The campaign first showed up in npm packages in July 2026. Its malicious files sit in GitHub repositories. Socket dates the NuGet activity from July 23 to November 4, 2026. Four separate accounts did the publishing.
NuGet has removed 12 of the packages. WinUI.Button 1.0.0 was still listed when Socket wrote. It had about 160 downloads. Socket warns that this figure may include mirrors and scanners. It is not a count of victims.
How the trap works
The newest lure Socket found is a public GitHub repository created on November 4, 2026. Its README presents a "Home Assessment": a three to four hour exercise to build a small file-tracking app. Candidates must work on native Windows with Visual Studio 2026.
The README also says: "Do not alter the inner workings or styles of the external FileButton itself". Socket reads this as a way to keep candidates' hands off the control that starts the launch.
Socket could not tell how candidates reach these projects. It could not trace any recruiter message, email or job advert that pointed to them.
Two halves, neither harmful alone
The first half runs when the project is built. NuGet automatically loads a build file from each package a project uses. The lure's analyzer package used that to run a program after every build. The program calls itself an "MSBuild Compatibility Analyzer" and lists Microsoft as its company.
Socket says the program made 17 decoy calls, then decrypted hidden settings. It then downloaded a file from GitHub into a folder under %LOCALAPPDATA%\osk. It also copied the Windows On-Screen Keyboard program, osk.exe, into that folder. Socket says this program does not run anything it writes.
The second half runs when the app starts. The FileButton control launches the copied osk.exe in a hidden window, once per process. HijackLibs lists osk.exe as a program that can run a malicious DLL placed beside it in a user-writable folder. This is called DLL side-loading.
Socket did not test the side-load. It says it is an open question whether a copied osk.exe starts from that folder on current Windows builds. The GitHub repository that held the downloaded file returned an error. What the file contained is unknown.
Socket's conclusion is that neither package works alone. The README asks candidates to build the project and then run it. Doing both sets off both halves. In our view, a check that looks at one package at a time sees only part of the behaviour.
A simpler package, and a takedown that did not reach everything
WinUI.Button 1.0.0 works differently. Socket says nothing runs at install or build time. The code starts when an app opens a window containing the control. It then downloads a file named avast.exe from GitHub. It uses a 93-character token stored in plain text. It saves the file as Launcher.exe and runs it.
Socket could not tell whether a public calculator repository that uses this package belongs to the attacker or to a targeted developer. It does not name the owner.
The GitHub account that hosted the file now returns an error. The second stage is therefore unrecoverable. Socket says the code collects no victim data itself. Socket did not use the embedded token.
The lure's first two commits also carried the packages bundled inside the repository. Socket says those copies have no NuGet catalog entry or repository signature. NuGet deleted every HappyOne package on November 6. Socket says the lure no longer restores as committed. Those first two commits still hold the bundled copies.
What leaders and teams should do
Start with where outside code gets built. Put these questions to your security and engineering leads.
Do developers, contractors and interview candidates build unfamiliar projects on laptops that hold company access? If so, is there a disposable environment for reviewing code from outside?
The lure's first commit pointed the project at a bundled local Packages folder through a project setting. Can any of your projects restore packages from a local folder? Do you review other package sources that were not set up by your own team?
Do any projects reference the packages Socket names? These include WinUI.Button, Web3TotalButton, RevertButtonIcon, SetButtonColor, InitializeCustomButton, and the VS_Builder and HappyOne packages. Search lock files and build logs for them.
If your own firm sends coding tests, keep them free of third-party binaries.
A coding test is a request to run someone else's code. Treat it as one.
Produced by the WebPulse Newsroom with AI assistance from the original reporting credited below, and checked against that source by our editorial review. How we use AI.
Original reporting: Socket.





