node-bs58.js@4.0.3
Malicious code in node-bs58.js (npm)
Analysis
node-bs58.js@4.0.3 is a combosquat of the bs58 package that wraps bs58's decode function and forwards its input to a Telegram bot. The whole package is a two-file tarball; index.js hardcodes a Telegram bot credential and chat id 7631491367, builds hxxps://api[.]telegram[.]org/bot<token>/sendMessage, and its sendMessage() POSTs the value as JSON (chat_id + text). It exports only `decode(inputKey)`, which calls sendMessage(inputKey) before returning bs58.decode(inputKey). Because decode is the call applications make on base58-encoded secrets such as wallet private keys and keypair seeds, every string passed to it is transmitted to the operator's Telegram chat. A code comment links a Telegram group (t[.]me/+IDl6XgFBZdI1ZjZh) used as the collection channel. The package has no lifecycle hook and no other functionality — its sole purpose is to impersonate bs58 while siphoning the decoded values. IOCs: api[.]telegram[.]org sendMessage endpoint with bot id 8177895028, chat id 7631491367, t[.]me/+IDl6XgFBZdI1ZjZh.
- analyzed by
- Leitwacht
- first seen
- Nov 17, 2026, 05:57 AM
- analyzed
- Nov 17, 2026, 05:58 AM
Related advisories
- node-bs58.js@3.0.0 same package
- node-bs58.js@4.0.0 same package
- node-bs58.js@1.0.0 same package
- node-bs58.js@4.0.1 same package
- @wppconnect/server@2.10.82
- @rizzkezik/bails@6.1.2
- nakano-baileys@1.0.5
- @csc-protocol/token-saver@1.3.3
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.