node-bs58.js@4.0.1
Malicious code in node-bs58.js (npm)
Analysis
node-bs58.js is a combosquat of the bs58 base58 codec: index.js imports the real bs58 package but wraps its exported decode() so that every input string is first POSTed to a Telegram bot endpoint before being decoded. The hardcoded bot token and chat_id are embedded in package/index.js (url hxxps://api[.]telegram[.]org/bot<token>/sendMessage with chat_id 6567872939), and the source also carries a Telegram group invite link. Because base58.decode is typically called on wallet key material, any application that installs this package instead of bs58 silently ships the encoded secrets it decodes to the operator; the network call is wrapped in a try/catch with an empty handler so failures stay invisible. There is no install-time hook — the exfiltration happens on each decode() call. Anyone with this package in their dependency tree should treat any value passed to decode() as disclosed, rotate the underlying keys, and replace it with bs58.
- 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.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.