Malware Campaigns Targeting Developers via npm and GitHub Repositories
Supply Chain Risk · 2 sources · Updated 5mo ago · First seen Dec 1, 2025

A new wave of supply chain attacks has targeted developers through malicious npm packages and GitHub repositories, with attackers leveraging both automated worms and sophisticated social engineering. The npm registry was compromised by a self-replicating worm known as "Sha1-Hulud: The Second Coming," which infected over 800 packages and 27,000 GitHub repositories. The malware aimed to steal sensitive data such as API keys, cloud credentials, and authentication tokens, and it backdoored npm packages to execute malicious payloads during installation. Attackers also abused GitHub Actions workflows for command-and-control and data exfiltration, with a notable shift to using the Bun runtime for improved stealth and evasion of Node.js-focused defenses.
In a related attack vector, threat actors used fake job interviews to lure developers into cloning and running seemingly benign Next.js projects from private GitHub repositories. The malicious code was hidden in the next.config.js file, which executed on the developer's machine during project setup, bypassing traditional dependency-based detection. This "Living off the Land" technique enabled the theft of credentials, including those for LastPass and cryptocurrency wallets, by exploiting trusted development workflows. Both incidents highlight the growing risk of supply chain attacks targeting developers through trusted tools and social engineering tactics.
Why it matters
Impact assessment
Developers, software publishers, and organizations that rely on npm, GitHub, and JavaScript/Next.js development workflows are directly affected. The impact is high because the activity combines software supply chain compromise with credential theft, exposing API keys, cloud credentials, repository secrets, authentication tokens, password manager access, and cryptocurrency wallets.
The scope is broad for the npm/GitHub campaign and more targeted for the fake job interview lure. The Shai-Hulud campaign reportedly infected more than 800 npm packages and 27,000 GitHub repositories, indicating widespread downstream exposure, while the interview-themed Next.js malware appears aimed at individual developers through social engineering and trusted local execution.
Supporting facts
- Affected ecosystems: npm registry, GitHub repositories, GitHub Actions, Next.js developer workflows.
- Affected populations: software developers, CI/CD maintainers, open-source maintainers, organizations consuming npm packages.
- Reported impact: theft of API keys, cloud credentials, authentication information, repository secrets, LastPass credentials, and cryptocurrency wallet data.
- Reported scale: over 800 npm packages and 27,000 GitHub repositories affected by Shai-Hulud.
- Known incident: Trigger.dev reportedly experienced credential theft and unauthorized GitHub access tied to a compromised npm package.
- Exposure pattern:
- Widespread: npm package backdooring and GitHub repository propagation.
- Targeted: fake job interview repositories delivered through private GitHub repos.
- Operational risk: compromised build pipelines and developer endpoints can enable follow-on code tampering, secret reuse, cloud compromise, and reputational damage from publishing trojanized software.


