Security researchers have identified 13 malicious NuGet packages built to lure Windows .NET developers through a fake take-home job assessment. The campaign relies on social engineering: candidates are asked to build and run a project as part of a hiring process, and the packages they pull in carry the malicious payload.

How the campaign works

According to Socket security researcher Kush Pandya, most of the packages masquerade as WinUI 3 and WPF button controls, UI components that a developer would reasonably expect to find in a legitimate assessment project. In the versions analyzed, simply building or running the project was enough to trigger the malicious activity.

The lure is effective because take-home assessments routinely require candidates to install dependencies and execute unfamiliar code. Developers evaluating an offer may not scrutinize package sources as closely as they would during routine development work.

Impact and risk

  • The packages are designed to deliver malware to the developer’s workstation.
  • Reports indicate the campaign gives attackers access to affected machines.
  • Targets are Windows developers working with the .NET ecosystem.

Recommendations

  • Treat take-home assessment projects as untrusted code and review package references before building them.
  • Verify package names, publishers, and download counts on NuGet before installing.
  • Run unfamiliar projects in an isolated virtual machine or sandbox rather than on a primary workstation.
  • Confirm recruiter and company identity through independent channels before executing provided code.
  • Monitor build environments and developer endpoints for unexpected outbound connections or newly spawned processes.

The case is a reminder that software supply chain attacks increasingly target people as well as code. Development teams and hiring managers should consider how their recruitment process itself can be abused.