Skip to main content

Malicious code in generate-schema-viem (npm)

0
Critical
Published: 08/30/2026 (08/30/2026, 07:59:20 UTC)
Source: GCVE Database
Product: generate-schema-viem

Description

The npm package 'generate-schema-viem' version 1.0.0 is identified as malicious. It publishes a binary named 'generate-schema-ethers' which, when executed, collects system information including the current user, hostname, and platform, and sends this data to a hardcoded attacker-controlled endpoint. This behavior constitutes a severe security risk as it leaks sensitive environment details to an external entity. The package is considered fully compromising to any system on which it is installed or run.

Affected software

npmghsa
generate-schema-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, 16:39:06 UTC

Technical Analysis

The 'generate-schema-viem' npm package (version 1.0.0) masquerades as a legitimate package but contains malicious code. It exposes a CLI binary 'generate-schema-ethers' that executes the 'whoami' command, reads the operating system hostname and platform, and sends this information via an HTTP POST request to a hardcoded external URL controlled by an attacker. This represents a dependency confusion or typosquatting attack vector. The package's manifest itself labels it as an out-of-band callback, confirming its malicious intent. The OpenSSF Package Analysis and other sources have flagged this package as malicious due to its communication with a known malicious domain and execution of suspicious commands.

Potential Impact

Installation or execution of this package results in leakage of sensitive system information (user identity, hostname, platform) to an attacker-controlled endpoint. According to the analysis, any computer with this package installed or running should be considered fully compromised, implying potential unauthorized control or presence of additional malicious software. All secrets and keys on affected systems are at risk and should be rotated immediately from a secure environment. Removal of the package alone may not fully remediate the compromise.

Defensive Guidance

Immediate removal of the 'generate-schema-viem' package version 1.0.0 is recommended. All credentials, secrets, and keys stored on affected systems should be rotated from a different, trusted machine. Due to the potential full compromise of the system, a thorough security assessment and possible system rebuild may be necessary. No official patch or fix is available; the package itself is malicious and should be avoided entirely.

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-15595
Osv Schema Version
1.7.4
Ecosystems
["npm"]

Threat ID: 6a95a110acd9273b4947f6ef

Added to database: 08/31/2026, 15:43:12 UTC

Last enriched: 09/08/2026, 16:39:06 UTC

Last updated: 10/04/2026, 02:45:14 UTC

Views: 54

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