Fake Job Tests Used to Slip Malicious NuGet Packages Onto .NET Developers' Machines
Researchers have uncovered a campaign that targets .NET developers through fake job assessments. The operation involved 13 malicious NuGet packages, the shared code libraries that .NET developers routinely download to build software.
The lure is a recruitment process. Developers are given what looks like a legitimate technical test as part of a job application. The malicious packages are used to deliver malware, which then gives the attackers access to the developer's machine.
This approach exploits two things developers do as a matter of routine: trust public package repositories, and run unfamiliar code during hiring exercises. A developer's computer often holds source code, credentials and access to company systems, which makes it a valuable foothold for an attacker.
Why it matters
Developers, and the small businesses that employ or contract them, are exposed because the attack arrives through a normal activity (job hunting) and a trusted source (a package repository). It breaks the assumption that a package from a public registry or a task from a recruiter is safe to run on a machine with access to company code and credentials. Businesses need to decide whether developers can run assessment projects and install new packages on the same devices they use for work.
What to do
- Run job assessments and unfamiliar projects only in a disposable virtual machine or sandbox, not on a work device.
- Review the NuGet packages referenced by any project before building it, and look for unfamiliar or recently published names.
- Check developer machines and project dependencies for the 13 malicious NuGet packages once the researchers' list is available.
- Tell developers to report unsolicited recruitment approaches that include coding tests.