• News/
  • https://www.bleepingcomputer.com/news/security/malicious-npm-packages-fetch-infostealer-for-windows-linux-macos/

Malicious NPM packages fetch infostealer for Windows, Linux, macOS

BleepingComputer
·
Bill Toulas
·
Published Oct 29, 2025
·
Updated

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’ ...

Read full article

Affected Software

4 affected components
npm malicious packages
Windows Windows
Linux Linux
macOS macOS
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203