News

Fake .NET Coding Tests Hid NuGet Malware: What to Do If You Built a Project

A take-home coding test can look like a normal part of applying for work, even when the project depends on malicious Windows packages.

Socket found that building or running certain projects could activate NuGet malware, so the first recovery question is what you did with the assignment.

One red metal module sits out of line among three gray modules

Overview

A fake developer assessment can look like ordinary work

Socket’s November 23 investigation identified 13 malicious NuGet packages connected to an operation involving purported take-home assignments for developers working in the Windows .NET ecosystem.

Many packages looked like ordinary interface components for WinUI or WPF, frameworks developers use to create Windows desktop software and its visible controls.

The researchers describe an actual project used as a lure, but their findings do not establish that a real employer sent every invitation.

Starting the finished app is not the only action that matters

Socket found behavior in analyzed versions that could occur while the project was being built, even if the user never chose to launch it afterward.

Other behavior was tied to running the application, so build success or a brief look at the result does not tell you everything that happened.

An instruction to build the assignment locally therefore deserves the same verification as a request to run an unfamiliar installer on your computer.

NuGet and common .NET tools are not themselves the problem

NuGet distributes legitimate packages as part of normal .NET development, and the report identifies a campaign involving particular malicious packages rather than every package.

A familiar package host is not proof that the person who sent the assignment is connected to the company whose name appears in the message.

  • Verify the employer and the assignment through a channel you find independently, even if the initial contact appears to come from a known platform.
  • Distinguish reading instructions, downloading a project, opening it in an editor, restoring packages, building it, and actually running the application.
  • If an unverified project did build or run, preserve the facts and handle affected accounts from a separate trusted device while the computer is investigated.

Why an Interview Repository Deserves a Second Look

A take-home exercise often includes tools that are familiar to the candidate, so a polished description and ordinary development terms are not reliable checks.

A candidate can reasonably expect to install dependencies for a real project, which makes the step easy to accept without asking who maintains them.

The reported lure took advantage of that expectation by giving the applicant a Windows project that looked like material prepared for an assessment.

The important detail is not whether the application window looked convincing; it is whether processing or building the project gave unfamiliar code a chance to run.

That makes the case different from an email that merely displays a false job offer and asks the candidate to send an advance fee.

It is possible to reach the risky step without making a payment, typing a password into a fake form, or encountering an installer screen.

If the exercise arrived through a legitimate hiring platform, verify the specific recruiting account, requisition, and repository rather than trusting the platform alone.

A real company can be impersonated even if somebody sent you material that looks consistent with a genuine job advertisement or ordinary coding test.

Reading, Cloning, Building, and Running Are Different

If you only read the email or looked at the instructions in a browser, that is different from letting development tools process the project locally.

Copying a repository without opening, building, or running it is a separate activity, but your tools may have performed additional work once you opened it.

A code editor or development environment can offer to load the project or resolve dependencies, so record what the tool did as well as what you clicked.

Do not reopen the folder to reconstruct those events if doing so could cause the same development tooling to process it again.

Existing terminal output, notifications, and project records already collected by your organization are safer places for a responder to start.

A failed build does not by itself show there was no impact, because a particular stage may have run before an error appeared.

Conversely, the fact that a package was named in a project does not establish that a person’s computer downloaded, processed, or executed it.

If you cannot tell how far the workflow went, describe that uncertainty honestly instead of deciding there was either definitely no exposure or definitely a compromise.

Match your response to what happened. Confirm the assignment independently. Find what the editor already did. Report it and protect your access

How to Check an Unverified Coding Test for the NuGet Malware Risk

Step 1: Verify the assignment with the employer independently

Find the employer’s careers page yourself, then check whether the role exists and contact the organization using an address it publishes separately.

Ask the verified contact to confirm the sender, the job requisition, and the exact assignment before opening developer tools against a shared project.

If a company will not confirm the project through an independent channel, ask for another assessment format rather than running it to stay on schedule.

