fast-glob-fast@8.0.0
Malicious code in fast-glob-fast (npm)
Analysis
The package's postinstall hook (scripts/postinstall-test.mjs) runs on install and plants a persistent SSH backdoor. It fingerprints the host (username, hostname, MAC address, platform, architecture) and appends a hardcoded attacker-controlled ssh-ed25519 public key (key comment "dkhrustalev") to the user's ~/.ssh/authorized_keys file on macOS, Linux, and Windows, granting the attacker remote SSH access to the machine. If the FAST_GLOB_FAST_EVENT_URL environment variable is set, it additionally POSTs the collected system information and a UUID to that URL. The package name is a combosquat of the legitimate fast-glob library.
- analyzed by
- Leitwacht
- first seen
- Aug 18, 2026, 08:34 AM
- analyzed
- Aug 18, 2026, 08:34 AM
Related advisories
- app-api-sdk@2.1.7
- app-hsu-layer@2.1.6
- nagixjs@2.1.6
- api-node-sdk@2.1.6
- api-rust-sdk@2.1.6
- app-svm-layer@2.1.6
- app-soda-layer@2.1.6
- app-sima-layer@2.1.6
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.