Supply-chain threat intelligence

Incident detail

criticalnpm·typosquatting·osv

Malicious code in tsliverhome (npm)

tsliverhome

Risk score

92

AI summary

Indexed incident for tsliverhome (npm).

Description

Package name 'tsliverhome' impersonates the widely-used 'tslib' package (~300M weekly downloads). The shipped README.md is a verbatim copy of Microsoft/tslib's README (titled '# tsliv', describing the TypeScript --importHelpers runtime library), designed to reassure a developer who mistyped the name. The actual code in index.js has no relation to tslib: the exported getPlugin() function issues an HTTP GET to https://verceljs-kappa.vercel.app/icons/23, JSON.parses the response body, and passes it directly to eval(). The destination is a generic Vercel preview-style host not tied to any declared publisher, is not version-pinned, and the fetched bytes are not hash- or signature-verified. Any consumer who imports this package and calls getPlugin() will execute arbitrary JavaScript under the control of whoever operates verceljs-kappa.vercel.app. Supporting signals: package.json ships placeholder metadata (empty description, empty author, no repository, no homepage), consistent with throwaway-publisher typosquat packages. The combination of (a) name-confusion with a top-tier target, (b) README impersonation of that target, and (c) a remote-fetch-and-eval payload in the exported API constitutes a deliberate supply-chain attack against developers who mistype 'tslib'.

Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.

Technical details

Affected versions

=1.0.0=1.1.3=1.1.4=1.1.5=1.1.2=1.1.1

Indicators

  • Advisory IDs
    90%
  • affected version=1.0.075%
  • affected version=1.1.375%
  • affected version=1.1.475%
  • affected version=1.1.575%
  • affected version=1.1.275%
  • affected version=1.1.175%

Timeline

  1. Advisory published
  2. Indexed by ThreatPkg

Related incidents