-= Per source details. Do not edit below this line.=-
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.
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.
{
"malicious-packages-origins": [
{
"sha256": "7f309e50be1b9923d440673fba72e6c345b370828f8d8a0e313afb6d6d2e96f0",
"id": "GHSA-c4gm-jp6q-h9hq",
"import_time": "2026-07-07T16:09:37.848214753Z",
"modified_time": "2026-07-07T15:46:14Z",
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
}
]
}
],
"source": "ghsa-malware"
},
{
"versions": [
"0.5.4"
],
"id": "IN-MAL-2026-009287",
"modified_time": "2026-07-09T15:55:33Z",
"import_time": "2026-07-09T16:20:57.563784856Z",
"sha256": "0a78b4d04410e295cbe340c95e6800a0777717d46ce136f0c30b5593d1bd9738",
"source": "amazon-inspector"
}
]
}{
"evidence_files": [
{
"tlsh": "ac61aa7865bad601a53332f18cf61246dab5c037054a90d9fcaec2d4ab30814196fff8",
"sha256": "384918838cd2130c625021673c2fd038d1254f85fdfee8009231781f7c0b41f3",
"path": "index.js"
},
{
"sha256": "0c73720d1afcf851879c79e0a179b9910efacbcdaee2db16d28a5f72d06fbeac",
"tlsh": "b8014940e935dd730adc65925c2e41a7a1349c0b8d04fc1e33d6876d8f5e42f16b9a5d",
"path": "package.json"
}
]
}
[
{
"cweId": "CWE-506",
"name": "Embedded Malicious Code",
"description": "The product contains code that appears to be malicious in nature."
},
{
"name": "Embedded Malicious Code",
"cweId": "CWE-506",
"description": "The product contains code that appears to be malicious in nature."
}
]
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/evm-typechain/MAL-2026-6932.json"