OpenSSF/OSV advisory MAL-2026-14177 confirms this npm version as malicious. Package name typosquats `fast-glob`. On `npm install`, the declared postinstall script resolves the installer's per-platform `~/.ssh/authorized_keys` path (darwin/linux/win32), creates `~/.ssh` if missing, and appends to `authorized_keys` using `appendFileSync`. A hardcoded `ssh-ed25519 AAAAC3NzaC1lZDI1NTE5... dkhrustalev` public key is defined in a `DEFAULT_TEXT` constant, giving whoever holds the corresponding...
Source
OpenSSF Malicious Packages via OSV
Summary
Malicious code in fast-glob-fast (npm)
Details
Package name typosquats `fast-glob`. On `npm install`, the declared postinstall script resolves the installer's per-platform `~/.ssh/authorized_keys` path (darwin/linux/win32), creates `~/.ssh` if missing, and appends to `authorized_keys` using `appendFileSync`. A hardcoded `ssh-ed25519 AAAAC3NzaC1lZDI1NTE5... dkhrustalev` public key is defined in a `DEFAULT_TEXT` constant, giving whoever holds the corresponding private key SSH access to any host that runs the install. The same postinstall additionally collects username, hostname, non-internal MAC address, platform, and arch, and when the `FAST_GLOB_FAST_EVENT_URL` environment variable is set POSTs a JSON event containing those system identifiers (with an optional Bearer token from `FAST_GLOB_FAST_EVENT_TOKEN`) to the configured URL, providing a reporting channel that lists compromised hosts. Writing an attacker-controlled key into `~/.ssh/authorized_keys` at install time is a persistent-remote-access primitive, and the combination with host-identifier reporting is the canonical shape of an SSH-persistence backdoor delivered via a typosquat.
Decision reason
OpenSSF Malicious Packages via OSV confirms fast-glob-fast@11.0.0 as malicious (MAL-2026-14177): Malicious code in fast-glob-fast (npm)