registry  /  evm-typechain  /  0.5.4

evm-typechain@0.5.4

OSV Malicious Advisory

scanned 4h ago · by OpenSSF/OSV

OpenSSF/OSV advisory MAL-2026-6932 confirms this npm version as malicious. On require, index.js issues an HTTPS GET to https://www.jsonkeeper.com/b/PC5CK, passes the returned JSON `cookie` field to `new Function('require',...)`, and invokes it with the real `require` capability. The invocation is concealed at the end of index.js behind a long run of tab whitespace on the same line as `module.exports = leanhooksPlugin;`, and the file carries a false `Mongoose LeanHooks Plugin` header that...

Advisory
MAL-2026-6932
Source
OpenSSF Malicious Packages via OSV
Summary
Malicious code in evm-typechain (npm)
Details
On require, index.js issues an HTTPS GET to https://www.jsonkeeper.com/b/PC5CK, passes the returned JSON `cookie` field to `new Function('require',...)`, and invokes it with the real `require` capability. The invocation is concealed at the end of index.js behind a long run of tab whitespace on the same line as `module.exports = leanhooksPlugin;`, and the file carries a false `Mongoose LeanHooks Plugin` header that does not match the package's advertised purpose. The remote content is attacker-mutable (unpinned, no hash/signature) and executes with full module-loading capability, giving arbitrary remote code execution in any Node.js process that imports the package. The package name and description impersonate the widely used TypeChain project (`type-safe bindings for Ethereum smart contracts`), while the shipped code is an unrelated Mongoose plugin stub bolted to the remote loader; the repository URL (`drudge/evm-typeschain`) is a spelling mismatch. This is a typosquat lure fronting an import-time RCE dropper. ## Source: ghsa-malware (7f309e50be1b9923d440673fba72e6c345b370828f8d8a0e313afb6d6d2e96f0) Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
Decision reason
OpenSSF Malicious Packages via OSV confirms evm-typechain@0.5.4 as malicious (MAL-2026-6932): Malicious code in evm-typechain (npm)

Source & flagged code

0 flagged
No flagged code excerpts are attached to this scan.

Findings

1 High
HighOsv Malicious Advisory