solidity-testing-utils@1.2.0
Malicious code in solidity-testing-utils (npm)
Analysis
solidity-testing-utils@1.2.0 is a trojanized clone of the pino logger that installs a remote-code-execution dropper. The package's index.js spawns a detached background node process running lib/caller.js. That script base64-decodes a hardcoded jsonstorage[.]net URL (hxxps://api[.]jsonstorage[.]net/v1/json/2ef8c758-a96f-4e9e-b036-b3b90379a165/f2f8264-86c2-4684-94da-c3f52f5d70f) and fetches it with header x-secret-key: _, then executes the returned payload via the Function constructor with the require function in scope, retrying up to 5 times. The fetched payload is arbitrary attacker-controlled code executed with full Node.js module access.
- analyzed by
- Leitwacht
- first seen
- Aug 22, 2026, 12:46 AM
- analyzed
- Aug 22, 2026, 12:47 AM
Related advisories
- rust-testing-utils@2.3.0
- @pablo_clueless/sniffr@0.1.1
- @httttt/mcp-npx-fetch-1@1.0.0
- mc-provider@1.0.10
- @wizloft/harness-plugin-repository-files@0.1.1-alpha.3
- timed-assess@1.0.0
- space-items@1.0.0
- runtime-health@1.0.1
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.