node-fsmetrics-native (npm) · Malicious Code
Affects node-fsmetrics-nativeSource GCVE Database
Malicious package : remove node-fsmetrics-native and rotate any secrets on hosts that installed it.
Data as of 26 Oct 2026, 15:56 UTC
Malicious package
Published to npm · OSV MAL-2026-10480
What to do
Remove node-fsmetrics-native from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npmnode-fsmetrics-native | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
The node-fsmetrics-native npm package version 1.0.0 contains malicious code that establishes a backdoor to a remote command and control (C2) server. Upon requiring the package, it decodes a URL and continuously polls the server for commands, executing them via bash and sending back the results. Additionally, a native addon component launches a separate thread that redundantly fetches and executes commands from the same server using curl and python3. The C2 server address is obfuscated in both JavaScript and native code to evade detection.