log-res (npm) · Malicious Code
Affects log-resSource GCVE Database
Malicious package : remove log-res and rotate any secrets on hosts that installed it.
Data as of 19 Aug 2026, 14:14 UTC
Malicious package
Published to npm · OSV MAL-2026-14292
What to do
Remove log-res 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 |
|---|---|---|
| npmlog-res | 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 log-res npm package version 1.0.3 contains malicious code embedded in an obfuscated JavaScript blob disguised as a database file (des.db). This code creates a temporary directory, installs additional dependencies, and runs a staged payload that connects to an attacker-controlled remote agent via socket.io-client. The package's advertised functionality does not require this embedded executable, indicating intentional malicious behavior.