Skip to main content

Malicious code in hardhat-zet (npm)

0
High
Published: 09/28/2026 (09/28/2026, 22:07:01 UTC)
Source: GCVE Database
Product: hardhat-zet

Description

The npm package [email protected] is a malicious typosquatting package targeting Ethereum developers. It impersonates the Hardhat tooling ecosystem by using a similar name but includes a README and documentation copied from an unrelated popular package (pino). The package exports a no-op middleware but contains a large, heavily obfuscated payload that executes automatically upon import. This payload is designed to hide its true behavior and is suspected to be a supply-chain stealer aimed at compromising developers using the Hardhat ecosystem.

Affected software

npmghsa
hardhat-zet
Affected versions
=2.0.1

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/29/2026, 04:47:10 UTC

Technical Analysis

[email protected] is a malicious npm package that impersonates the Hardhat Ethereum tooling ecosystem by using a similar name and copying documentation from the unrelated pino logger project. The package exports a no-op Express middleware but includes a 4.5 MB obfuscated JavaScript bundle that executes automatically when the package is required. This bundle uses string rotation, hex encoding, and control-flow flattening to conceal its behavior and destination URLs. The publisher metadata does not match Hardhat or pino identities, indicating a typosquatting and supply-chain attack targeting Ethereum developers.

Potential Impact

The package executes a large obfuscated payload automatically on import, which is not observable without deobfuscation. This behavior suggests it could steal sensitive information or perform malicious actions on developers' systems who install or require this package. The impersonation and obfuscation increase the risk of supply-chain compromise for Ethereum development environments.

Mitigation Recommendations

No official patch or remediation is indicated. Users should avoid installing or requiring [email protected]. Verify package authenticity before installation, especially for packages related to critical development ecosystems like Ethereum. Use trusted sources and official package names to prevent typosquatting attacks.

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

Threat ID: 6abb4186f7a7c54106cc2f86

Added to database: 09/29/2026, 04:41:42 UTC

Last enriched: 09/29/2026, 04:47:10 UTC

Last updated: 09/29/2026, 18:01:01 UTC

Views: 4

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