A major supply-chain attack has infiltrated widely used JavaScript packages, potentially putting billions of dollars in crypto at risk. Charles Guillemet, chief technology officer at hardware wallet maker Ledger, warned that hackers have compromised a reputable developer’s Node Package Manager (NPM) account to push malicious code into packages downloaded more than a billion times.

The injected malware is designed to quietly swap cryptocurrency wallet addresses in transactions, meaning users could unknowingly send funds directly to attackers.

“The malicious code attempts to drain users by swapping addresses used in transactions or general on-chain activity and replacing them with the hacker’s address,” Guillemet explained.

Supply Chain Attack Hits Deep Into Developer Ecosystem

NPM is a core tool in JavaScript development, widely used to integrate external packages into applications. When a developer’s account is compromised, attackers can slip malware into packages that developers then unknowingly deploy in decentralized applications or software wallets.

Security researchers warn that software wallet users are particularly vulnerable, while hardware wallets remain largely protected. According to Oxngmi, founder of DefiLlama, the code does not automatically drain wallets. Users must still approve transactions, but compromised packages can silently change transaction details.

Developers who pin dependencies to older, safe versions may avoid exposure, but users cannot easily verify which sites are safe. Experts recommend avoiding crypto transactions until affected packages are cleaned up.

Phishing Emails and Account Takeover

The breach began with phishing emails sent to NPM maintainers, claiming their accounts would be locked unless they “updated” two-factor authentication by Sept. 10.

The fake site captured credentials, giving attackers control of developer accounts. From there, malicious updates were pushed to packages downloaded billions of times.

Charlie Eriksen of Aikido Security said the attack operates “at multiple layers: altering content shown on websites, tampering with API calls, and manipulating what users’ apps believe they are signing.”

Technical Details of the Crypto-Targeted Malware

The malware hooks into core browser functions and wallet APIs such as window.ethereum and Solana, allowing it to intercept both web traffic and wallet activity. By doing so, attackers can redirect crypto transactions before users notice.

Developers and users are urged to review dependencies and delay crypto transactions until the packages are verified safe. The incident underscores the risks inherent in widely used open-source software and the potential for supply-chain attacks to affect billions of users.

This article was written by Jared Kirui at www.financemagnates.com.CryptoCurrencyRead More

You might also be interested in reading Lee Holmes Steps Down as Infinox’s UK CEO.