Malicious code in typescipt-cli (npm)
Historical advisory saved 24 Oct 2026 13:17:17 UTC. The publisher may have updated it since then. Latest advisory.
osv · MAL-2026-14146
Published--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (b080f58ace02e860729134afd887943345248628e5c201a5fd2e46c71f439d29) Package name typosquats 'typescript'. scripts/postinstall.js runs at npm install time and: (1) POSTs a JSON body with the installer's platform label to 193.70.34.101:20099/vote, with the IP split into a string array ['193','70','34','101'].join('.') to obscure it; (2) XOR-decodes a hardcoded URL (github.com/bebraz1/qPzM50V1AKG0rVlH/releases/download/null/main.exe) using key 'stf2026' via a byte-array unpackSegment helper, downloads the resulting binary to %TEMP%\main.exe on Windows, and launches it detached with windowsHide; (3) on WSL, XOR-decodes a PowerShell bridge command and exec's it to run the same download on the host Windows. No hash or signature verification. URLs, commands, and the C2 IP are stored as encoded byte arrays and reconstructed at runtime.
- Source published
- 18 Aug 2026 23:19:49 UTC
- Source modified
- 18 Aug 2026 23:45:12 UTC
- Saved here
- 24 Oct 2026 13:17:17 UTC
- Source terms
- OSV · upstream source license applies
Original source record · Cite this exact observation · Complete original publisher JSON
Source: osv · OSV · upstream source license applies. The publisher's wording is preserved. ChangeIntel groups the information and labels changes. The JSON record includes additional source fields.