Malicious code in web3-eth-util (npm)
The web3-eth-util npm package version 6.2.8 is a malicious package impersonating the legitimate ethereumjs-util package. It copies legitimate metadata and README content but injects a hidden runtime dependency on a third-party package 'assertcore' only in the Node.js build, which is not present in the source repository. This dependency-chain dropper pattern delivers attacker-controlled code with full privileges when the package is installed and imported. Systems with this package installed should be considered fully compromised.
AI Analysis
Technical Summary
The malicious web3-eth-util package version 6.2.8 impersonates the legitimate ethereumjs-util package by copying its README, contributor list, and repository URL, but is published under a different name and ownership. The package's Node-targeted build injects a require call to 'assertcore', a third-party package resembling a typosquat of the standard 'assert' module, which is not present in the legitimate source code or browser build. This hidden dependency is loaded at runtime, enabling attacker-controlled code execution on any system that installs and imports this package. This is a dependency-chain dropper attack delivering malicious code via npm.
Potential Impact
Any computer with web3-eth-util version 6.2.8 installed or running is considered fully compromised. The malicious code runs with full privileges in the Node.js environment, potentially exposing all secrets and keys stored on the system. Removal of the package does not guarantee full remediation as the attacker may have established persistent control or installed additional malware.
Mitigation Recommendations
Remove the web3-eth-util package version 6.2.8 immediately. Rotate all secrets and keys from a secure, uncompromised environment. Because the package delivers attacker-controlled code with full privileges, assume full system compromise and conduct a thorough incident response. Patch status is not applicable as this is a malicious package impersonation rather than a vulnerability with a vendor fix. Avoid installing packages with suspicious metadata or unexpected dependencies.
Malicious code in web3-eth-util (npm)
Description
The web3-eth-util npm package version 6.2.8 is a malicious package impersonating the legitimate ethereumjs-util package. It copies legitimate metadata and README content but injects a hidden runtime dependency on a third-party package 'assertcore' only in the Node.js build, which is not present in the source repository. This dependency-chain dropper pattern delivers attacker-controlled code with full privileges when the package is installed and imported. Systems with this package installed should be considered fully compromised.
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 malicious web3-eth-util package version 6.2.8 impersonates the legitimate ethereumjs-util package by copying its README, contributor list, and repository URL, but is published under a different name and ownership. The package's Node-targeted build injects a require call to 'assertcore', a third-party package resembling a typosquat of the standard 'assert' module, which is not present in the legitimate source code or browser build. This hidden dependency is loaded at runtime, enabling attacker-controlled code execution on any system that installs and imports this package. This is a dependency-chain dropper attack delivering malicious code via npm.
Potential Impact
Any computer with web3-eth-util version 6.2.8 installed or running is considered fully compromised. The malicious code runs with full privileges in the Node.js environment, potentially exposing all secrets and keys stored on the system. Removal of the package does not guarantee full remediation as the attacker may have established persistent control or installed additional malware.
Mitigation Recommendations
Remove the web3-eth-util package version 6.2.8 immediately. Rotate all secrets and keys from a secure, uncompromised environment. Because the package delivers attacker-controlled code with full privileges, assume full system compromise and conduct a thorough incident response. Patch status is not applicable as this is a malicious package impersonation rather than a vulnerability with a vendor fix. Avoid installing packages with suspicious metadata or unexpected dependencies.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-6325
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-g69q-p7f8-4jp3"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a577eea68715ace43b41279
Added to database: 07/15/2026, 12:36:58 UTC
Last enriched: 07/15/2026, 12:53:05 UTC
Last updated: 07/25/2026, 18:02:20 UTC
Views: 6
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.