5 npm typosquats of Solana and Ethereum libraries send keys to Telegram
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
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
- Source
- socket.dev
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.
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) - squatsbs58used by Raydium tutorialsbase-x-64(0.0.6) - squatsbase-xbs58-basic(6.0.1) - squatsbs58ethersproject-wallet(5.8.1) - squats@ethersproject/walletbase_xd- squatsbase-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.
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.
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
Clean-up steps
- Remove the listed packages from any project
- Treat any keys handled in affected projects as compromised; rotate / move funds
Sources
- 5 Malicious npm Packages Typosquat Solana and Ethereum Libraries, Steal Private Keyssocket.dev
- npm: bs58 (legitimate package)npmjs.com
- npm: @ethersproject/wallet (legitimate package)npmjs.com
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.