{"id":"MAL-2026-13517","revision":"e047a33b163f4f989d70150f873d2bcf","records":[{"revision":"e047a33b163f4f989d70150f873d2bcf","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-13517","aliases":[],"title":"Malicious code in gas-diff-core (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (9f6244035d2e65cd84c001ff936ebc019b7139c8e2afadfadfd2026c60208e4b)\nOn 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`.\n","state":0,"publishedAt":"2026-08-07T12:09:27+00:00","modifiedAt":"2026-08-07T12:35:19.0264265+00:00","affected":[{"ecosystem":"npm","name":"gas-diff-core","ranges":[],"versions":["1.0.0"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/gas-diff-core/v/1.0.0"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-13517","license":"OSV · upstream source license applies","key":"osv:MAL-2026-13517","identifiers":["MAL-2026-13517"]},"retained":false,"historicalAffected":[]}],"coverage":[]}