Save the original communication where you can refer to it if the recruiting platform needs to investigate the account that sent it.

Step 2: Find out whether the project actually ran

If you already worked on the assignment, write down whether you clicked through the editor, accepted a trust prompt, restored dependencies, built it, or ran it.

Note which computer and account you used, along with the time and any existing records that would help a responder establish what happened.

Do not build the project again to reproduce an error, and do not send the files to another applicant to see what they get.

On a work computer, contact IT before deleting the project or cleaning the machine, because the evidence may matter beyond your own account.

Step 3: Protect access you used from that computer

If there is evidence of execution, stop using that computer for sensitive sign-ins, and use another device you trust to check affected accounts.

For work identities, ask your incident responder which sessions, repository credentials, and build or deployment secrets to revoke or rotate, in which order.

On personal accounts, review recent activity and use the service’s security controls to close unfamiliar sessions and remove permissions you do not recognize.

Changing a password does not necessarily invalidate a separate access token, so check the provider’s instructions for the kinds of access you actually used.

Do not transfer backups or project artifacts to another environment while you are uncertain whether those files were produced on the affected machine.

Step 4: Validate the environment before resuming development

Use a known-good environment with trusted project sources, then check settings and dependencies before reconnecting development tools to company repositories or release systems.

If your organization finds evidence of persistent or privileged compromise, ask whether the device should be rebuilt from a trusted image instead of returned to service.

Do not treat a fresh clone alone as proof that the host operating system, developer credentials, or earlier build artifacts are safe.

For maintained projects, Microsoft’s NuGet package source mapping documentation explains how to constrain future dependency sources, not how to undo an earlier execution.

What to Do If You Built or Ran the Project

  1. Stop interacting with the assignment and preserve the original message and any existing build or editor records without re-executing the project.
  2. On a company computer, contact your security team immediately, tell them what may have run, and follow their instructions about disconnecting it.
  3. On a personal PC, stop sensitive activity, disconnect it from the network if you suspect active malware, and use another trusted device for account recovery.
  4. Review credentials associated with the development environment as well as browser accounts, particularly if your work involves source control, release systems, or privileged tools.
  5. Keep downstream artifacts separate until the people responsible know what was built, where it was distributed, and whether it needs to be replaced.

The same account can have access to several services, so do not finish your review when you have changed only the password used to receive the invitation.

If someone else owns the publishing account or team project, tell them how soon the assignment was processed and which access may be at risk.

That gives them a way to check their logs and decide whether any action is needed on their side of the environment.

Windows Cleanup After a Confirmed Assessment Run

Step 1: Preserve the record and choose a trusted recovery route

On a managed Windows device, let your organization’s security team decide when to scan or rebuild it after collecting the information they need.

For a personal Windows PC, write down the timeline and avoid running the project again before following the supported scan steps below.

If you have to reconnect for an approved tool, avoid unrelated browsing and sign-ins on the suspect computer while you are still assessing it.

Step 2: Scan Windows with Malwarebytes

Use this Windows Malwarebytes guide to run a scan and review the results, remembering that the scan cannot secure accounts on another service.

