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

node-bs58.js@4.0.1

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 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

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.