Attackers Target .NET Developers with Malicious Job Assessments and NuGet Packages
A supply-chain attack is distributing malicious NuGet packages disguised as job assessments to compromise .NET developer environments and steal sensitive data.

A sophisticated supply-chain campaign is actively targeting .NET developers by distributing malicious NuGet packages that are disguised as legitimate job assessment projects. Researchers at Socket have uncovered this operation, which involves at least 13 compromised packages designed to infiltrate Windows-based developer environments. The attackers are exploiting the trust developers place in code provided as part of job recruitment exercises, turning a standard development workflow into a potential infection vector.
The malicious NuGet packages are crafted to appear as "Home Assessment" projects, often posing as UI components for frameworks like WinUI 3 and WPF. When a developer builds or runs a project that includes these malicious dependencies, the packages are designed to download further malware from GitHub. This malware can then steal browser credentials, establish remote access, and potentially exfiltrate sensitive information from the developer's machine.
One of the primary methods employed involves staging a DLL side-loading attack around the Microsoft On-Screen Keyboard (osk.exe) or downloading and executing a malicious .exe file. This technique leverages legitimate system processes to mask the malicious activity, making detection more challenging. The campaign's success hinges on the common practice among developers of downloading, building, and running code from various sources, especially when presented as part of a job evaluation.
Socket's investigation traced the campaign across NuGet, GitHub repositories, and malicious code embedded within development projects. They identified packages linked through shared attack infrastructure and techniques, uncovering multiple publisher accounts associated with the operation. The most recent example involved a GitHub repository containing a "Mini File Vault & Tracker" project, which instructed candidates to use a supplied Visual Studio project, unaware that its dependencies harbored malicious code.
The payloads observed in this campaign include an infostealer specifically designed to target Chrome browser profiles, capturing saved logins and cookies. Additionally, a loader mechanism allows the threat actor to deliver different malware payloads to individual victims, increasing the campaign's adaptability and impact. The attackers' goal is to gain access to a developer's machine, which often contains a wealth of sensitive information, including source code, API keys, cloud credentials, and active session tokens.
Compromising a developer's machine presents a significant risk to enterprises. Attackers can gain access to critical intellectual property, authentication tokens, and potentially use the compromised machine as a pivot point into the broader corporate network. The stealthy nature of this attack, disguised as legitimate work, allows adversaries to operate with a degree of anonymity and control, potentially bypassing standard security measures.
To mitigate these risks, Socket advises developers to treat all take-home coding assignments and unfamiliar projects as untrusted code. Before building or running such projects, developers should scrutinize dependencies, check for unusual package sources, and be wary of build scripts that execute automatically. Running such assessments in isolated virtual machines and verifying recruiter legitimacy through official channels are also recommended practices.
Organizations are urged to implement stricter controls over NuGet feeds, review third-party packages for malicious scripts, and educate their development teams and job candidates about the dangers of these sophisticated recruitment-themed attacks. Vigilance and adherence to secure development practices are crucial in defending against these evolving supply-chain threats.