• News/
  • https://www.theregister.com/2025/07/24/not_pretty_not_windowsonly_npm/

Not pretty, not Windows-only: npm phishing attack laces popular packages with malware

The Register
·
Tim Anderson
·
Published Jul 24, 2025
·
Updated

The popular npm package "is" was infected with cross-platform malware, around the same time that linting utility packages used with the prettier code formatter were infected with Windows-only malware. This was likely caused by a phishing attack using a typosquatted clone of the official npm site. The "is" package is used for JavaScript type testing and is downloaded around 2.7 million times a week. Version 3.3.1 includes an obfuscated JavaScript malware loader, as reported by the team at Socket, which provides a security platform for developers. The malware captures data including all environment variables (often a source of secrets such as credentials), exfiltrates them via a WebSocket connection, and provides the attacker with an interactive remote shell. The malware runs on Node.js on macOS, Linux and Windows, and persists itself if possible by overwriting an index.js file so that even deleting the node_modules directory, which stores downloaded packages, will not remove it. Maintainer Jordan Harband reported the problem last weekend, stating that it was "due to another maintainer's account being hijacked." According to a thread on Bluesky Harband himself was deceived by an email from a former package owner who had been removed and asked to be re-added. "Everything seemed normal, so I obliged (irritated that npm would remove an owner without notifying the other owners) and the next morning this was published," he said. Socket also found malicious releases of the got-fetch ...

Read full article

Affected Software

1 affected component
npm is=3.3.1
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 a phishing attack that infected popular npm packages with malware.

2

What security implications are discussed?

The article highlights the risk of malware in widely used npm packages, potentially compromising software security for developers and users.

3

What products or software are affected?

The npm packages infected include the package "is" at version 3.3.1 and several linting utility packages used with the prettier code formatter.

4

What type of malware was introduced into the npm packages?

The attacked packages contained cross-platform malware as well as Windows-only malware.

5

Who is primarily responsible for the infected npm packages?

The article does not specify a single actor but indicates that a phishing attack led to the compromise of the packages.

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