A large-scale attack campaign is targeting software developers by disguising malicious code inside fake Next.js repositories and phony technical interview assignments. The goal is to get developers to unknowingly run attacker-controlled code that gives hackers persistent, remote access to their machines.Microsoft’s security research team published an analysis this week linking the activity to a broader set of operations that use job-themed bait. Because the malicious code is hidden inside normal development tasks, victims are far less likely to notice anything is wrong.

Three Ways In: All Leading to the Same Place

What makes this campaign notable is that it uses three different entry points, but they all end up doing the same thing: silently fetching and running attacker-controlled JavaScript to establish a connection back to the attacker’s servers.

The fake repositories are hosted on platforms like Bitbucket, with convincing names such as Cryptan-Platform-MVP1 to make them look like real job assessment projects.

Path 1: VS Code Workspace Trick The repository includes a pre-configured VS Code workspace file that uses the runOn: "folderOpen" task trigger – a legitimate feature that runs tasks automatically when you open a project folder. The moment a developer opens the project and clicks “Trust,” VS Code silently fetches malicious JavaScript from an attacker-controlled Vercel domain and runs it immediately, no extra clicks required.

Path 2: Poisoned npm Dependencies If the developer runs npm run dev, modified JavaScript files disguised as familiar libraries – for example, a fake jquery.min.js – execute hidden malicious logic. That logic reaches out to a Vercel-hosted server, downloads a secondary JavaScript loader, and runs it directly in Node.js memory, leaving no files on disk to find.

Path 3: Backend Startup Execution If the developer starts the app’s backend server, malicious code hidden inside a backend module or route file runs automatically at startup. It immediately sends the machine’s environment variables (which often contain API keys, database credentials, and tokens) to an external server, then receives and runs more JavaScript in memory inside the Node.js process.

What Happens After the Initial Infection

All three paths deliver the same first-stage JavaScript payload. It profiles the host machine, then repeatedly polls a registration endpoint to get a unique instanceId that ties future communications to that specific victim.

That first stage can then load a more advanced second-stage controller entirely in memory, which:

  • Maintains a persistent remote access session
  • Reports errors back to the attacker
  • Retries failed connections automatically
  • Tracks running processes and manages controlled shutdowns
  • Enables operator-directed data collection and exfiltration

Nothing is written to disk, making detection by traditional tools significantly harder.

Attribution and Infrastructure

Microsoft stopped short of a formal attribution, but the techniques closely match the North Korea-linked Contagious Interview campaign – particularly the abuse of VS Code task automation and Vercel as staging infrastructure.

Researchers have also observed the campaign evolving its infrastructure to avoid takedowns, including:

  • Hosting loader scripts in GitHub Gists
  • Using URL shorteners like short[.]gy to hide staging domains
  • A malicious npm package named eslint-validator that pulls an obfuscated payload from Google Drive – identified as the known JavaScript malware family BeaverTail

On Windows systems, one infection chain uses a VS Code task to run a batch script that installs Node.js if it isn’t present, decodes embedded malware using the built-in certutil utility, runs it through Node.js, then drops a PyArmor-protected Python component for additional persistence.

In some variants, the malicious VS Code task fetches JavaScript payload embedded inside a Polygon blockchain NFT contract – a creative way to make the infrastructure harder to take down, since blockchain data is effectively permanent.

The final payload in most chains is an infostealer targeting browser-saved credentials, crypto wallets, and password managers.

Scale and Financial Impact

GitLab has banned 131 accounts connected to this campaign. In over 80% of observed cases, attackers used at least six legitimate hosting services to stage their payloads as Vercel being the most heavily abused, alongside JSON Keeper, Mocki, npoint.io, Render, and Railway.app.

A private repository linked to a suspected North Korean operator was found to contain over 120 financial documents tracking more than $1.64 million in earnings between Q1 2022 and Q3 2025, suggesting a structured, professionally run operation.

How to Reduce Your Risk

Microsoft recommends that developers and organizations:

  • Review and restrict VS Code workspace task configurations, especially runOn: "folderOpen" triggers, before trusting unfamiliar projects
  • Audit third-party npm dependencies carefully before running unfamiliar repositories
  • Apply strict credential hygiene and rotate secrets that may have been exposed as environment variables
  • Enforce least privilege on developer accounts and build systems
  • Isolate build infrastructure where possible to limit the blast radius of a compromise

The core takeaway is that normal developer actions – opening a repo, running a dev server, starting a backend so from now reliable attack vectors if the code being run isn’t carefully vetted first.

References