目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1359 元

100%
← 返回恶意软件包
npm active

crypto-promiser

MAL-2026-7010
2026-07-10 03:25:24
OpenSSF Malicious Packages
该软件包被识别为恶意包。建议隔离受影响环境,并排查凭据泄露和异常网络连接。

Summary

Malicious code in crypto-promiser (npm)

凭据/密钥窃取安装阶段执行文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
8
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmcrypto-promiser*
npmcrypto-promiser1.0.1
npmcrypto-promiser1.0.2
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-07-10T03:25:24Z","published":"2026-07-08T17:31:26Z","schema_version":"1.7.4","id":"MAL-2026-7010","aliases":["GHSA-pgcc-398f-7cv2"],"summary":"Malicious code in crypto-promiser (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (25594e7865a7525aebefd2f1fcc8060f144bf202b1986875e1cfd95564f66e88)\ncrypto-promiser@1.0.1 is a typosquat of the legitimate crypto-promise package that ships a dropper in its lifecycle scripts. The declared postinstall runs prepinstall.js, which decodes a base64-hidden URL (aHR0cHM6Ly9qc29ua2VlcGVyLmNvbS9iL1dEVDFI -> https://jsonkeeper.com/b/WDT1H) via atob, fetches JSON from that anonymous paste host with axios, and pipes the `.cache` field of the response into a detached `node` child process over stdin, executing attacker-controlled JavaScript on npm install. index.js also contains a top-level IIFE that dynamically imports./prepinstall.js, causing the same fetch-and-exec to fire when the package is require()d or imported. The package name is a single-character edit of crypto-promise and mirrors its API surface (hash, hmac, cipher, pbkdf2) as a lure. The remote payload host is anonymous and mutable, the destination is obfuscated behind base64, and executed bytes come from a non-registry third-party paste — arbitrary code execution on the installer machine at install time and at require time.\n\n## Source: ghsa-malware (e30fe05ab2f65365185bab693328d0249c8a6dd2366359ffb1e7184d7d5a61e9)\nAny 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.\n","affected":[{"package":{"ecosystem":"npm","name":"crypto-promiser"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.0.1","1.0.2"],"database_specific":{"cwes":[{"cweId":"CWE-506","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.","name":"Embedded Malicious Code"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":"prepinstall.js","sha256":"06b348bcac3ed4669e7f9f50522440b5598a044daf06fb8b46d2de310108fc5e","tlsh":"41e02b5f313767791f700ed49832c6768d12a020f6c2d1e0a51a80576987746014bfe8"},{"path":"index.js","sha256":"72c465459ec2b1ccce5cee1a8357a218107a7da7198a3c396acdc3ac5abc51e5","tlsh":"6b01d8497efcf0d703d1a0d7453bfb81ed92b0a3b2008b65938bea5cc5e1168c93a594"},{"path":"package.json","sha256":"1c951f6f26ba91c72733e967984d8b2d7947df24b604357ae09f3e9a6a13fbc3","tlsh":"74019c96cc68d9772bc421f26c7a110bf620584b4918fc0a7387860c4bce8bb41bd26d"}],"package_integrity":[{"filename":"crypto-promiser-1.0.1.tgz","hashes":{"sha1":"954b3c225f59707243b4b82d327a5c13e598ca34","sha512_sri":"sha512-oSa9+4MnSgkH2oejLOiQj4a2AayVMYW32Q8aHXNDYTw8/Umtm3gdSss6R5bQg4VGlkZtsbPbENjN3fEJGZf4ng=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/crypto-promiser/v/1.0.1"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/crypto-promiser/v/1.0.2"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-pgcc-398f-7cv2"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"source":"amazon-inspector","sha256":"25594e7865a7525aebefd2f1fcc8060f144bf202b1986875e1cfd95564f66e88","import_time":"2026-07-08T17:40:20.115048959Z","id":"IN-MAL-2026-008174","modified_time":"2026-07-08T17:31:26Z","versions":["1.0.1"]},{"source":"amazon-inspector","sha256":"2a46357d63cf4bf7cac2adab122f202a921500a632c120d7191615172f3a2e78","import_time":"2026-07-08T21:27:50.155796025Z","id":"IN-MAL-2026-008610","modified_time":"2026-07-08T20:48:50Z","versions":["1.0.2"]},{"source":"ghsa-malware","sha256":"e30fe05ab2f65365185bab693328d0249c8a6dd2366359ffb1e7184d7d5a61e9","import_time":"2026-07-10T03:23:39.558193021Z","id":"GHSA-pgcc-398f-7cv2","modified_time":"2026-07-10T02:43:34Z","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}]}]}}

数据来源:OpenSSF Malicious Packages · Apache-2.0