Malicious code in verify-contract-ethers (npm)
Description
The npm package 'verify-contract-ethers' version 1.0.0 is identified as malicious. It contains a binary named 'fuels-typegen' that executes the 'whoami' command and sends the package name, username, hostname, and platform information to a hardcoded external Cloudflare Workers URL. The package exhibits behavior consistent with typosquatting or dependency confusion and lacks legitimate functionality beyond data exfiltration.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The 'verify-contract-ethers' npm package (version 1.0.0) includes a malicious binary 'fuels-typegen' that, when run, executes the 'whoami' command and posts sensitive system information including package name, username, hostname, and platform to a hardcoded external callback URL hosted on Cloudflare Workers. The package name and binary name mismatch suggests an attempt at typosquatting or dependency confusion targeting legitimate packages such as 'fuels-typegen' or 'verify-contract'. The package's declared description openly admits to this data exfiltration behavior and contains no legitimate functionality. This behavior was identified by multiple sources including Amazon Inspector, the OpenSSF Package Analysis project, and the GitHub Security Advisory malware database.
Potential Impact
Any system with this package installed or running should be considered fully compromised. The package exfiltrates sensitive system information to an attacker-controlled endpoint, potentially enabling further malicious activity. All secrets and keys stored on the compromised system should be rotated immediately from a separate, trusted environment. Removal of the package alone may not fully remediate the compromise due to potential additional malicious software installed.
Defensive Guidance
Immediate removal of the 'verify-contract-ethers' package version 1.0.0 is recommended. All secrets, credentials, and keys stored on the affected system should be rotated from a different, secure machine. Because the package grants potential full control to an attacker, a full system compromise should be assumed, and incident response procedures including forensic analysis and system rebuilds should be considered. There is no official patch or fix available; remediation relies on removal and secret rotation.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-15598
- Osv Schema Version
- 1.7.4
- Ecosystems
- ["npm"]
Threat ID: 6a95a110acd9273b4947f6e7
Added to database: 08/31/2026, 15:43:12 UTC
Last enriched: 09/08/2026, 17:23:01 UTC
Last updated: 10/04/2026, 05:59:55 UTC
Views: 49
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.