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
- Whitepaper, Chapter 9: Open Source and the Path to the Client Runtime
- Whitepaper 7.6: Typosquatted and Impersonating CDN Domains
- Introduction: Swapping What You See
- Concept: The Open-Source Open Door
- Concept: Content Swapping
- Concept: Origin Laundering