Ten malicious packages mimicking legitimate software projects in the npm registry download an information-stealing component that collects sensitive data from Windows, Linux, and macOS systems. The packages were uploaded to npm on July 4, and remained undetected for a long period due to multiple layers of obfuscation that helped escape standard static analysis mechanisms. According to researchers at cybersecurity company Socket, the ten packages counted nearly 10,000 downloads and stole credentials from system keyrings, browsers, and authentication services. At the time of writing, the packages are still available, despite Socket reporting them to npm: Socket researchers say that the packages use a fake CAPTCHA challenge to appear legitimate and download a 24MB infostealer packaged with PyInstaller. To lure users, the threat actor used typosquatting, a tactic that leverages misspellings or variations of the legitimate names for TypeScript (typed superset of JavaScript), discord.js (Discord bot library), ethers.js (Ethereum JS library), nodemon (auto-restarts Node apps), react-router-dom (React browser router), and zustand (minimal React state manager). When searching for the legitimate packages on the npm platform, developers may mistype the name of the legitimate package or pick a malicious one listed in the results. Upon installation, a ‘postinstall’ script is triggered automatically to spawn a new terminal that matches the host’s detected OS. The script executes ‘app.js’ ...
Malicious NPM packages fetch infostealer for Windows, Linux, macOS
BleepingComputer
·Bill Toulas
·Published Oct 29, 2025
·Updated
Affected Software
4 affected components
npm malicious packages
Windows Windows
Linux Linux
macOS macOS
Frequently Asked Questions
1
What is the main topic of this article?
The article discusses ten malicious NPM packages that mimic legitimate software and download an information-stealing component for various operating systems.
2
What security implications are discussed?
The article highlights the risks posed by the malicious packages, which can collect sensitive information from users' systems across Windows, Linux, and macOS.
3
What products or software are affected?
The affected products include the malicious NPM packages along with the operating systems Windows, Linux, and macOS.
4
How were these malicious packages identified?
The malicious packages were discovered in the npm registry and were found to imitate legitimate software projects.
5
What kind of data do these infostealers collect?
The infostealers are designed to collect sensitive data from users' devices, potentially compromising personal and organizational information.