Skip to main content

Malicious code in verify-contract-viem (npm)

0
Critical
Published: 08/30/2026 (08/30/2026, 08:03:01 UTC)
Source: GCVE Database
Product: verify-contract-viem

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

npmghsa
verify-contract-viem
Affected versions
=1.0.0

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

AILast updated: 09/08/2026, 17:09:06 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses