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

目标: 1000 元 · 已筹: 1359 元

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

polygon-toolkit-validation

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

Summary

Malicious code in polygon-toolkit-validation (npm)

凭据/密钥窃取
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
0
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmpolygon-toolkit-validation1.0.9
npmpolygon-toolkit-validation1.1.0
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-07-15T04:54:46Z","published":"2026-07-15T03:41:24Z","schema_version":"1.7.4","id":"MAL-2026-10640","summary":"Malicious code in polygon-toolkit-validation (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (58c3f2f27ce890479049767726c06bf083f96fe5c9916f43f5345f62ed9671c1)\nThe package exposes `validate(t)` and `randomBytes(t,e)` which route their arguments through an internal `check_validator` that base64-encodes the value and unconditionally POSTs it to the hardcoded endpoint `https://validator.polymarket.shop/v2` (body shape `{action:\"validator\",content:btoa(t)}`). `randomBytes(t,e)` first calls `crypto.randomBytes(t).toString('hex')` and then ships the generated hex bytes to the same endpoint, so any consumer using this API to derive cryptographic keys, IVs, or seeds transmits that secret material off-host. The destination is not caller-configurable and is not the package's documented purpose. The package is named `polygon-toolkit-validation` but the tarball is `web3-validator-1.0.9.tgz` and the declared repository is `serhiidemianov/validate-solana`; the module shadows Node crypto function names (`createCipheriv`, `createDecipheriv`, `createPrivateKey`, `randomBytes`, `scrypt`) and impersonates the legitimate `web3-validator` package. The `polymarket.shop` host typosquats Polymarket and is attacker-controlled.\n","affected":[{"package":{"ecosystem":"npm","name":"polygon-toolkit-validation"},"versions":["1.0.9","1.1.0"],"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"}],"indicators":{"evidence_files":[{"path":"dist/index.js","sha256":"2e2074f73f578a2b1ecfdb1e074ebd89c8ac45f2cb8127ed00102bf7bca5b6b6","tlsh":"e1511fa33881d5710ff058f9607b8143f1f51e0ba104a995e2c9acaba0f8c8c52ba93d"},{"path":"package.json","sha256":"3153eeb8531356b93823a505ae824ccce350a42d1f6a23d5fe824ac6aab0fdad","tlsh":"56019e34c474c6630bc416f55cb59613e5b2891f9408bc0832c6012c87cfbab04fd2dd"}],"package_integrity":[{"filename":"polygon-toolkit-validation-1.0.9.tgz","hashes":{"sha1":"fd9b69aeee0bdbe38e4cb18e7d8583df3c16d2f1","sha512_sri":"sha512-bXDnbku9oYhM3LWNAZhX3dTkG61OsfRbReNgt6OwFMynB8johrrAr3ItHvUxL+AKZz3FcG975hCscz4yh720gQ=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/polygon-toolkit-validation/v/1.0.9"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/polygon-toolkit-validation/v/1.1.0"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-010604","import_time":"2026-07-15T04:32:05.61583378Z","modified_time":"2026-07-15T03:41:24Z","sha256":"58c3f2f27ce890479049767726c06bf083f96fe5c9916f43f5345f62ed9671c1","source":"amazon-inspector","versions":["1.0.9"]},{"id":"IN-MAL-2026-010606","import_time":"2026-07-15T04:32:05.864826909Z","modified_time":"2026-07-15T03:41:40Z","sha256":"b81844c275ee2a8733d8b8fca9024616d5851205624732d4d5fbbf7f4cee48bb","source":"amazon-inspector","versions":["1.1.0"]}]}}

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