ts-bn-lint@3.1.19
Malicious code in ts-bn-lint (npm)
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
- new-helper@5.8.1
- ts-big-ecro@3.8.1
- node-slot@1.0.7
- server-parket@3.8.1
- parket-helper@0.0.1
- tiny-string-parser@0.1.2
- system-drive@1.0.0
- snavbox@1.0.1
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.