fast-glob-fastnpm
fast-glob-fast is a confirmed malicious npm package (MAL-2026-14177) that steals credentials and exfiltrates sensitive data (malicious versions 0.2.0, 4.0.1, 8.0.0…). Do not install it — remove it immediately and rotate any exposed credentials.
Malicious code in fast-glob-fast (npm)
What this malware does
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.
Malicious versions
Indicators of compromise (SHA-256)
Detection & response playbook
Credential / info stealerFind it
Search your lockfiles and build artifacts for fast-glob-fast (6 malicious versions).
If you installed it — respond
fast-glob-fast is built to steal secrets, so assume every credential the build or runtime could read is compromised. Remove it from your project and lockfile, then rotate ALL exposed secrets — npm/registry tokens, cloud keys, CI/CD secrets, SSH keys, and any .env values — from a known-clean machine. Audit logs for unauthorized use of those credentials.
Did it already run?
If fast-glob-fast was installed, its post-install payload may already have run. Removing the package does not undo that — check outbound connections and credential use from the install window onward.
Frequently asked questions
Campaign
References
Credits
- Amazon Inspector · finder
Detect & block this
O3 blocks fast-glob-fast-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the credential exfiltration and severs the channel.