Malicious code in verify-contract-viem (npm)
Description
The npm package 'verify-contract-viem' version 1.0.0 contains malicious code that executes system commands and collects host information, sending it to an attacker-controlled Cloudflare Workers URL. This behavior occurs when the CLI is invoked, transmitting sensitive host identifiers without user consent or disclosure. The package is considered fully compromising to any system where it is installed or run.
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-viem' npm package version 1.0.0 includes a malicious CLI script (bin/cli.js) that executes the 'whoami' command and gathers system information such as hostname, user info, and platform. It then sends this data via HTTP POST to a hardcoded, attacker-controlled Cloudflare Workers endpoint unrelated to the package's purported function. This out-of-band communication pattern is typical of reconnaissance beacons used in dependency confusion or typosquatting attacks. The package is flagged as malicious by multiple sources including Amazon Inspector, GHSA malware advisories, and the OpenSSF Package Analysis project.
Potential Impact
Any system with this package installed or executed is considered fully compromised. The attacker gains access to sensitive system identifiers and potentially full control over the host. All secrets and keys stored on the compromised system should be assumed exposed and must be rotated immediately from a secure environment. Removing the package alone may not eliminate all malicious artifacts or backdoors introduced by the package.
Defensive Guidance
Remove the 'verify-contract-viem' package version 1.0.0 immediately from all affected systems. Rotate all secrets, keys, and credentials that were stored or accessible on the compromised hosts from a clean, trusted environment. Conduct a thorough investigation for additional persistence mechanisms or malware that may have been installed. There is no official patch or fix available; remediation relies on removal and credential rotation.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-15599
- Osv Schema Version
- 1.7.4
- Ecosystems
- ["npm"]
Threat ID: 6a95a110acd9273b4947f6ed
Added to database: 08/31/2026, 15:43:12 UTC
Last enriched: 09/08/2026, 17:09:06 UTC
Last updated: 10/01/2026, 22:35:51 UTC
Views: 53
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.