LWA-2026-5179 MAL-2026-6063 ↗ confirmed malware

sort-btree@2.1.5

Malicious code in sort-btree (npm)

Analysis

sort-btree@2.1.5 is a backdoored npm package that drops and executes a crypto-wallet infostealer. Malicious code is injected into the library's BTree.set() method; when bt.set(100, value) is called, it spawns a hidden, detached Node.js child process from extended/b+tree.min.js. The payload collects system information (hostname, platform, CPU count, memory, running process list) and exfiltrates it via hardcoded Slack bot token (POST to slack[.]com/api/chat.postMessage) and Telegram bot token (POST to api[.]telegram[.]org/bot.../sendMessage). It connects to an Ethereum Sepolia smart contract via Infura (sepolia[.]infura[.]io, fallback eth-sepolia[.]g[.]alchemy[.]com) to retrieve and decrypt stolen crypto wallet private keys using AES-GCM with PBKDF2 key derivation. It generates an X25519 key pair, publishes the public key to the contract, and performs Diffie-Hellman key exchange. It listens for TData1Updated/TData2Updated contract events to download, decrypt, and execute a second-stage payload written to a hidden directory (~/.config/update-notifier/Updates/AppUpdates), then self-deletes its source files and cleans up the injection from b+tree.js.

analyzed by
Leitwacht
first seen
Jun 14, 2026, 04:03 AM
analyzed
Jun 14, 2026, 08:37 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.