Malwarebytes is one of the most popular and trusted anti-malware tools for Windows, and it’s completely free for removing infections. It catches threats that many antivirus programs miss, including adware, browser hijackers, and trojans. Follow the steps below to scan your PC and remove what Malwarebytes finds.

  1. Download Malwarebytes

    Click the button below to download the latest version of Malwarebytes for Windows from the official source. The free version is all you need, because it scans your computer and removes adware, browser hijackers, and other malicious software at no cost.

    Malwarebytes Free for WindowsScans and removes malware at no cost
    Download MalwarebytesOfficial installer for Windows 11 and 10. Your download starts right away.Want real-time protection? See Malwarebytes Premium
  2. Install Malwarebytes

    When the download finishes, click Open file under the MBSetup file in your browser’s download list. You can also open your Downloads folder and double-click the MBSetup file.

    Microsoft Edge download list with the Malwarebytes setup file and its Open file link highlighted

    If Windows asks whether you want to allow Malwarebytes Setup to make changes to your device, click Yes.

    User Account Control prompt for Malwarebytes Setup with the Yes button highlighted
  3. Follow the On-Screen Prompts to Install Malwarebytes

    The setup wizard will walk you through a few quick screens:

    • In the Malwarebytes Setup window, click Install.

      Malwarebytes Setup window with the Install button highlighted
    • When Malwarebytes asks which protection type you need, select Personal (for me or my household), then click Next.

      Malwarebytes Setup asking you to choose a protection type, with Personal and the Next button highlighted
    • Malwarebytes then offers its free Browser Guard extension. You can add it with Secure my browser, or click Skip this step to continue without it.

      Malwarebytes Setup offering Browser Guard, with the Skip this step link highlighted
    • Malwarebytes will now install on your device. This usually takes under a minute.

      Malwarebytes Setup installing the program
    • When you see Success!, click Open Malwarebytes.

      Malwarebytes Setup success screen with the Open Malwarebytes button highlighted
  4. Finish the Welcome Screens

    The first time Malwarebytes opens, it shows a few short welcome screens:

    • On the Welcome to Malwarebytes screen, click Get started.

      Welcome to Malwarebytes screen with the Get started button highlighted
    • Malwarebytes offers its paid plan next. Click Maybe later to keep using the free version.

      Malwarebytes offer screen with the Maybe later link highlighted
    • Malwarebytes then starts a free 14-day trial of its Premium features, with no credit card needed. Click Continue with free trial. When the trial ends, Malwarebytes switches to the free version, which can still scan and remove malware.

      Welcome to your free trial screen with the Continue with free trial button highlighted
    • On the Your trial is now active screen, click Open Malwarebytes.

      Your trial is now active screen with the Open Malwarebytes button highlighted
    • If Malwarebytes asks for your email address before the first scan, you don’t need to enter it. Click I’ll scan later, then click Skip anyway. You will start the scan yourself in the next steps.

      Malwarebytes first scan screen asking for an email address, with the I'll scan later link highlighted
      Malwarebytes Before you skip dialog with the Skip anyway button highlighted
  5. Optional: Check for rootkits with a Custom Scan

    You don’t need to change any settings for a normal scan. The standard Threat Scan in the next step is enough for most problems, so you can go straight to it.

    If you also want to check for rootkits, use a Custom Scan. In current versions of Malwarebytes, rootkit scanning is only available there:

    1. On the Scanner tile, click the three-dot menu and select Advanced Scan.
    2. Choose Custom Scan. In its options, check Scan for rootkits.
    3. Select your system drive (usually C:\) as the location to scan, then start the scan. It takes longer than a Threat Scan.
    4. When it finishes, review and quarantine the results as described in the steps below.

    Rootkit scanning isn’t available on Windows devices with ARM processors.

  6. Start the Scan

    On the Dashboard, click the Scan button on the Scanner tile. Malwarebytes will automatically update its virus database and start checking your computer for malware.

    Malwarebytes dashboard with the Scan button on the Scanner tile highlighted
  7. Wait for the Scan to Finish

    The scan checks your entire system for browser hijackers and other malicious programs, so it can take 5 to 20 minutes depending on your computer. Feel free to do something else in the meantime and check back occasionally to see the progress.

    Malwarebytes Threat Scan in progress, listing the scan stages and the number of items scanned
  8. Quarantine the Detected Threats

    When the scan is done, you’ll see a list of everything Malwarebytes found, including malware, adware, and potentially unwanted programs. Leave all items checked and click the blue Quarantine button, which also shows how many items will be removed.

    Malwarebytes Threat Scan results with the Quarantine button highlighted

    Malwarebytes will now remove the malicious files and registry entries and move them safely into quarantine.

    Malwarebytes moving the detected threats to quarantine
  9. Finish and Restart if Asked

    When the cleanup is complete, Malwarebytes shows a summary of the scan. Click Done.

    Malwarebytes Threat Scan summary after quarantine, with the Done button highlighted

    Some threats can only be fully removed after a reboot. If Malwarebytes asks you to restart, click Yes. Once you’re logged back in, Malwarebytes has finished removing the threats it found.

