On September 8, a major software supply chain attack reportedly struck the JavaScript ecosystem. At first, over 1 billion downloads of key Node.js packages were thought to be exposed to hidden malware designed to steal crypto. The breach came to light when Charles Guillemet, CTO of Ledger, issued a public warning that a trusted developer's Node Package Manager (NPM) account had been hijacked.
"There's a large-scale supply chain attack in progress: the NPM account of a reputable developer has been compromised," said Guillemet on X. "The affected packages have already been downloaded over 1 billion times, meaning the entire JavaScript ecosystem may be at risk."
A follow-up analysis published by Bleeping Computer later revealed that the compromised packages together account for more than 2.6 billion downloads each week.
Crypto Clipper Malware Hidden in Core Libraries
The attack centered on the account of the well-known developer "qix," who is behind several widely used JavaScript libraries. These include chalk, strip-ansi, color-convert, and debug, among others. Together, these packages had already been downloaded over a billion times, though further investigation has since confirmed the real number is far higher.
The attackers gained access to the NPM account using a fake support email: support [at] npmjs [dot] help. Once inside, they pushed malicious updates to around 18 packages. Within hours, the malware had spread across countless projects through automated dependency installs.
"The malicious payload works by silently swapping crypto addresses on the fly to steal funds," warned Guillemet.
How the Malware Works: Two Types of Attacks
Security experts analyzing the code found it acts as a "crypto clipper," a type of malware that replaces wallet addresses during transactions. It operates using two methods: one passive and one active.
First, if a wallet is not detected, the malware replaces wallet addresses inside decentralized apps (dApps). It does this by hooking into browser functions like fetch and XMLHttpRequest, letting it scan and modify outgoing data.
If a wallet like MetaMask is detected, the malware gets more aggressive. It intercepts the transaction before it's signed and swaps the wallet address in memory. That altered transaction is then sent to the user's wallet to approve, with the fake address already in place.
The trickiest part is how the address is changed. The script uses the Levenshtein algorithm, a method that finds the visually closest match to the original address. That makes the new, fake address look nearly identical to the real one, increasing the chance users won't notice.
Obfuscation and Discovery
Developers first noticed the malware because of an error in their build system:
ReferenceError: fetch is not defined
This error led them to a small dependency called error-ex. On inspection, the code was heavily obfuscated, made deliberately unreadable. Buried in the mess was a suspicious function named checkethereumw, a clear clue it was targeting Ethereum wallets.
Further analysis uncovered that the attack was active and well-coordinated. The code even included wallet addresses across many blockchains, including Bitcoin, Ethereum, Solana, Tron, Litecoin, and Bitcoin Cash.
Packages Affected and Download Counts
These were not obscure libraries. The malware infected some of the most-used packages in the ecosystem:
- chalk: 300 million weekly downloads
- strip-ansi: 261 million
- color-convert: 193 million
- color-name: 191 million
- debug: 357.6 million
- is-core-module: 69 million
- error-ex: 47 million
- simple-swizzle: 26 million
- has-ansi: 12 million
According to Bleeping Computer, the full set of compromised packages has a combined total exceeding 2.6 billion downloads per week. These libraries form the backbone of many JavaScript applications, from web servers to front-end apps.
Direct Impact on Crypto Projects
Because these libraries sit deep in many project dependency trees, even projects not directly related to crypto may have been affected. But those that interact with crypto, especially wallets and dApps, are at high risk.
"If you use a hardware wallet, pay attention to every transaction before signing and you're safe," Guillemet added. "If you don't use a hardware wallet, refrain from making any on-chain transactions for now."
He clarified that users of Ledger or any other wallet with clear-signing features are not at risk, but warned that software wallet users should be extremely cautious.
Tracing the Attacker
So far, the attacker has not moved the stolen funds, which are being monitored thanks to blockchain transparency. One of the primary Ethereum addresses used in the attack is:
0xFc4a4858bafef54D1b1d7697bfb5c52F4c166976
Other backup wallets identified include:
- 0xa29eeFb3f21Dc8FA8bce065Db4f4354AA683c024
- 0x40C351B989113646bc4e9Dfe66AE66D24fE6Da7B
- 0x30F895a2C66030795131FB66CBaD6a1f91461731
These are being tracked on Etherscan and linked GitHub reports.
What Developers Should Do Now
The JavaScript community is working fast to remove the infected versions. But some projects may still have the malicious versions in their lockfiles. It's critical to audit your dependencies and pin all affected packages to their last clean version.
Use the overrides field in your package.json to lock safe versions. After that, delete your node_modules folder and your package-lock.json, then reinstall with npm install.
To reduce future risk, developers are also being urged to:
- Use npm ci instead of npm install to enforce exact versions
- Rotate all API keys and credentials
- Enable 2FA authentication on NPM and GitHub accounts
- Review all transaction data on wallets with clear-signing features
Security Warning from the Ecosystem
This breach is one of the largest ever to hit NPM. Crypto users are the clear target, and the scope is still growing. StarPlatinum, a well-known voice in the web3 space, summed it up on X:
"This time, the community caught it fast. But the fact that 2 billion weekly downloads were compromised shows how fragile our systems are."
As of now, most of the malicious packages have been taken down. But the risk of stale versions in projects remains. Anyone building apps, especially those working with blockchain tech, is urged to check their dependency tree and lock all versions as a matter of urgency.
"Always review every transaction before you sign," Guillemet emphasized.
This incident is a stark reminder that even small developer tools can become powerful attack points, especially when they live deep inside the web's most trusted code.












