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

目标: 1000 元 · 已筹: 1359 元

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

stake-math

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

Summary

Malicious code in stake-math (npm)

凭据/密钥窃取安装阶段执行
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
301
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmstake-math*
npmstake-math3.1.0
npmstake-math3.2.0
npmstake-math3.3.0
npmstake-math3.5.2
npmstake-math3.5.3
npmstake-math3.5.4
npmstake-math3.5.5
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-07-30T04:16:45Z","published":"2026-06-29T05:33:56Z","schema_version":"1.7.4","id":"MAL-2026-6585","aliases":["GHSA-qcc9-j6wh-4h9h"],"summary":"Malicious code in stake-math (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (a475d161b669ae748124a4d6c1da29ebda6e40da4aa5c3c5e8b10645ef96f57a)\nOn `npm install`, the package's postinstall hook (`scripts/install-check.cjs`, wired via package.json `scripts.postinstall`) fetches a JSON config from a hardcoded non-publisher host (`https://www.log-prettier.store/config/stake-peer-sync.json`), reads a tgz URL from that config, downloads the tarball, extracts it, runs a nested `npm install` inside the extracted directory, and then `require()`s `peer-math.js` from the dropped tree, executing it in the installer's Node process. There is no version pin, hash, or signature check, and the control-plane host is mutable and unrelated to the package's advertised purpose (a small Kelly-stake math helper) or to any legitimate publisher. The package also exhibits identity divergence: `package.json` `name` is `stake-math` while the README presents it as `polymarket-stake-math`, and `homepage` points at the same unrelated `log-prettier.store` domain — consistent with brand impersonation used to lure installers into running the dropper. Installing this version results in arbitrary attacker-controlled code execution on the installer machine.\n\n## Source: ghsa-malware (0c0588616ff1e3cda86498497275add22443058899d0b9866cf3579e9f679c4f)\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":"stake-math"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["3.5.2","3.5.3","3.5.4","3.3.0","3.2.0","3.1.0","3.5.5"],"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"},{"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"},{"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":"scripts/install-check.cjs","sha256":"338425f248ba3d2e144e9db53246d466d54c424c1ebb693744b318079c5ce0f2","tlsh":"00a1459519a2727346b1ebb8c722941eff2340233551c360f6de96952fb72a4c352dec"},{"path":"package.json","sha256":"ed7889971bf13a0a3499b1c7e277d6df7edd9ece45f0b821e43b0da5e4fc47df","tlsh":"45f02837d9504d3624b8cf595e691504f4614b5f62a04d0b70bb600c8fb1173045b72a"}],"package_integrity":[{"filename":"stake-math-3.5.2.tgz","hashes":{"sha1":"22f1e2737007d515acfdf15aca007564ce5d866c","sha512_sri":"sha512-Z4IGhPs3Ap6y2FQoXfchcfN2JdhfQiG0AOgRk1x6pwJnUxjW4Qt05ulu2VKevpuHkc8KucdIWvdYHzf5lFXvjQ=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/stake-math/v/3.5.2"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/stake-math/v/3.5.3"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/stake-math/v/3.5.4"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/stake-math/v/3.3.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/stake-math/v/3.2.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/stake-math/v/3.1.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/stake-math/v/3.5.5"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-qcc9-j6wh-4h9h"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"source":"amazon-inspector","sha256":"20c910386d16928d69a1f1e840d183521875b5686ce101e2c4e0f95b4cf6147f","import_time":"2026-06-29T07:09:09.655398907Z","id":"IN-MAL-2026-007746","modified_time":"2026-06-29T05:33:56Z","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["3.5.2"]},{"source":"amazon-inspector","sha256":"39d259fb24a848c551a7c2d36d213ff962e8ecedc70f0d1e358200b82fd4cf0d","import_time":"2026-06-29T07:09:09.814781896Z","id":"IN-MAL-2026-007748","modified_time":"2026-06-29T05:34:12Z","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["3.5.3"]},{"source":"amazon-inspector","sha256":"a475d161b669ae748124a4d6c1da29ebda6e40da4aa5c3c5e8b10645ef96f57a","import_time":"2026-06-29T07:09:09.728890068Z","id":"IN-MAL-2026-007747","modified_time":"2026-06-29T05:34:04Z","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["3.5.4"]},{"source":"amazon-inspector","sha256":"4fc43d9d226170bb17cbb6456938cabc787d76a59db37e9160a3f4ce5c8bb5a8","import_time":"2026-07-08T20:32:36.977395538Z","id":"IN-MAL-2026-008500","modified_time":"2026-07-08T20:20:01Z","versions":["3.3.0"]},{"source":"amazon-inspector","sha256":"6a57de948b3cf870e972d14e575b53ab8818e48a2ec1603bb1f8c9897aa1ca20","import_time":"2026-07-08T20:32:36.080319232Z","id":"IN-MAL-2026-008495","modified_time":"2026-07-08T20:19:13Z","versions":["3.2.0"]},{"source":"amazon-inspector","sha256":"fb425383534705d072e723e596851dbc8a9154f83fc42cb6431b7e3bcd307424","import_time":"2026-07-08T20:32:35.73470946Z","id":"IN-MAL-2026-008492","modified_time":"2026-07-08T20:18:48Z","versions":["3.1.0"]},{"source":"amazon-inspector","sha256":"647878c4801a1ac7c8bf6c1212b68f9bc87c7effa276aa3f5c268d960428b941","import_time":"2026-07-09T16:20:48.550962224Z","id":"IN-MAL-2026-009178","modified_time":"2026-07-09T15:39:45Z","versions":["3.5.5"]},{"source":"ghsa-malware","sha256":"0c0588616ff1e3cda86498497275add22443058899d0b9866cf3579e9f679c4f","import_time":"2026-07-30T03:51:56.518124Z","id":"GHSA-qcc9-j6wh-4h9h","modified_time":"2026-07-29T16:04:11Z","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}]}]}}

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