Wednesday 25 November 2026 Edition compiled at 07.44 NL EN FR
← Tech · Programming languages
Tech · Programming languagesSupply chain

A take-home coding test as bait: building the project pulled in NuGet packages that stole browser data

Socket found thirteen malicious packages posing as buttons and build tools for WinUI 3, twelve of which have since been removed.

· latest source update ma · 3 sources · Socket, The Machine Herald, Helix · Compiled with AI
Illustration for this article

Researchers at security firm Socket have linked thirteen malicious packages on NuGet, the package source for .NET, to a campaign against Windows developers. They comprised 28 versions from four accounts, posing as WinUI 3 controls and build tools. The bait was a fake take-home assignment for a job application, hosted on GitHub, which candidates had to build and run. Socket described the campaign on its blog on Monday, and The Machine Herald and Helix summarised the research.

The abuse relied on a NuGet mechanism itself: a package can ship a file with build instructions that is automatically loaded into the project. As a result, a piece of code started after every compile, downloading a DLL and copying the Windows on-screen keyboard osk.exe into a folder of its own. When that program was later launched, it loaded the malicious DLL instead of the genuine one, a technique known as DLL side-loading. According to Socket, what followed included a program that packed up Chrome profiles and uploaded them to GitHub, which the operation also used as a control channel.

The operation began in July with six npm packages, which are now offline, and ran on NuGet from 23 July to 4 November, The Machine Herald reports. NuGet removed twelve packages. The last one, WinUI.Button, was still online at the time of publication, but had also been deleted by 24 November, according to The Machine Herald. Socket does not attribute the campaign to a particular group. The approach resembles North Korean campaigns using fake job interviews, but there are no shared technical traces. The company advises treating test assignments as untrusted code and building them in a disposable environment.

Spotted a mistake in this article? Let us know.