Step 3: Run a separate HitmanPro scan

HitmanPro offers a second scan, but removing detections can require a trial or license, and no purchase is necessary to verify the employer or secure accounts.

HitmanPro is a second-opinion scanner, designed to catch what your main antivirus might have missed. Instead of relying on a single detection engine, it checks the behavior of files in the locations where malware usually hides. Anything suspicious is checked online, where it’s analyzed by several antivirus engines in HitmanPro’s Scan Cloud.

Good news: scanning is completely free, with no limits. You only need a license when it’s time to remove what was found, and even then you can activate a free one-time 30-day trial to remove what it finds at no cost. The trial works once per computer. After that, removal needs a paid license, and the purchase screen shows the current price.

  1. Download HitmanPro

    Click the button below to download HitmanPro. Remember that the scan is free, so you have nothing to lose by checking your PC.

    HitmanProSecond-opinion malware scanner from Sophos
    Download HitmanProFree scan. Removing threats needs the free 30-day trial. Opens the official HitmanPro page in a new tab.

    On the official download page, click Download 64-bit. Almost every Windows 11 and Windows 10 computer is 64-bit; choose Download 32-bit only on an older 32-bit PC.

    HitmanPro official download page with the Download 64-bit button highlighted
  2. Install HitmanPro

    When the download finishes, click Open file under HitmanPro_x64.exe in your browser’s download list, or double-click the file in your Downloads folder. (The 32-bit version is named HitmanPro.exe.)

    Microsoft Edge download list with HitmanPro_x64.exe and its Open file link highlighted

    If a User Account Control pop-up asks whether HitmanPro can make changes to your device, click Yes to continue.

    User Account Control prompt for HitmanPro with the Yes button highlighted
  3. Follow the On-Screen Prompts

    HitmanPro updates itself for a few seconds. On the start screen, click Next.

    HitmanPro start screen with the Next button highlighted

    On the Terms and conditions screen, click Next to accept them.

    HitmanPro Terms and conditions screen with the Next button highlighted

    On the Setup screen, select Yes, create a copy of HitmanPro so I can regularly scan this computer, then click Next. HitmanPro installs itself and starts the scan right away. You don’t have to fill in the email fields.

    HitmanPro Setup screen with the Yes, create a copy of HitmanPro option and the Next button highlighted
  4. Wait for the Scan to Finish

    HitmanPro will now check your computer for malicious programs. This usually takes just a few minutes thanks to its cloud-based scanning.

    HitmanPro scanning the computer for malware remnants

    If HitmanPro asks to close your running web browsers so it can check them for tracking cookies, save any open work in the browser and click Yes.

    HitmanPro asking to close running Internet browsers, with the Yes button highlighted
  5. Review the Results and Click “Next”

    When the scan is done, HitmanPro will show you everything it found. Click “Next” to remove the detected threats.

    HitmanPro scan summary. Click Next to remove malware

    If HitmanPro found nothing, it shows No threats found. There’s nothing to remove, so click Close.

    HitmanPro No threats found summary
  6. Click “Activate Free License”

    To remove the malicious files, click the “Activate free license” button. This starts your free 30-day trial, which needs no payment details and unlocks the full cleanup.
    Click on the Activate free license button

    When the removal is complete, HitmanPro will show a summary of everything it cleaned. Click Next, then click Reboot if prompted. If there’s no reboot prompt, click Close. Then check whether the problems you noticed have stopped. If they come back, save the HitmanPro log and ask for help in our forum.

Step 4: Decide whether scans are enough for your situation

A second scan can provide another view of the device, but neither result establishes which historical sessions or build artifacts were exposed.

