Gas usage diff between commits for Foundry projects
This report shows the evidence for forge-gas-diff@1.0.1. 2 of 2 known versions are blocked or flagged.
Blocked by malware advisory
OpenSSF/OSV malware advisory MAL-2026-13516 identifies this version as malicious and supplies the Firewall block. LPM AI assessed this version as suspicious; the assessments disagree.
What to do: remove this version and, if it ran, rotate the credentials it could reach. Remediation↓
OpenSSF/OSV malicious advisory
published · by OpenSSF/OSV
OpenSSF/OSV advisory MAL-2026-13516 confirms this npm version as malicious.
Advisory
MAL-2026-13516
Source
OpenSSF Malicious Packages via OSV
Summary
Malicious code in forge-gas-diff (npm)
Details
index.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.
LPM's AI review found this version suspicious. That disagrees with the OpenSSF/OSV advisory, which supplies the block.
The package has no install hook or observed execution/exfiltration chain, but its import-time delayed fetch and hidden remote-config persistence are not aligned with gas-report parsing. Treat as an inert staged payload carrier.
Static reason
No blocking static signals were detected.
Trigger
Import or CLI invocation that loads index.js and remains alive for three days.
Impact
Creates a remotely controlled local payload/config carrier; no active payload execution confirmed.
Mechanism
Delayed remote configuration retrieval and local staging.
AI called this Suspicious at 94.0% confidence as Dangerous Capability with low false-positive risk.
Evidence for AI warning decision
index.js schedules a hidden remote-config fetch on import.
Fetched JSON with config.c2 is written to ~/.forge-gas-diff.remote.
The endpoint is unrelated to gas-report parsing and delayed three days.
index.js creates a persistent UUID at ~/.forge-gas-diff.
Evidence against
package.json has no lifecycle scripts.
No child-process, eval, payload execution, credential harvesting, or exfiltration is present.
Remote config is stored but not consumed by this package.
Behavioral surface
SourceCrypto · Filesystem · Network
Supply chainHigh entropy strings · URL strings
ManifestNo manifest risk signals triggered.
Scanned 1 file · 3.56 KB of source
1 external domain referenced
gist.githubusercontent.com
Findings
4 high · 1 medium · 3 low
Where they are, most severe file first.
Package metadata4 high · 1 medium · 3 low
Show all 8 findings
Package metadata8 findings
HighAI review evidence
HighAI review evidence
HighAI review evidence
HighAI review evidence
MediumNetwork
LowFilesystem
LowHigh entropy strings
LowURL strings
No flagged code excerpts are attached to this scan.
Affected versions and remediation
This report applies to forge-gas-diff@1.0.1.
The versions list below shows the verdict for each recorded version.
Avoid installing forge-gas-diff@1.0.1. Remove it from direct dependencies and check your lockfile for transitive copies.
Choose an independently verified alternative or release. This report does not establish that other versions are safe.
If this version ran, investigate the affected machine and build environment. Rotate credentials it could access and rebuild from a trusted environment.