Phished npm maintainer ships wallet-hooking code in chalk and debug

ATG-class event8 September 2025

A phishing email from a lookalike npm domain gave an attacker the account of the maintainer of eighteen foundational packages. For a few hours, new versions carried browser code that rewrote crypto addresses and transactions.

Position
The npm account of the maintainer of chalk, debug and related packages
Reach
About 2 billion weekly downloads across the eighteen packages; live for a few hours
Category
Open-Source Maintainer Infiltration
Effect
Deceive

What happened

On 8 September 2025 the maintainer of chalk, debug, ansi-styles and fifteen related npm packages received a phishing email posing as npm support from a lookalike domain registered days earlier. It captured his credentials and two-factor code. Within hours, malicious versions of all eighteen packages were published. Their payload ran in the browser: it hooked crypto wallet interfaces and network requests, swapped destination addresses, and rewrote transactions so funds went to the attacker. A user noticed a release on npm that was missing from its GitHub repository. Most versions were removed the next day. Reported thefts were tiny.

The ATG nexus

Packages this basic sit underneath almost everything, and their combined weekly downloads were around two billion. The payload did not need a breach of any application. It rode in through the dependency tree and acted on the screen at the point of payment, changing an address the user would read as the one they had entered. A lookalike domain did the initial work, which is the impersonation route the research describes for CDNs, applied to a registry.

Limits of the comparison

Download counts measure reach, not victims. The malicious versions were live for hours, only browser and crypto contexts were targeted, and losses were reported in hundreds of dollars.

On this site

Sources

  1. npm debug and chalk packages compromisedAikido Security, 8 September 2025Primary source
  2. Massive npm supply chain attack hits 18 popular packages with 2B weekly downloadsCSO Online, 9 September 2025
  3. Security Alert: chalk, debug and color on npm compromised in new supply chain attackSemgrep, 8 September 2025
  4. How One Phishing Email Compromised 18 npm Packages and Billions of InstallsSecurity Boulevard, September 2025

Back to this event on the timeline