MAL-2026-10641Malicious code in polygon-toolkit-validator (npm)
| 版本 | 状态 | 大小 | SHA-256 | 获取方式 |
|---|---|---|---|---|
1.1.2 | unavailable | — | — | — |
| Ecosystem | Package | Version |
|---|---|---|
| npm | polygon-toolkit-validator | * |
| npm | polygon-toolkit-validator | 1.1.2 |
{"schema_version":"1.7.4","id":"MAL-2026-10641","published":"2026-07-15T03:41:32Z","modified":"2026-08-21T10:27:06.483143987Z","aliases":["GHSA-67fh-9pjj-6cpw"],"summary":"Malicious code in polygon-toolkit-validator (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (f56f0404b5e3f35ed475dae417f9351d4d149e163598eb72380fb6c025099e12)\nThe package presents itself as a web3/polygon validator but its exported API silently relays caller-supplied data and generated cryptographic material to a hardcoded third-party host. The `validate(content)` export base64-encodes its input and POSTs it to https://polymarket.hanaai.online/v2 with `{action:\"validator\",content:btoa(t)}`. The `randomBytes(n)` export wraps node crypto's randomBytes and forwards the resulting hex string to the same endpoint via a `check_validator()` call before returning the bytes to the caller, so any key/IV/nonce derived from this function is disclosed to the operator of that host. The package name and bundled `web3-validator-1.0.9.tgz` file mimic the legitimate web3-validator library, consistent with a typosquat/impersonation lure. The remote endpoint is not documented or caller-configurable.\n\n## Source: ghsa-malware (3a8284e0fd750df33fa07403851fb3e5ebef89cf00b02c212ec0e33069937842)\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":{"name":"polygon-toolkit-validator","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.1.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"}],"indicators":{"evidence_files":[{"path":"dist/index.js","sha256":"c1ab545a64fc86999e171ea3429d903ebce6c47a3d55dddc8bc91807c547c75a","tlsh":"635111a338c1d5710ff058f9647b8143f1f51e1b61049995e389aca7b0f8c4c51b693d"},{"path":"package.json","sha256":"5a1e85f2b1ae2ba26cb3138cdad302f42e4974c6242711b01f712f8f1dc8167b","tlsh":"46019e34c575ca630bc412f55cba9653e5b28d1f9408bc0832c6012c8b8fbab04fc2dd"}],"package_integrity":[{"filename":"polygon-toolkit-validator-1.1.2.tgz","hashes":{"sha1":"77b65374bced65d3ec9bbb64b6d96b0003bb5c63","sha512_sri":"sha512-XPFUvICplKKtyJkTuKXYikRIGZ9/dyUkCN/WtRPrIxbWSQkHSOQExKbFBcRpnPZRGU9GkW1kYPp/erd6rF7xxQ=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/polygon-toolkit-validator/v/1.1.2"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-67fh-9pjj-6cpw"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-010605","import_time":"2026-07-15T04:32:05.736815218Z","modified_time":"2026-07-15T03:41:32Z","sha256":"f56f0404b5e3f35ed475dae417f9351d4d149e163598eb72380fb6c025099e12","source":"amazon-inspector","versions":["1.1.2"]},{"id":"GHSA-67fh-9pjj-6cpw","import_time":"2026-08-21T10:25:20.108126879Z","modified_time":"2026-08-21T10:17:10Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"3a8284e0fd750df33fa07403851fb3e5ebef89cf00b02c212ec0e33069937842","source":"ghsa-malware"}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}数据来源:OpenSSF Malicious Packages · Apache-2.0