{"id":6765,"date":"2025-09-09T10:03:58","date_gmt":"2025-09-09T10:03:58","guid":{"rendered":"https:\/\/serisec.com\/index.php\/2025\/09\/09\/hackers-hijacked-18-very-popular-npm-packages-with-2-billion-weekly-downloads\/"},"modified":"2025-09-09T10:03:58","modified_gmt":"2025-09-09T10:03:58","slug":"hackers-hijacked-18-very-popular-npm-packages-with-2-billion-weekly-downloads","status":"publish","type":"post","link":"https:\/\/serisec.com\/index.php\/2025\/09\/09\/hackers-hijacked-18-very-popular-npm-packages-with-2-billion-weekly-downloads\/","title":{"rendered":"Hackers Hijacked 18 Very Popular npm Packages With 2 Billion Weekly Downloads"},"content":{"rendered":"<p>    Hackers Hijacked 18 Very Popular npm Packages With 2 Billion Weekly Downloads<br \/>\n \t<BR><br \/>\n<BR><\/BR><br \/>\n    <!-- no image --><br \/>\n \t<BR><br \/>\n<BR><\/BR><\/p>\n<div>\n<p>In the largest supply chain attack, hackers compromised 18 popular npm packages, which together account for over two billion downloads per week. The attack, which began on September 8th, involved injecting malicious code designed to steal cryptocurrency from users.<\/p>\n<p>The compromised packages include widely used libraries such as <code>chalk<\/code>, <code>debug<\/code>, <code>ansi-styles<\/code>, and <code>supports-color<\/code>. The malicious code was added in new versions of these packages and was engineered to execute on the client-side of websites using them.<\/p>\n<p>The malware silently intercepts cryptocurrency and Web3 activities within the browser, manipulating wallet interactions and rewriting payment destinations to redirect funds to attacker-controlled accounts.<\/p>\n<h2 class=\"wp-block-heading\" id=\"h-popular-npm-packages-hacked\"><strong>Popular npm Packages Hacked<\/strong><\/h2>\n<p>The malware operates as a sophisticated in-browser interceptor, targeting both network traffic and application-level APIs. It achieves this by hooking into core browser functions like <code>fetch<\/code>  <code>XMLHttpRequest<\/code>, as well as interfaces for popular crypto wallets for <a href=\"https:\/\/cybersecuritynews.com\/tag\/ethereum\/\" target=\"_blank\" rel=\"noreferrer noopener\">Ethereum<\/a>, Solana, and other blockchains, Akidio observed.<\/p>\n<p>The malicious code works in a series of steps:<\/p>\n<ol class=\"wp-block-list\">\n<li>\n<strong>Injection and Hooking<\/strong>: It embeds itself into the browser environment and takes control of functions related to web requests and wallet communications.<\/li>\n<li>\n<strong>Scanning for Sensitive Data<\/strong>: The malware actively scans network responses and transaction details for patterns matching cryptocurrency wallet addresses for various blockchains, including Bitcoin, <a href=\"https:\/\/cybersecuritynews.com\/malicious-npm-packages-attacking-ethereum-wallets\/\" target=\"_blank\" rel=\"noreferrer noopener\">Ethereum<\/a>, Solana, Tron, Litecoin, and Bitcoin Cash.<\/li>\n<li>\n<strong>Rewriting Wallet Addresses<\/strong>: Upon finding a legitimate address, the malware replaces it with a look-alike address from a hardcoded list belonging to the attackers. This is done using string-matching algorithms to make the swap less noticeable to the user.<\/li>\n<li>\n<strong>Hijacking Transactions<\/strong>: The code alters transaction parameters before the user signs them. This means that even if the user interface displays the correct recipient address, the signed transaction will route funds or grant token approvals to the attackers.<\/li>\n<\/ol>\n<p>The maintainer of the compromised packages revealed they fell victim to a phishing attack. An email, seemingly from npm support, was sent from the domain <code>npmjs.help<\/code>, tricking the developer into revealing their credentials, according to a Hacker News <a href=\"https:\/\/news.ycombinator.com\/item?id=45169794\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">post<\/a>.<\/p>\n<p>This domain was registered only three days before the attack on September 5, 2025.<\/p>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEg27WW4AL7mELnFS1x-XXC_XtO-uIz80RzKU6XSQe-0oCBhQgUQTon7ZAb5ey-An_iX9MksnQQ1u6t11Yrv6HjHG5Nt5yiL9uanoBnAynXkEosCxbgzdZGU7MZ4Wt1w6D_hUNGOMAK7GZpJTakKJ_72cvgAo3q1xm8BgPRYbrutAOrQ3_v0o_0v9JxAg_tm\/s16000\/68bf028d86e3642f1268253f_050c42b9.webp?ssl=1\" alt=\"\" style=\"width:783px;height:auto\"><figcaption class=\"wp-element-caption\">Phishing Mail compromised the developer<\/figcaption><\/figure>\n<\/div>\n<p>The maintainer became aware of the compromise and began taking steps to remove the malicious versions of the packages. However, at the time of the report, at least one package, <code>simple-swizzle<\/code>, remained compromised.<\/p>\n<p>The incident also revealed that the same attackers may have compromised another package, <code>proto-tinker-wc<\/code>, using similar methods.<\/p>\n<p>The following table lists the affected packages and the compromised versions:<\/p>\n<figure class=\"wp-block-table\">\n<table class=\"has-fixed-layout\">\n<thead>\n<tr>\n<th>Package<\/th>\n<th>Malicious Version<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>backslash<\/code><\/td>\n<td>0.2.1<\/td>\n<\/tr>\n<tr>\n<td><code>chalk-template<\/code><\/td>\n<td>1.1.1<\/td>\n<\/tr>\n<tr>\n<td><code>supports-hyperlinks<\/code><\/td>\n<td>4.1.1<\/td>\n<\/tr>\n<tr>\n<td><code>has-ansi<\/code><\/td>\n<td>6.0.1<\/td>\n<\/tr>\n<tr>\n<td><code>simple-swizzle<\/code><\/td>\n<td>0.2.3<\/td>\n<\/tr>\n<tr>\n<td><code>color-string<\/code><\/td>\n<td>2.1.1<\/td>\n<\/tr>\n<tr>\n<td><code>error-ex<\/code><\/td>\n<td>1.3.3<\/td>\n<\/tr>\n<tr>\n<td><code>color-name<\/code><\/td>\n<td>2.0.1<\/td>\n<\/tr>\n<tr>\n<td><code>is-arrayish<\/code><\/td>\n<td>0.3.3<\/td>\n<\/tr>\n<tr>\n<td><code>slice-ansi<\/code><\/td>\n<td>7.1.1<\/td>\n<\/tr>\n<tr>\n<td><code>color-convert<\/code><\/td>\n<td>3.1.1<\/td>\n<\/tr>\n<tr>\n<td><code>wrap-ansi<\/code><\/td>\n<td>9.0.1<\/td>\n<\/tr>\n<tr>\n<td><code>ansi-regex<\/code><\/td>\n<td>6.2.1<\/td>\n<\/tr>\n<tr>\n<td><code>supports-color<\/code><\/td>\n<td>10.2.1<\/td>\n<\/tr>\n<tr>\n<td><code>strip-ansi<\/code><\/td>\n<td>7.1.1<\/td>\n<\/tr>\n<tr>\n<td><code>chalk<\/code><\/td>\n<td>5.6.1<\/td>\n<\/tr>\n<tr>\n<td><code>debug<\/code><\/td>\n<td>4.4.2<\/td>\n<\/tr>\n<tr>\n<td><code>ansi-styles<\/code><\/td>\n<td>6.2.2<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<p class=\"has-text-align-center has-background\" style=\"background:linear-gradient(180deg,rgb(238,238,238) 89%,rgb(169,184,195) 100%)\"><strong>Find this Story Interesting! Follow us on <a href=\"https:\/\/news.google.com\/publications\/CAAqMggKIixDQklTR3dnTWFoY0tGV041WW1WeWMyVmpkWEpwZEhsdVpYZHpMbU52YlNnQVAB?hl=en-IN&amp;gl=IN&amp;ceid=IN:en\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Google News<\/a>,\u00a0<a href=\"https:\/\/www.linkedin.com\/company\/cybersecurity-news\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">LinkedIn<\/a>,\u00a0and\u00a0<a href=\"https:\/\/x.com\/cyber_press_org\" target=\"_blank\" rel=\"noreferrer noopener\">X<\/a>\u00a0to Get More Instant Updates<\/strong>.<\/p>\n<p>The post <a href=\"https:\/\/cybersecuritynews.com\/npm-packages-hijacked\/\">Hackers Hijacked 18 Very Popular npm Packages With 2 Billion Weekly Downloads<\/a> appeared first on <a href=\"https:\/\/cybersecuritynews.com\/\">Cyber Security News<\/a>.<\/p>\n<\/div>\n<p> \t<BR><br \/>\n <BR><\/BR><br \/>\n    Guru Baran<br \/>\n \t<BR><br \/>\n<BR><\/BR><br \/>\n<a href=\"https:\/\/cybersecuritynews.com\/npm-packages-hijacked\/\">Go to cyber-security-news<\/a><br \/>\n \t<BR><br \/>\n <BR><\/BR><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hackers Hijacked 18 Very Popular npm Packages With 2 Billion Weekly Downloads In the largest supply chain attack, hackers compromised 18 popular npm packages, which together account for over two billion downloads per week. The attack, which began on September 8th, involved injecting malicious code designed to steal cryptocurrency from users. The compromised packages include [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[701,1636,129,63],"tags":[130],"class_list":["post-6765","post","type-post","status-publish","format-standard","hentry","category-cyber-attack","category-cyber-attack-news","category-cyber-security","category-cyber-security-news","tag-cyber-security-news"],"_links":{"self":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/posts\/6765"}],"collection":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/comments?post=6765"}],"version-history":[{"count":0,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/posts\/6765\/revisions"}],"wp:attachment":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/media?parent=6765"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/categories?post=6765"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/tags?post=6765"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}