Malicious code in typesript-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-14154
Published--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (3ac32bb6c3db806740bda125cf58a8f348256baa021b0a6c7b901ebb86720505) Package name is a one-character typosquat of the widely-used 'typescript' family. On npm install, scripts/postinstall.js XOR-decodes (key 'stf2026') a GitHub-hosted URL held as an integer array and downloads a Windows PE to TEMP\main.exe, then spawns it detached with no hash or signature verification. When running under WSL or virtualized Linux (detected via /proc/version and WSLENV), the script decodes a bridge launcher command and inline script from further XOR-obfuscated blobs and executes them via child_process.exec with windowsHide:true to fetch and run the same payload on the Windows host, crossing the Linux sandbox boundary. The script also POSTs platform info to a hardcoded bare-IP endpoint http://193.70.34.101:20099/vote, with the IP split across a string array ['193','70','34','101'].join('.') to hide it from static review, serving as an install beacon.
- Source published
- 18 Aug 2026 23:21:19 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.