LWA-2026-5779 MAL-2026-6317 ↗ confirmed malware

ts-bn-lint@3.1.19

Malicious code in ts-bn-lint (npm)

T1552.001 · Credentials In FilesT1083 · File and Directory DiscoveryT1082 · System Information DiscoveryT1071.001 · Web ProtocolsT1041 · Exfiltration Over C2 ChannelT1059.007 · JavaScript

Analysis

Package index.js contains an info-stealer that walks the current working directory searching for Solana wallet key files (id.json), config.toml, Config.toml, config.json, .env, and env files. It also harvests shell history from ~/.bash_history, ~/.zsh_history, ~/.fish_history, ~/.sh_history, and PowerShell PSReadLine ConsoleHost_history.txt. All discovered files are exfiltrated via HTTP POST to hxxps://data-stream[.]space/api/v1 with a Content-Type: application/octet-stream header and Content-Disposition: attachment; filename="<filename>". Each exfiltrated payload is prefixed with the machine's USER environment variable and local IP address in the format USER@IP. When require()'d, the package automatically starts the search-and-exfil routine.

analyzed by
Leitwacht
first seen
Jun 19, 2026, 08:25 PM
analyzed
Jun 19, 2026, 08:26 PM

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.