Ledger CTO Confirms Massive NPM Supply Chain Attack Targeting JavaScript Ecosystem

Ledger CTO Confirms Massive NPM Supply Chain Attack Targeting JavaScript Ecosystem
Table of contents

    A critical supply chain attack has shaken the JavaScript world after the NPM account of a highly respected developer, known under the handle qix, was compromised. According to reports confirmed by Charles Guillemet, Chief Technology Officer of Ledger, the attack has already placed the entire JavaScript ecosystem at risk, with billions of downloads potentially exposed to malicious code.

    Dozens of foundational open-source packages maintained by qix, including strip-ansi, color-convert, color-name, error-ex, has-ansi, and is-core-module, were found to contain hidden malware. These utilities sit at the bottom of countless dependency chains, meaning that virtually every modern JavaScript project may have indirectly integrated the compromised versions.

    The attack is sophisticated. Malicious patch versions were released with obfuscated code designed to intercept and manipulate network requests. At its core, the payload functions as a crypto-clipper, replacing legitimate wallet addresses with those controlled by the attacker. This allows them to silently siphon funds from unsuspecting users.

    How the Attack Works

    Investigations revealed a two-pronged strategy.

    1. Passive interception: The malware hijacks browser functions such as fetch and XMLHttpRequest. It scans for cryptocurrency addresses in outgoing or incoming requests and swaps them with attacker-controlled addresses. The replacement is designed to be visually similar to the original, making detection extremely difficult.
    2. Active manipulation: When a crypto wallet is detected, the code goes further. It hijacks transaction calls such as eth_sendTransaction, replaces the recipient address with a malicious one, and forwards the altered transaction for signing. Users who do not carefully inspect transaction details risk unknowingly sending funds to the attacker.

    The scope is massive. These libraries collectively record hundreds of millions of weekly downloads, making the blast radius one of the largest supply chain threats ever seen in open source.

    Warnings from Ledger’s CTO About the Attack

    In a public statement on X, Ledger CTO Charles Guillemet warned that users relying on software wallets should immediately halt on-chain transactions until the situation becomes clearer. Hardware wallet users remain safer, but only if they carefully review each transaction before signing.

    “If you use a hardware wallet, pay attention to every transaction before signing and you’re safe. If you don’t use one, refrain from making on-chain transactions for now,” Guillemet advised.

    He also confirmed that it is still unclear whether the attacker is attempting to steal seed phrases directly from software wallets.

    Protecting Yourself

    Developers are urged to act immediately:

    • Pin safe versions of affected packages using the overrides feature in package.json.
    • Use npm ci in build pipelines to ensure only versions locked in package-lock.json are installed.
    • Audit dependencies regularly with tools like Snyk or Dependabot.
    • Treat every update to package-lock.json with the same scrutiny as application code.

    It is not yet confirmed what chains are affected. This leaves room for speculation that all chains are affected, or at least most of them.

    Stay alert. Audit your dependencies. Double-check your transactions. Official announcement from Ledger can be found here.

    AI & CryptoAI AgentsAI PaymentWallet
    How Programmable Wallets Can Limit Autonomous Spending
    A programmable wallet is a wallet whose spending rules are enforced in code at the signing layer, not by the software asking for the money. The agent cannot talk its way past a limit it does not control. The core controls are per-transaction caps, rolling session and period caps, counterparty allowlists, contract and function scoping, […]...
    3 weeks ago
    Wallet
    Passkey Crypto Wallets vs Seed Phrase Wallets
    Your face or fingerprint is not the private key. Biometrics unlock an authenticator, which then uses a cryptographic credential. Confusing the two leads to bad assumptions about what happens when a device is lost. Passkeys are phishing-resistant by design because WebAuthn binds the credential to a specific origin, so a lookalike domain cannot obtain a […]...
    1 month ago
    CryptocurrencySafetyWalletWeb 3.0
    Signed, Sealed, Drained: How Backdoors Drain Crypto Wallets
    The biggest losses of 2023-2026 broke no cryptography. Bybit’s $1.5bn drain ran through a sound multisig and clean contracts; the attacker only changed what the signers saw. Four mechanisms recur and braid together: poisoned software supply chains, tampered signing interfaces, laundered authority via approvals and off-chain signatures, and privileged paths hidden in contracts, proxies and [&...
    3 months ago