Toutes les vulnérabilités
CRITICALWeb3exploited in the wild

WEB3-LEDGER-CONNECT-KIT-2023

Web3 · Ethereum · Ledger Connect Kit

Résumé

On December 14, 2023 a former Ledger employee was phished, giving the attacker access to their npmjs account, whose access had not been revoked at offboarding. The attacker published malicious versions (1.1.5, 1.1.6, 1.1.7) of the @ledgerhq/connect-kit npm package in which the library's normal export was replaced with a malicious Drainer class. Because thousands of dApps load Connect Kit dynamically via a CDN script tag rather than a pinned local bundle, the poisoned package was served automatically to every visitor, injecting a fake WalletConnect modal that prompted users to sign asset-draining transactions; the drainer logic was the off-the-shelf Angel Drainer service. Affected front ends included SushiSwap, Zapper and Revoke.cash. The malicious package was live for roughly five hours (active draining under two hours) and Ledger deployed a clean version 1.1.8 about 40 minutes after notification, with around $600K stolen.

Comment l’éviter dans votre code

  • Pin exact dependency versions and self-host or SRI-lock CDN-loaded libraries instead of trusting floating CDN script tags.
  • Require signed/provenance-verified npm releases and enable npm 2FA plus publish protections on all maintainer accounts.
  • Revoke npm, registry, and session-token access immediately at employee offboarding and rotate credentials.
  • Enforce clear-signing and transaction simulation so users see real recipients and amounts before approving.
  • Monitor published package versions and CDN assets for unexpected releases or content changes.

Références

Vulnérabilités liées

Tout Web3 →