Skip to main content
MalwarePublished

log-res (npm) · Malicious Code

Affects log-resSource GCVE Database

0

Malicious package : remove log-res and rotate any secrets on hosts that installed it.

Data as of 19 Aug 2026, 14:14 UTC

Classification

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

ProductAffectedFixed in
npmlog-resAffected
  • =1.0.3
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.

References

Community reviews

Loading reviews…