UNIT.City — місце, де люди працюють... КРАЩЕ! Обирай свій простір просто зараз 👉
Олександр КузьменкоThat's Life
9 September 2025, 11:18
2025-09-09
Attackers hacked 18 popular JavaScript npm packages that are downloaded over 2 billion times each week
Hackers added backdoors to at least 18 JavaScript code npm packages — their malware was aimed at stealing Ethereum, Bitcoin, Solana, and Tron cryptocurrencies. How did this happen?
Hackers added backdoors to at least 18 JavaScript code npm packages — their malware was aimed at stealing Ethereum, Bitcoin, Solana, and Tron cryptocurrencies. How did this happen?
The attackers managed to hijack the accounts of the administrator of these packages, Josh Junon (qix), who received a phishing email from the address [email protected], a domain hosting a website that pretends to be the real npmjs.com, Bleeping Computer reports.
«Sorry everyone, I should have been more considerate. It’s not like me; I’ve had a busy week. I’ll make an effort to fix it,» Junon wrote.
Several other developers reported receiving a similar message as well.
npm (Node Package Manager) is a package manager for the JavaScript programming language. Josh Junon contributed to at least 80 npm packages on GitHub. He identified 18 packages that were affected, and he said the attack was targeted and targeted at packages with a high number of downloads.
The affected packages have a combined total of over 2.6 billion downloads each week:
backslash (0.26 million downloads per week);
chalk-template (3.9 million downloads per week);
supports-hyperlinks (19.2 million downloads per week);
has-ansi (12.1 million downloads per week);
simple-swizzle (26.26 million downloads per week);
color-string (27.48 million downloads per week);
error-ex (47.17 million downloads per week);
color-name (191.71 million downloads per week);
is-arrayish (73.8 million downloads per week);
slice-ansi (59.8 million downloads per week);
color-convert (193.5 million downloads per week);
wrap-ansi (197.99 million downloads per week);
ansi-regex (243.64 million downloads per week);
supports-color (287.1 million downloads per week);
strip-ansi (261.17 million downloads per week);
chalk (299.99 million downloads per week);
debug (357.6 million downloads per week);
ansi-styles (371.41 million downloads per week).
Charlie Eriksen, a security researcher at Aikido Security, said the company discovered the attack on September 8.
«The packages were updated to contain a piece of code that would execute on the website client, which silently intercepts crypto and web3 activity in the browser, manipulates wallet interactions, and rewrites payment destinations so that funds and approvals are redirected to accounts controlled by the attackers without any obvious signs to the user,» Eriksen said.
The npm security team and other project administrators reportedly began removing the compromised code within hours of the attack. The attackers likely did not receive any funds from this attack.
The US has imposed sanctions on a network of North Korean hackers who posed as IT professionals to infiltrate American companies. A Russian citizen was also targeted