5 npm typosquats of Solana and Ethereum libraries send keys to Telegram

HighTyposquatnpm

npm publisher galedonovan shipped five typosquats of legitimate crypto libraries. Each transparently intercepts private keys passed through normal API calls (Base58 decoding for Solana, Wallet construction for Ethereum), exfiltrates them to a hardcoded Telegram bot, then returns the expected result so functionality looks normal.

Published 24 Mar 2026

At a glancenpm-2026-03-24-solana-ethereum-typosquats
5
Packages tracked4 malicious versions

Every version named by the advisory is in the scanner, so a lockfile check finds it directly.

Severity
High
Type
Typosquat
Published
24 Mar 2026
Ecosystems
npm
Detected by
Socket

Typosquat. A package that never had a legitimate version, named to be mistaken for a real one - a misspelling, a lookalike scope, or an impersonated vendor SDK.

What happened

The full picture

On 2026-03-24 Socket disclosed five malicious npm packages published by galedonovan that typosquat well-known Solana and Ethereum developer libraries:

  • raydium-bs58 (1.9.7) - squats bs58 used by Raydium tutorials
  • base-x-64 (0.0.6) - squats base-x
  • bs58-basic (6.0.1) - squats bs58
  • ethersproject-wallet (5.8.1) - squats @ethersproject/wallet
  • base_xd - squats base-x

Each package re-exports the legitimate API surface and forwards calls to the real implementation. The malicious wrapper intercepts at the points where private keys actually touch developer code: decode for Base58 (Solana keypairs typically arrive as Base58 strings) and the Wallet constructor for Ethereum (which accepts a hex-encoded private key). When a key passes through, the package POSTs it to a hardcoded Telegram bot, then returns the legitimate result so the calling code sees nothing unusual.

This "transparent middleman" pattern is particularly dangerous against test environments - the typosquatted dependency passes unit tests, signs transactions correctly, and only the Telegram log reveals the theft. Audience targeting is narrow but extremely high-value: indie crypto-dApp developers whose seed phrases unlock production wallets.

Socket flagged all five packages on 2026-03-24; npm has since removed them. Anyone who installed even briefly should consider every key handled by the affected project as exposed and migrate funds to a fresh wallet.

typosquatcrypto-wallet-draincredential-theftinfostealer
Affected packages

5 packages 4 versions

These are usually pulled in as transitive dependencies rather than installed directly. Check your whole tree at once. It runs in your browser and nothing is uploaded.

Impact

What it does if you installed it

  • Solana and Ethereum developer private keys exfiltrated silently
  • Functional API wrappers mean the typosquat goes undetected in testing
  • Targets crypto dApp developers
What to do

Clean-up steps

  1. Remove the listed packages from any project
  2. Treat any keys handled in affected projects as compromised; rotate / move funds
References

Sources

npm-2026-03-24-solana-ethereum-typosquatsBack to incidentsSubmit a correction
Am I affected?

Check your lockfile against this and every other incident.

Paste a lockfile and it is matched on your own device against every compromised version we track. Nothing is uploaded and there is no account.