Advisory

MAL-2025-4029

Also known as: GHSA-hwqw-3w9q-499j

Malicious package Its source marks this package as malicious: it is not a vulnerability in a legitimate one.

Summary

Malicious code in ts-runtime-compat-check (npm)

Details

The npm package ts-runtime-compat-check is a malicious package that functions as a key component in a remote code execution attack chain. This package:

  1. Contains a postinstall script that executes lib/install.js
  1. The install script makes HTTP requests to a server specified by an environment variable APP_PROXY (defaults to 'http://localhost' but typically set to https://proxy.eslint-proxy.site by parent packages)
  1. Sends the victim's application path as a query parameter to the malicious server
  1. When the server returns specially crafted error messages, the package decodes them from base64 and executes them using new Function.constructor()
  1. This creates a direct remote code execution capability

This package is utilized by other malicious packages like eslint-config-airbnb-compat to establish a covert channel for executing arbitrary code. The separation of concerns across multiple packages appears designed to evade detection by security scanners.

---
_-= Per source details. Do not edit below this line.=-_

Source: ghsa-malware (1dfc8edb1a3ebdf6a94dd7c031b9535b886f14801458f2251b6783fe4feea5ea)
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.

Severity

Not rated by the source.

Dates

Published
2025-05-17 06:38 UTC
Modified
2025-05-28 07:19 UTC

Affected packages and fixes

ts-runtime-compat-check

npm · All systems

Affected

  • introduced 0 (semver)
  • introduced 0.0.0 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: OpenSSF Malicious Packages · Apache-2.0

Sources & licences