LWA-2026-14241 MAL-2026-20039 ↗ confirmed malware

node-bs58.js@4.0.0

Malicious code in node-bs58.js (npm)

T1195.002 · Compromise Software Supply ChainT1059.007 · JavaScriptT1071.001 · Web ProtocolsT1102 · Web ServiceT1041 · Exfiltration Over C2 ChannelT1567 · Exfiltration Over Web Service

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

browse all confirmed advisories →

Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.