The Library

Malicious NuGet Packages: 13 Fake Job Assessment Tests Targeted .NET Developers, NuGet Removed 12, and the Package Names to Check

Socket found 13 malicious NuGet packages handed to .NET developers as fake take-home job tests. NuGet has removed 12. This post has the package list, what is not known, and what to check this week.

Elite Performance Exclusive LLC 6 min read

Where Worldwide

Malicious NuGet Packages: 13 Fake Job Assessment Tests Targeted .NET Developers, NuGet Removed 12, and the Package Names to Check
On this page 8 sections

Socket's Threat Research Team identified 13 malicious NuGet packages that were handed to .NET developers as fake take-home coding tests for job applications. If your business employs developers, or hires them, a fake job assessment can put malicious code on a machine that holds your source code and logins.

This post covers what Socket has confirmed, what is still unknown, the full list of package names, and the checks worth doing this week.

What happened: 13 malicious NuGet packages in fake job assessments

NuGet is the package registry .NET projects use to pull in shared code. According to Socket's write-up, these 13 packages were spread as fake job assessments: the take-home coding test a hiring manager sends a candidate. The campaign was aimed at Windows .NET developers.

A Socket researcher named Pandya told The Hacker News: "Most of the packages pose as WinUI 3 and WPF [Windows Presentation Foundation] button controls". In other words, they look like ordinary user interface components, the kind of entry that does not stand out in a project file.

Socket says: "NuGet has removed the other 12." The sources do not say which package is the exception or whether it can still be downloaded. Treat all 13 names as packages to avoid.

What is confirmed and what is not known

News coverage of supply chain attacks often runs ahead of the facts. Here is what Socket's research supports, and where the gaps are.

Question What the sources say
Who found the packages Socket's Threat Research Team
How many packages 13 malicious NuGet packages
Who was targeted .NET developers, through fake job assessments
What they look like Mostly WinUI 3 and WPF button controls
Have they been removed Socket says NuGet has removed 12. The status of the 13th is not stated
Who is behind it Not known. Socket: "We have not attributed this campaign to a named threat actor."
How many people were infected Not known. Socket: "Download counts include mirrors and scanners and are not victim counts."
What the malware does once it runs Not described in the sources this post relies on
When the campaign started Not stated

If you see a headline claiming a number of victims, keep Socket's warning in mind: a download count is not a victim count. If you see a group named as the attacker, Socket itself has not named one.

The malicious NuGet package list

These are the 13 package names reported by The Hacker News from Socket's research:

  • WinUI.Button
  • VS_Builder.MSBuildAnalyzer
  • VS_Builder.WinUI3Controls
  • HappyOne.MSBuildAnalyzer
  • HappyOne.WinUI3Controls
  • Web3TotalButton
  • RevertButtonIcon
  • WinUI3IconButton
  • WindowsAccentColorName
  • SetButtonColor
  • InitializeCustomButton
  • StyledAppButton
  • StyledComponent

Several of them have generic names that could pass for a real helper library. That is why the list is worth searching for, not just skimming.

Why fake job assessments work on developers

A take-home test comes with a deadline and a reason to open it fast: the candidate wants the job. Downloading the project and building it is exactly what the test asks for. Nothing about it looks like phishing, because the candidate is expecting a project to arrive.

Socket's advice is short: "Treat a take-home project as untrusted code." A job offer attached to a project does not make the project any safer. It is code from someone you have never worked with, and it deserves the same caution as an unknown email attachment.

Why this matters for a company network

On many teams, a developer's computer is one of the most trusted machines on the network. It often holds:

  • Copies of the company's source code
  • Saved logins for code hosting, cloud accounts and servers
  • Access keys used to deploy websites and apps
  • A password manager or browser profile with work accounts

A developer looking for their next role may well open a take-home test on the same laptop they use for work. If that test pulls in a malicious package, the risk is no longer just theirs. It reaches every system that laptop can log in to.

There is a second risk. If one of these package names ever made it into a real company project, it could travel into your builds and your build servers. If you run your own build or deployment machines, our page on self-hosting and infrastructure explains how we approach keeping them separate and locked down.

What to do this week

There is no patch here, because this is not a bug in your software. It is a question of what your people install and run.

Action How to check
Search your .NET projects for the 13 names Search the project files, package lists and lock files in every repository for the names above
Ask your developers about recent take-home tests A short, no-blame question: has anyone run a job test on a work device?
Separate job tests from work machines Use a separate, throwaway machine or virtual machine with no company logins for any outside code
If a match turns up Take the machine off the network, have it checked, and change passwords and keys stored on it, using a clean device
Tell staff the rule One line in your next team message: a take-home test is untrusted code

The sources do not describe what the malware does or give signs to look for on an infected machine. So if you find one of these packages on a work device, assume the worst until someone has examined it.

Malicious NuGet packages questions people are asking

Which NuGet packages were malicious?

Thirteen: WinUI.Button, VS_Builder.MSBuildAnalyzer, VS_Builder.WinUI3Controls, HappyOne.MSBuildAnalyzer, HappyOne.WinUI3Controls, Web3TotalButton, RevertButtonIcon, WinUI3IconButton, WindowsAccentColorName, SetButtonColor, InitializeCustomButton, StyledAppButton and StyledComponent.

Have the malicious NuGet packages been removed?

Socket says NuGet has removed 12 of them. The sources do not say which package is the exception or whether it is still available.

Who is behind the fake job assessment malware?

No one has been named. Socket says it has not attributed the campaign to a named threat actor.

How many developers were infected?

That is not known. Socket warns that download counts include mirrors and scanners and are not victim counts.

What does the malware in these NuGet packages do?

The sources this post relies on do not describe the payload. Until more is published, treat any machine that installed one of these packages as possibly compromised.

Is it safe to do a take-home coding test?

It can be, if you treat the project as untrusted code. Run it on a separate machine or virtual machine that has no access to your work accounts.

Who should worry about fake coding test malware?

Any business with .NET developers on staff, and any company whose developers might be job hunting on a work device.

The bigger lesson

Supply chain attacks do not always come through a hacked vendor. Sometimes they arrive through a person doing something that feels normal, like finishing a job test. Strong servers and firewalls matter, but a lot of your security depends on what gets run on the machines your people trust. Write the rule down, keep outside code away from work logins, and check what your projects actually pull in.

To review how your developer machines and build process are locked down, see security hardening or request a quote.

Get security alerts like this by email, with our free checklist, at our security alerts page.

Sources: Socket Threat Research Team; The Hacker News.

Share X LinkedIn Facebook

Was this article helpful?

We only keep the note with this article. No name, no email.

Protected by reCAPTCHA - Privacy and Terms.

Have a question about this article?

Ask it here and we will answer you directly by email. Questions are private, never posted.

Protected by reCAPTCHA - Privacy and Terms.

Security alerts by email

Hear about the next one first.

When attackers start using a flaw in software businesses run on, we email what it is, whether it touches you and what to do that week, with a round-up of our latest security writing. Free, one-click unsubscribe. You get the checklist straight away: 12 things to secure this week.

Protected by reCAPTCHA - Privacy and Terms.

Want a result like this?

Security alerts, breaches and the technology a business runs on: what happened, who it affects and what to do.

Get a Tech Quote

Security alerts by email

The next security hole is already out there. Hear about it from us first.

When attackers start using a flaw in software businesses run on, we email what it is, whether it touches you and what to do that week, with a round-up of our latest security writing. Free, one-click unsubscribe. You get the checklist straight away: 12 things to secure this week.

Protected by reCAPTCHA - Privacy and Terms.