Skip to content
supplychainattack.orgSupply chain attack incident catalog
containedcritical

Malicious code in typescriptt-core (npm)

typescriptt-core is a typosquat package on npm that executes a malicious postinstall script. The script XOR-decodes a hidden URL and PowerShell launcher, then downloads and executes main.exe from a GitHub release on Windows and WSL systems, while sending install beacons to a hardcoded IP endpoint.

ShareXLinkedInHacker News
Disclosed
Last updated
Blast radius
All systems that installed typescriptt-core from npm, particularly Windows and WSL environments
Ecosystems
Attack vectors
Affected entities
  • typescriptt-coreTyposquat of TypeScript (double-t). Contains malicious postinstall script that downloads and executes main.exe on Windows/WSL.

typescriptt-core is a typosquatting attack targeting the TypeScript ecosystem, using a double-t in the package name to evade detection. The package contains no legitimate functionality—its main export is an empty object—and all malicious behavior is triggered by a postinstall script.

The postinstall.js script uses XOR obfuscation with the fixed key 'stf2026' to decode a hidden URL and PowerShell launcher command. On Windows systems, it downloads main.exe from https://github.com/bebraz1/qPzM50V1AKG0rVlH/releases/download/null/main.exe to the %TEMP% directory and executes it with detached process spawning. On WSL, the script decodes a bridge command and invokes powershell.exe on the Windows host to perform the same fetch-and-run operation.

Before executing the payload, the postinstall script sends an install beacon—a small JSON payload containing the host platform label—to http://193.70.34.101:20099/vote over plain HTTP. The destination GitHub account (bebraz1) is unrelated to the official TypeScript project, and both the URL and PowerShell command are obfuscated to defeat static code review.

This incident was identified and credited to the OpenSSF's malicious-packages repository.

Indicators of compromise

Packages
  • typescriptt-core
Domains
  • github.com
IPs
  • 193.70.34.101

Remediation

  • Immediately uninstall typescriptt-core from all systems
  • Audit npm install logs to identify systems that installed typescriptt-core
  • On Windows/WSL systems that installed the package, check %TEMP% for main.exe and remove it
  • Scan affected systems for signs of execution of main.exe or other malicious activity
  • Review network logs for connections to 193.70.34.101:20099
  • Verify that the correct 'typescript' package (not 'typescriptt-core') is installed
  • Consider using npm package name verification tools and dependency scanning to prevent similar typosquatting attacks

Sources

  1. GitHub Advisory GHSA-xr8x-4364-mj6p · GitHub Advisory Database

Cite this entry

"Malicious code in typescriptt-core (npm)." supplychainattack.org, Supply Chain Attack Incident Catalog. Disclosed August 19, 2026; last updated August 19, 2026. https://supplychainattack.org/incident/malicious-code-in-typescriptt-core-npm-way3tn

Suggest a correction

Found an error or have a newer source? Corrections to factual errors take priority over new entries.

  1. resolvedcritical

    Malicious code in create-coin (npm)

    create-coin@20.1.1 on npm contained malicious postinstall code that collected sensitive environment variables, credentials, and host reconnaissance data. The package impersonated an esbuild platform build and exfiltrated data to a hardcoded endpoint.

    npmCompromised packageTyposquatting
  2. containedcritical

    Malicious code in chai-as-testkit (npm)

    The npm package chai-as-testkit is a typosquat/impersonation attack delivering obfuscated malicious code that executes on import. The package falsely claims to be a vulnerability management tool but ships pino library files under a different author, with a synthetic stub that loads a 4MB+ obfuscated bundle containing attacker-controlled code.

    npmTyposquattingCompromised package
  3. resolvedcritical

    Malicious code in @next-fonts/font (npm)

    @next-fonts/font is a typosquat package on npm that executes arbitrary attacker-controlled code via a blockchain-mediated C2 channel when its Inter() function is called. The malicious payload is base64-encoded and executed through Node.js spawn or eval, with no legitimate font functionality.

    npmTyposquattingCompromised package
  4. resolvedcritical

    Malicious code in chai-as-soul (npm)

    chai-as-soul@2.3.5 is a typosquat of the pino logging library containing malicious code that exfiltrates environment variables (including AWS/GCP/CI tokens) and executes arbitrary remote code on installation.

    npmTyposquattingCompromised package