Skip to main content
MalwarePublished

gas-diff-core (npm) · Malicious Code

Affects gas-diff-coreSource GCVE Database

0

Malicious package : remove gas-diff-core and rotate any secrets on hosts that installed it.

Data as of 7 Aug 2026, 15:49 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-13517

What to do

Remove gas-diff-core 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
npmgas-diff-coreAffected
  • =1.0.0
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 gas-diff-core version 1.0.0 contains malicious code that, upon being required, executes a script persisting an install timestamp and UUID locally. After 72 hours, it periodically fetches JSON data from a mutable GitHub Gist controlled by an anonymous account unrelated to the package publisher. If the fetched JSON contains a 'c2' key, its value is written to a hidden local file, enabling command-and-control (C2) configuration. The 72-hour delay is designed to evade detection in short-lived environments such as CI pipelines or sandboxes.

References

Community reviews

Loading reviews…