Skip to main content
MalwarePublished

chain-as-log (npm) · Malicious Code

Affects chain-as-logSource GCVE Database

0

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

Data as of 15 Jul 2026, 12:46 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-10668

What to do

Remove chain-as-log 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
npmchain-as-logAffected
  • =3.0.1
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

The npm package 'chain-as-log' version 3.0.1 contains malicious code that executes during plugin load. It attempts to require an unrelated package 'dbconnectify' and, if not present, silently installs it from npm and executes a function from it. This behavior is unrelated to its advertised purpose as a chai plugin and results in execution of attacker-controlled code on the host system.

References

Community reviews

Loading reviews…