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

目标: 1000 元 · 已筹: 1359 元

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

polytrade

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

Summary

Malicious code in polytrade (npm)

凭据/密钥窃取
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
8
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmpolytrade*
npmpolytrade2.4.1
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-07-09T17:21:23Z","published":"2026-07-07T16:07:02Z","schema_version":"1.7.4","id":"MAL-2026-6939","aliases":["GHSA-r7mv-rcm7-x7m3"],"summary":"Malicious code in polytrade (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (5bb6b9a4e70c868e150f06160b187915bcdeb6c9c8f95095af4766dde92f96c5)\npolytrade@2.4.1 advertises itself as a Polymarket API SDK, but the exported `getPlugin` function in index.js issues an HTTP request to https://svganchordev.net/icons/<token> and passes the response field `data.credits` to `new Function(...)` with `require`, `module`, `process`, `Buffer`, and `Promise` bound as arguments. Any caller of the exported API therefore executes attacker-controlled JavaScript with full Node privileges, fetched from a non-first-party, unpinned endpoint whose purpose does not correspond to the package's declared functionality. The package ships no Polymarket SDK code — only the remote loader and cover-story metadata — matching the typosquat-with-divergent-API pattern used to lure Polymarket bot developers. The tarball also includes an OpenSSH ed25519 private key (`gitlab`, `gitlab.pub` with comment `testm@DESKTOP-PO28IS1`), which appears to be accidental author inclusion and is noted separately.\n\n## Source: ghsa-malware (1f6d9ad8459443d96933ca9fbd388fa9dc5c596691af976cc8e7fce4bdd2727a)\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":"polytrade"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["2.4.1"],"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":"index.js","sha256":"24f9b188fee5ca7999bd67fc8c2ad3b5b7bb558ecc1db3c118783ffba5bd180c","tlsh":"dfc1616546fa21a36a67e4edf30f100271a5e2133758e971f48e42902fca668e5f24e8"},{"path":"package.json","sha256":"212671b2a9ac22a26b0e44efca1e2604800ea6e88e827fb18317abdbaec97d9d","tlsh":"d201b801ca25dfa308da21a66c798457a171ec0b8e00fc0c33860b5c1f4e1af21fe2ac"},{"path":"gitlab","sha256":"1b518991648a8f55ae87fef0521f62db50ffec33ee374a144949bd4d6739aabb","tlsh":"aae0edb26c6d6e8a69aecef81820810a9f69f6a3493870e041e4e0852d75ea2c41c6c4"}]}}}],"references":[{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-r7mv-rcm7-x7m3"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/polytrade/v/2.4.1"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"source":"ghsa-malware","sha256":"1f6d9ad8459443d96933ca9fbd388fa9dc5c596691af976cc8e7fce4bdd2727a","import_time":"2026-07-07T16:09:37.886269859Z","id":"GHSA-r7mv-rcm7-x7m3","modified_time":"2026-07-07T16:07:12Z","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}]},{"source":"amazon-inspector","sha256":"5bb6b9a4e70c868e150f06160b187915bcdeb6c9c8f95095af4766dde92f96c5","import_time":"2026-07-09T17:19:29.850061431Z","id":"IN-MAL-2026-009367","modified_time":"2026-07-09T17:02:01Z","versions":["2.4.1"]}]}}

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