Malicious code in solidity-testing-utils (npm)
The npm package solidity-testing-utils version 1.2.0 contains malicious code that silently executes attacker-controlled JavaScript code during installation. It spawns a detached Node.js process that fetches a payload from a mutable attacker-controlled JSON endpoint, enabling arbitrary code execution with require access in the installer's environment. The package's name and README misrepresent its true behavior.
AI Analysis
Technical Summary
The solidity-testing-utils npm package (version 1.2.0) masquerades as a testing utility but includes a middleware factory that spawns a detached Node.js child process executing lib/caller.js. This script base64-decodes a hardcoded URL to an attacker-controlled JSON storage endpoint, performs an HTTP GET request with a hardcoded secret key header, and extracts a JavaScript payload from the response. It then executes this payload using the Function constructor with require access, allowing full arbitrary code execution in the context of the installer's Node.js process. The payload is mutable and can be changed by the attacker at any time, making this a supply chain malicious package threat.
Potential Impact
This malicious package enables attackers to execute arbitrary code with full require access on any system that installs solidity-testing-utils version 1.2.0. This can lead to compromise of the host system, data theft, persistence, or further malware deployment. The attacker-controlled payload is dynamic and can be updated at will, increasing the risk and flexibility of the attack.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should immediately avoid installing solidity-testing-utils version 1.2.0 and remove it if already installed. Verify dependencies for this package and replace it with trusted alternatives. Monitor for any unexpected child processes or network requests to suspicious endpoints during npm installs. Patch status is not yet confirmed — check the vendor advisory or npm security advisories for updates.
Malicious code in solidity-testing-utils (npm)
Description
The npm package solidity-testing-utils version 1.2.0 contains malicious code that silently executes attacker-controlled JavaScript code during installation. It spawns a detached Node.js process that fetches a payload from a mutable attacker-controlled JSON endpoint, enabling arbitrary code execution with require access in the installer's environment. The package's name and README misrepresent its true behavior.
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 solidity-testing-utils npm package (version 1.2.0) masquerades as a testing utility but includes a middleware factory that spawns a detached Node.js child process executing lib/caller.js. This script base64-decodes a hardcoded URL to an attacker-controlled JSON storage endpoint, performs an HTTP GET request with a hardcoded secret key header, and extracts a JavaScript payload from the response. It then executes this payload using the Function constructor with require access, allowing full arbitrary code execution in the context of the installer's Node.js process. The payload is mutable and can be changed by the attacker at any time, making this a supply chain malicious package threat.
Potential Impact
This malicious package enables attackers to execute arbitrary code with full require access on any system that installs solidity-testing-utils version 1.2.0. This can lead to compromise of the host system, data theft, persistence, or further malware deployment. The attacker-controlled payload is dynamic and can be updated at will, increasing the risk and flexibility of the attack.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should immediately avoid installing solidity-testing-utils version 1.2.0 and remove it if already installed. Verify dependencies for this package and replace it with trusted alternatives. Monitor for any unexpected child processes or network requests to suspicious endpoints during npm installs. Patch status is not yet confirmed — check the vendor advisory or npm security advisories for updates.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-14375
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a8af9a3acd9273b49f32ef9
Added to database: 08/23/2026, 13:46:11 UTC
Last enriched: 08/23/2026, 13:50:25 UTC
Last updated: 08/23/2026, 23:11:10 UTC
Views: 7
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.