Malicious code in fast-glob-fast (npm)
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (7695ac02a2492bbf3118fc68514378edb201a93183f2dcb0035727781f31d408) 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.
AI Analysis
Technical Summary
The fast-glob-fast package is a typosquatting malicious npm package that executes a postinstall script to compromise the host. The script determines the platform-specific path to the ~/.ssh/authorized_keys file, creates the ~/.ssh directory if missing, and appends a hardcoded SSH public key, enabling persistent remote access. It also collects system information such as username, hostname, MAC address, platform, and architecture. If the environment variable FAST_GLOB_FAST_EVENT_URL is set, it sends this information as a JSON payload to a remote URL, optionally including a Bearer token from FAST_GLOB_FAST_EVENT_TOKEN. This combination of SSH backdoor installation and host reporting constitutes a persistent remote access threat delivered through a typosquatting attack.
Potential Impact
Systems that install the fast-glob-fast package version 9.0.0 or 11.0.0 may have an unauthorized SSH public key added to their authorized_keys file, allowing attackers with the corresponding private key to gain persistent remote access. The package also exfiltrates system identifiers to a remote server if configured, potentially exposing compromised hosts to the attacker. This compromises host confidentiality and integrity by enabling stealthy remote control.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should avoid installing the fast-glob-fast package, which is a known typosquatting malicious package. Remove the package if installed, and inspect and clean the ~/.ssh/authorized_keys file to remove the unauthorized SSH key. Monitor for suspicious environment variables (FAST_GLOB_FAST_EVENT_URL and FAST_GLOB_FAST_EVENT_TOKEN) and network connections related to this threat. Patch status is not yet confirmed — check vendor advisories or npm security advisories for updates.
Malicious code in fast-glob-fast (npm)
Description
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (7695ac02a2492bbf3118fc68514378edb201a93183f2dcb0035727781f31d408) 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.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The fast-glob-fast package is a typosquatting malicious npm package that executes a postinstall script to compromise the host. The script determines the platform-specific path to the ~/.ssh/authorized_keys file, creates the ~/.ssh directory if missing, and appends a hardcoded SSH public key, enabling persistent remote access. It also collects system information such as username, hostname, MAC address, platform, and architecture. If the environment variable FAST_GLOB_FAST_EVENT_URL is set, it sends this information as a JSON payload to a remote URL, optionally including a Bearer token from FAST_GLOB_FAST_EVENT_TOKEN. This combination of SSH backdoor installation and host reporting constitutes a persistent remote access threat delivered through a typosquatting attack.
Potential Impact
Systems that install the fast-glob-fast package version 9.0.0 or 11.0.0 may have an unauthorized SSH public key added to their authorized_keys file, allowing attackers with the corresponding private key to gain persistent remote access. The package also exfiltrates system identifiers to a remote server if configured, potentially exposing compromised hosts to the attacker. This compromises host confidentiality and integrity by enabling stealthy remote control.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should avoid installing the fast-glob-fast package, which is a known typosquatting malicious package. Remove the package if installed, and inspect and clean the ~/.ssh/authorized_keys file to remove the unauthorized SSH key. Monitor for suspicious environment variables (FAST_GLOB_FAST_EVENT_URL and FAST_GLOB_FAST_EVENT_TOKEN) and network connections related to this threat. Patch status is not yet confirmed — check vendor advisories or npm security advisories for updates.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-14177
- Osv Schema Version
- 1.7.4
- Ecosystems
- ["npm"]
Threat ID: 6a84fa65c6e8be0332ef130b
Added to database: 08/19/2026, 00:35:49 UTC
Last enriched: 08/19/2026, 00:50:42 UTC
Last updated: 10/02/2026, 19:51:31 UTC
Views: 109
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.