# MAL-2026-14177: Malicious code in fast-glob-fast (npm)


- **Type:** Malicious package
- **Package:** `fast-glob-fast` (npm)
- **Published:** 18 Aug 2026

## What is MAL-2026-14177?

MAL-2026-14177 is a malicious package in fast-glob-fast, published on 18 Aug 2026. 

### Official description

fast-glob-fast is a name-squat of the popular fast-glob package (its repository field even points at mrmlnc/fast-glob). The declared postinstall hook `node scripts/postinstall-test.mjs` computes the installer's `~/.ssh/authorized_keys` path per-platform (darwin/linux/win32), creates `~/.ssh` at mode 0700 if missing, and appends to `authorized_keys` at mode 0600 via `appendFileSync`. The same script defines a top-level constant `DEFAULT_TEXT = 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5... dkhrustalev'` — a staged attacker ed25519 public key. Appending any key line to authorized_keys grants passwordless SSH login as the installing user; even though the current build only appends comment lines, the primitive, the target file, and the embedded attacker key together form a persistence/remote-access dropper wired to run automatically on `npm install`. The same postinstall additionally collects `username`, `hostname`, non-internal MAC address, `platform`, and `arch`, and POSTs them as a JSON `systemInfo` event (optionally with a bearer token) to a URL taken from `FAST_GLOB_FAST_EVENT_URL`, reporting the outcome of the authorized_keys write — a reporting channel co-located with the backdoor primitive.

## What should I do about MAL-2026-14177?

Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.

## Fix prompt for AI coding agents

```text
MAL-2026-14177 is a malicious package: fast-glob-fast (npm). Every version was published to cause harm.

Task:
1. Search this repository's dependency manifests and lockfiles for the package, including transitive dependencies.
2. If it is present, remove it, regenerate the lockfile with the project's package manager, and replace whatever it was used for.
3. List any CI runners, developer machines or containers that installed it, so their secrets can be rotated.
4. If the package is not used anywhere, say so and change nothing.

Reference: https://insights.sbomify.com/MAL-2026-14177/ (Markdown: https://insights.sbomify.com/MAL-2026-14177/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/MAL-2026-14177

---
From sbomify Insights: https://insights.sbomify.com/MAL-2026-14177/
Summaries are generated and may contain mistakes; the official description above is the record.
