MAL-2026-13517 Malicious code in gas-diff-core (npm)
Malicious package
Published
MAL-2026-13517 is a malicious package: gas-diff-core (npm). Every version was published to cause harm.
Task:
1. Search this repository's dependency manifests and lockfiles for the package, including transitive dependencies.
2. If it is present, remove it, regenerate the lockfile with the project's package manager, and replace whatever it was used for.
3. List any CI runners, developer machines or containers that installed it, so their secrets can be rotated.
4. If the package is not used anywhere, say so and change nothing.
Reference: https://insights.sbomify.com/MAL-2026-13517/ (Markdown: https://insights.sbomify.com/MAL-2026-13517/index.md)
- Package
- gas-diff-core
- Registry
- npm
What is MAL-2026-13517?
MAL-2026-13517 is a malicious package in gas-diff-core, published on 7 Aug 2026.
Official description
On require(), index.js runs an IIFE that persists an install timestamp and UUID under ~/.forge/gas-diff.json. After 72 hours have elapsed since first install, and at most once per 24 hours thereafter, it fetches JSON from https://gist.githubusercontent.com/opensource-crypto/3946ef88aa057c9d10f1a7d80391d164/raw/default.json and, when the response contains a
c2 key, writes that value to a hidden ~/.forge/.remote file. The gist is hosted under an anonymous GitHub account unrelated to the package publisher and is mutable — its contents can be swapped by the gist owner at any time to stage arbitrary command-and-control configuration on installer hosts. The 72-hour dormancy window suppresses the network activity in CI, install-time sandboxes, and short-lived analysis environments, and the destination field is literally named c2 and stored in a dotfile named .remote.What should I do about MAL-2026-13517?
Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.