Dark ReadingElizabeth Montalbano
Fake .NET developer assessments hide malicious NuGet packages
A coordinated supply-chain campaign has been uncovered targeting Windows-based .NET developers with fake take-home coding assessments. Researchers from Socket discovered 13 malicious NuGet packages scattered across NuGet, GitHub repositories and compromised development projects. The packages were presented as part of “Home Assessment” exercises—many masquerading as WinUI 3 and WPF button controls.
In the analysed versions, building or running a project that depends on them downloads files from GitHub, stages a DLL side-loading pair around osk.exe (the Microsoft On-Screen Keyboard), or downloads and executes a hidden payload. Four NuGet publisher accounts have been linked to the operation and a GitHub repository created on 4 November described a three-to-four-hour exercise that, if completed, would trigger the malicious code.
The payload set includes an infostealer capable of copying Chrome browser profiles, including saved logins and cookies, and a loader that can deliver additional payloads to individual victims. The campaign leverages developers’ trust in legitimate sources to turn routine development work into an infection vector, potentially exposing source code, SSH keys, GitHub tokens, package registry credentials, cloud tokens and browser sessions.
Researchers noted that a successful compromise could grant attackers access to an enterprise’s internal tooling and credentials, since developers often operate with multifactor authentication already in place but from a compromised environment. The investigation emphasises that “a developer’s machine holds source code, SSH keys, GitHub, package registry and cloud tokens, and browser sessions,” underscoring the risk posed by a single infected environment.