Connect with us

Hi, what are you looking for?

SecurityWeekSecurityWeek

Malware & Threats

9-Year-Old NPM Crypto Package Hijacked for Information Theft

Nearly a dozen crypto packages on NPM, including one published 9 years ago, have been hijacked to deliver infostealers.

Multiple NPM packages designed for blockchain application development have been hijacked to deliver information stealer malware, software supply chain management firm Sonatype reports.

The packages provide legitimate functionality for developers building applications that interact with blockchain services, but their latest versions contain obfuscated scripts, being able to steal sensitive information from the victims’ systems.

With a total combined download count of roughly 500,000 over their entire lifetimes, these packages have been available in the NPM registry for years, one for nearly a decade.

The malicious updates, however, were published recently, with the changes observed only on NPM, while the GitHub repositories remained untouched, Sonatype says.

At least two of the hijacked packages, namely ‘bnb-javascript-sdk-nobroadcast’ and ‘country-currency-map’ have not had new versions published for years, but new releases containing malicious code popped up on NPM for both this week.

The malicious version of ‘country-currency-map’ was deprecated shortly after it was published, with the maintainers recommending the use of the previous version, published five years ago.

Advertisement. Scroll to continue reading.

In both packages, Sonatype identified highly obfuscated scripts that run during installation, and which collect sensitive information such as system environment variables, which could store access tokens, API keys, SSH credentials, and other data.

Malicious versions of ‘@bithighlander/bitcoin-cash-js-lib’, ‘eslint-config-travix’, ‘@crosswise-finance1/sdk-v2’, ‘@keepkey/device-protocol’, ‘@veniceswap/uikit’, ‘@veniceswap/eslint-config-pancake’, ‘babel-preset-travix’, ‘@travix/ui-themes’, and ‘@coinmasters/types’ were also identified.

The hijacks, the company notes, may have been performed after old maintainer accounts were compromised, likely via credential stuffing.

“Although NPM mandated two-factor authentication (2FA) for high impact projects in 2022 (e.g. authors of NPM packages receiving 1 million weekly downloads or with more than 500 dependents), some authors still need to enroll in two-factor authentication,” Sonatype notes.

Related: Developers Targeted With Malware Disguised as DeepSeek Package

Related: Snyk Says ‘Malicious’ NPM Packages Part of Research Project

Related: Open Source Package Entry Points May Lead to Supply Chain Attacks

Related: Cryptocurrency Wallets Targeted via Python Packages Uploaded to PyPI

Written By

Ionut Arghire is an international correspondent for SecurityWeek.

Daily Briefing Newsletter

Subscribe to the SecurityWeek Email Briefing for the latest cybersecurity threats, trends, and expert insights.

Daily Briefing Newsletter

Subscribe to the SecurityWeek Email Briefing to stay informed on the latest threats, trends, and technology, along with insightful columns from industry experts.

Close the security gaps between pentests. Join this session to explore agentic pentesting and gain a practical framework for continuous exposure validation in your CTEM program.

Register

Join as we bring together CISOs, senior cybersecurity executives, practitioners, industry experts, and other security leaders to share practical experience and examine the issues shaping enterprise cybersecurity strategy.

Register

People on the Move

Jeremy Rosenberg has become CISO at MIT.

Keyfactor has named Gerald Beuchelt as CISO.

DNSFilter has appointed Justin Foster as CTO.

More People On The Move

Expert Insights

Daily Briefing Newsletter

Subscribe to the SecurityWeek Email Briefing to stay informed on the latest cybersecurity news, threats, and expert insights. Unsubscribe at any time.