-= Per source details. Do not edit below this line.=-
package.json declares scripts.postinstall = 'node dist/config.js'. On npm install, dist/config.js performs an outbound fetch to https://my-api.trade-api.workers.dev?id=1 and executes globalThisdata.success using the function name and argument returned by that endpoint. The script also assigns createRequire onto globalThis prior to the dispatch, broadening the set of callable capabilities. The advertised purpose of the package is an in-memory keyed cache with TTL/LRU, which has no need for install-time network I/O; the postinstall behavior is unrelated to the documented library API. The result is remote-controlled code execution on the installer's host at install time, driven by an attacker-controlled Cloudflare Workers endpoint.
{
"malicious-packages-origins": [
{
"source": "amazon-inspector",
"modified_time": "2026-08-05T13:05:47Z",
"sha256": "8a1686ccd2fe10f98a3bf6144a0ad556b15b0f788e2395fe4808d708446ba722",
"id": "IN-MAL-2026-014880",
"versions": [
"1.1.3"
],
"import_time": "2026-08-05T13:08:52.707852096Z"
},
{
"import_time": "2026-08-05T16:13:47.02003218Z",
"modified_time": "2026-08-05T15:51:47Z",
"sha256": "b46158a22660530396839a18b8e67b088f4278eb79b7aca76df2dddd5d606a52",
"id": "IN-MAL-2026-015804",
"versions": [
"1.1.2"
],
"source": "amazon-inspector"
}
]
}[
{
"name": "Embedded Malicious Code",
"cweId": "CWE-506",
"description": "The product contains code that appears to be malicious in nature."
},
{
"name": "Embedded Malicious Code",
"description": "The product contains code that appears to be malicious in nature.",
"cweId": "CWE-506"
}
]
{
"package_integrity": [
{
"hashes": {
"sha512_sri": "sha512-yRaJoregv4E7WjwIdlFGY74Gh0REPsLiJ1CFz+aq8AcNyBE3P6oO/95pDTu8GEnLSd0aiDdjSbmAm4WpoWTc3A==",
"sha1": "a88877b65844df193ad858d1b2643cdf041def12"
},
"filename": "croft-node-1.1.3.tgz"
}
],
"evidence_files": [
{
"path": "dist/config.js",
"sha256": "468107aa1d7f04ad4739740c5c0a41c84716a4952b991372404fd0748a206a50",
"tlsh": "e2d0977bc38da128681070ddd0090620b083e5228b2e880bea1deed19cd5820ea00130"
},
{
"path": "package.json",
"sha256": "f291141dab25370d6cb1c5f545a3f2a3636ca12bb32cdc604185819f514f4a24",
"tlsh": "2a01f93bc9a48e3318f49ba6ac264705f6710f1f12545d0bb0bb101c0ff629204abb79"
}
]
}
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/croft-node/MAL-2026-12358.json"