Malicious code in eth-util (npm)
The npm package 'eth-util' is a malicious impersonation of the legitimate '@ethereumjs/util' package. It copies the README, repository URL, badges, contributor list, and API from the legitimate project but injects a hidden dependency 'assert-kit' in the compiled code that executes arbitrary code when required. Installing or running this package can lead to full system compromise, requiring immediate secret and key rotation and package removal.
AI Analysis
Technical Summary
The 'eth-util' package on npm impersonates the legitimate '@ethereumjs/util' by copying its public-facing metadata and API. However, the published npm tarball includes a post-compile injected require statement for 'assert-kit', a dependency not present in the source code. This dependency allows execution of arbitrary top-level code upon requiring 'eth-util'. The 'assert-kit' package is named to mimic Node's built-in 'assert' module and is declared with a caret version range (^4.3.2), enabling the attacker to deliver arbitrary code in future minor or patch updates. This behavior effectively compromises any system that installs or runs 'eth-util'.
Potential Impact
Any system with 'eth-util' version 7.1.5 installed or running is considered fully compromised. The malicious code can execute arbitrary commands with the privileges of the user running the package. This compromises all secrets and keys stored on the system, necessitating immediate rotation from a separate, trusted environment. Removing the package alone may not eliminate all malicious artifacts or backdoors introduced by the attacker.
Mitigation Recommendations
Remove the 'eth-util' package version 7.1.5 immediately from all affected systems. Rotate all secrets, keys, and credentials that were stored or used on compromised systems from a secure, uncompromised environment. Monitor for any signs of persistent compromise or additional malicious software. There is no official patch or fix since this is a malicious package impersonation; prevention involves avoiding installation of this package and verifying package authenticity before use.
Malicious code in eth-util (npm)
Description
The npm package 'eth-util' is a malicious impersonation of the legitimate '@ethereumjs/util' package. It copies the README, repository URL, badges, contributor list, and API from the legitimate project but injects a hidden dependency 'assert-kit' in the compiled code that executes arbitrary code when required. Installing or running this package can lead to full system compromise, requiring immediate secret and key rotation and package removal.
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 'eth-util' package on npm impersonates the legitimate '@ethereumjs/util' by copying its public-facing metadata and API. However, the published npm tarball includes a post-compile injected require statement for 'assert-kit', a dependency not present in the source code. This dependency allows execution of arbitrary top-level code upon requiring 'eth-util'. The 'assert-kit' package is named to mimic Node's built-in 'assert' module and is declared with a caret version range (^4.3.2), enabling the attacker to deliver arbitrary code in future minor or patch updates. This behavior effectively compromises any system that installs or runs 'eth-util'.
Potential Impact
Any system with 'eth-util' version 7.1.5 installed or running is considered fully compromised. The malicious code can execute arbitrary commands with the privileges of the user running the package. This compromises all secrets and keys stored on the system, necessitating immediate rotation from a separate, trusted environment. Removing the package alone may not eliminate all malicious artifacts or backdoors introduced by the attacker.
Mitigation Recommendations
Remove the 'eth-util' package version 7.1.5 immediately from all affected systems. Rotate all secrets, keys, and credentials that were stored or used on compromised systems from a secure, uncompromised environment. Monitor for any signs of persistent compromise or additional malicious software. There is no official patch or fix since this is a malicious package impersonation; prevention involves avoiding installation of this package and verifying package authenticity before use.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-6201
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-fq6v-3gxv-7rjv"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a50ba8768715ace43581c24
Added to database: 07/10/2026, 09:25:27 UTC
Last enriched: 07/10/2026, 10:05:40 UTC
Last updated: 07/27/2026, 15:06:18 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.