LWA-2026-5778 MAL-2026-6695 ↗ confirmed malware

ts-bn-proto@5.8.1

Malicious code in ts-bn-proto (npm)

T1059.007 · JavaScriptT1552.001 · Credentials In FilesT1005 · Data from Local SystemT1041 · Exfiltration Over C2 Channel

Analysis

When installed, the package's postinstall script (node test.js) immediately executes four credential-harvesting routines without user consent. It scans the home directory, all drive roots (Linux /home, Windows C:\, macOS /Users), and the current working directory for sensitive files including .env files, JSON wallet files (id.json), config.toml, and any files whose names contain wallet/key/seed/mnemonic/private_key/keystore/metamask/phantom/trezor/ledger keywords. It also collects shell command histories from ~/.bash_history, ~/.zsh_history, ~/.local/share/fish/fish_history, and PowerShell ConsoleHost_history.txt across platforms. On Windows and macOS, it steals the Telegram Desktop session directory (tdata) by gzipping the entire folder. All stolen data is exfiltrated via multipart HTTP POST requests to hxxps://data-stream[.]space/api/v1. The exfiltration server endpoint can be overridden by the BACKUP_API_URL environment variable.

analyzed by
Leitwacht
first seen
Jun 19, 2026, 05:21 PM
analyzed
Jun 19, 2026, 05:22 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.