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

sort-btree@2.1.4

Malicious code in sort-btree (npm)

T1195.002 · Compromise Software Supply ChainT1059.007 · JavaScriptT1082 · System Information DiscoveryT1071.001 · Web ProtocolsT1102.003 · One-Way CommunicationT1573 · Encrypted ChannelT1105 · Ingress Tool TransferT1055 · Process InjectionT1480 · Execution GuardrailsT1027 · Obfuscated Files or InformationT1567 · Exfiltration Over Web ServiceT1552.001 · Credentials In FilesT1543.001 · Launch Agent

Analysis

sort-btree@2.1.4 is a trojanized version of a BTree data-structure library. Upon loading, it spawns a hidden background process that: (1) collects system information (hostname, platform, CPU count, memory, running processes); (2) exfiltrates the data to both Slack (POST to slack[.]com/api/chat.postMessage, channel C0ATC9UKKA4) and Telegram (POST to api[.]telegram[.]org with a hardcoded bot token, chat ID -1003968723972); (3) connects to the Ethereum Sepolia testnet via Infura and Alchemy RPC endpoints using base64-encoded embedded API keys; (4) reads encrypted commands from the Sepolia smart contract at 0x661e50e19f05e3c0d04fd75891456d1f0a24508d, decrypting them with PBKDF2+AES-GCM; (5) generates an X25519 Diffie-Hellman keypair and registers a public key on-chain via the contract's setCPubKey method; (6) listens for TData1Updated/TData2Updated events from the contract; (7) when triggered, fetches and decrypts the payload data, either self-destructing or writing the second-stage payload to ~/.config/update-notifier/Updates/AppUpdates (Linux), ~/Library/Application Support/AppleSoftware/Updates/AppUpdates (macOS), or %APPDATA%/Microsoft/Network/Connections/Updates/AppUpdates (Windows) and executing it as a persistent detached Node.js process; (8) self-deletes the payload files and sanitizes the entry-point code after execution.

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