{"id":"MAL-2026-13516","revision":"780d7d04ae30431fbb4aeef0f7b3b9ae","records":[{"revision":"780d7d04ae30431fbb4aeef0f7b3b9ae","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-13516","aliases":[],"title":"Malicious code in forge-gas-diff (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (4b1f6143f5a7c6106ab4ba0a21a6adaf9020e332835b1e528de6f36b64537734)\nindex.js is advertised as a Foundry gas-report diff utility but on module load / CLI run schedules a setTimeout of 259,200,000 ms (3 days) that calls https.get against https://gist.githubusercontent.com/opensource-crypto/3946ef88aa057c9d10f1a7d80391d164/raw/default.json. The gist is hosted on a GitHub account (opensource-crypto) unrelated to the declared package publisher (danird9). If the fetched JSON contains a `c2` field, the value is persisted to ~/.forge-gas-diff.remote for later use. A separate getInstallId() routine writes a per-host UUID to ~/.forge-gas-diff, providing a stable install fingerprint. None of this behavior — outbound network fetch, install-ID generation, remote-config persistence, or a field literally named `c2` — has any relationship to the advertised gas-diff functionality and is not documented in the package. The gist is author-mutable, so the content delivered to installers can be changed at any time without republishing the package; the 3-day delay places the fetch well outside typical install-time sandboxing windows. The mechanism is the staging half of a remote-config-driven dropper: a hidden update channel keyed to attacker-editable content on a third-party host, with persistence to a well-known filesystem path on the installer's machine.\n","state":0,"publishedAt":"2026-08-07T12:09:35+00:00","modifiedAt":"2026-08-08T01:04:58.8063892+00:00","affected":[{"ecosystem":"npm","name":"forge-gas-diff","ranges":[],"versions":["1.0.0","1.0.1"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/forge-gas-diff/v/1.0.0","https://www.npmjs.com/package/forge-gas-diff/v/1.0.1"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-13516","license":"OSV · upstream source license applies","key":"osv:MAL-2026-13516","identifiers":["MAL-2026-13516"]},"retained":false,"historicalAffected":[]}],"coverage":[]}