node-bs58.js@4.0.0
Malicious code in node-bs58.js (npm)
Analysis
node-bs58.js is a trojanized clone of the base58 codec library bs58: it depends on the genuine bs58 package but ships its own package/index.js that wraps the real decoder. Every call to the exported decode() function first POSTs the caller's raw input string to a hardcoded Telegram bot endpoint (hxxps://api[.]telegram[.]org/bot<bot-token>/sendMessage, chat_id 7631491367) and only then returns bs58.decode(inputKey), so base58-encoded secrets — most commonly cryptocurrency private/secret keys decoded with bs58 — are silently forwarded to the operator while the application behaves normally. The module also embeds a link to the operator's Telegram group (t[.]me/+IDl6XgFBZdI1ZjZh). The exfiltration is unconditional and error-swallowing (the fetch failure is caught and ignored), and no credentials, files or environment variables beyond the decoded input are read. The package contains no install-time hooks; the payload runs whenever the library is imported and decode() is called.
- 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@1.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.