If you find persistent signs of compromise or sensitive access was involved, speak to a qualified responder about rebuilding the device and validating anything it produced.

Wait to reconnect a managed computer or return it to sensitive work until the person responsible for its recovery approves that step.

If you still see unexpected sign-ins or repeated detections afterward, ask for MalwareTips removal assistance or use the support contact responsible for the affected system.

What Hiring Teams Can Do Without Changing the Assessment

A legitimate hiring team can reduce confusion by listing the assessment format on its careers site and providing a separate address for verification.

Candidates should be able to confirm an exercise without replying to the original message or accepting another invitation from the same unverified account.

Give applicants an alternative if they cannot run the project on a device they own, especially when their only suitable computer belongs to another employer.

When an assessment requires dependencies, state why they are needed and which organization controls the source used for the material you provide.

A browser exercise, a discussion of prior work, or an approved hosted environment can avoid asking a candidate to trust unknown software locally.

If someone reports an imitation, try to confirm which recruiter or requisition was copied before changing a legitimate job listing that applicants still need.

The hiring team can then make its verification process easier to find and preserve the original report for the platform or security team.

That notice should help candidates identify the official process without republishing the suspicious download or asking people to reproduce what the project did.

If a candidate already built the imitation, let them know which channel will receive evidence and avoid promising that removing the message finishes recovery.

A useful reply separates what the hiring team can confirm from the device and account decisions the candidate’s own security team must make.

Frequently Asked Questions

Is it safe if I only read the assignment in my web browser?

Reading an assignment in a browser is not the build or execution behavior described in Socket’s research, which involved processing development material.

If you also entered a password, authorized an app, or downloaded and opened a file, assess those separate actions rather than treating the message view as the whole event.

Could the project do something if I did not launch the app?

Yes, Socket found behavior that could occur during a build, so not launching the completed app is not enough to rule out execution.

Review what your development environment did with the project and any existing records instead of repeating the same operation to watch what happens.

Does a failed build mean I am safe?

A failed build is not proof of compromise, but it does not establish that nothing ran before the error was reported either.

Give a responder the available details about when the error occurred and what the tools did beforehand, especially on an organization-owned system.

Do I have to stop using NuGet?

No, the report concerns packages connected to one operation, and it does not make normal use of the NuGet ecosystem unsafe by definition.

Verify the source and ownership of dependencies, review unusual additions, and use the policies that apply to the development environment you maintain.

Should I delete the project straight away?

On a managed device, preserve the information you already have and contact IT before deleting the project or trying to remove related files.

If you need to remove it on a personal device, do not let deletion replace the separate checks for execution, account activity, and possible recovery.

Can a clean scan tell me that my repository credentials were not used?

A clean scan does not prove a credential was never copied or used, because that requires reviewing the activity of the corresponding account or service.

Check sessions and access separately from the computer, and ask the account owner to verify any privileged action you cannot inspect on your own.

The Bottom Line

Socket’s NuGet malware investigation shows why a coding test should be verified before an unfamiliar project builds on a Windows development machine.

If you already worked on it, establish what ran, protect access from a trusted device, and use the Windows cleanup guide where the exposure warrants it.

Join the discussion

0 comments

Share your experience or ask a question about this article.

Discussion

Start the conversation

Have a question or something useful to share? Add the first comment.

Written by

Lapain Epuran

Lapain Epuran investigates product scams, from supplements sold with miracle-cure claims to gadgets pushed through misleading ads. She has more than 10 years of experience in investigations and checks each product's claims, seller and refund terms before giving a verdict.

5,871 articlesWriting since 2024
More from Lapain →

MalwareTips community · since 2010

Stuck on a step? 75,000+ members can help you for free.

Post your question on the forum and our volunteer malware removal experts will walk you through it, step by step.

75K+members
999K+forum messages
100K+forum topics
16+years online

Previous

Labastar.com EXPOSED – Real or Fake Store? Investigation

Next

Anthropic’s Lattice Research: Why Post-Quantum Migration Should Continue