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

目标: 1000 元 · 已筹: 1359 元

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

terminal-mascot

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

Summary

Malicious code in terminal-mascot (npm)

凭据/密钥窃取安装阶段执行
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
7
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmterminal-mascot1.0.0
npmterminal-mascot1.0.1
npmterminal-mascot1.0.2
npmterminal-mascot1.0.3
npmterminal-mascot3.5.2
npmterminal-mascot3.5.3
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"schema_version":"1.7.4","id":"MAL-2026-10424","published":"2026-07-13T06:51:23Z","modified":"2026-08-05T07:08:56.095618968Z","aliases":["GHSA-g2cj-hj2c-phvf"],"summary":"Malicious code in terminal-mascot (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (f3fdf1ac60d0060cb78970c884bcfa7bb5360d9f700c0f8992b66af09cce22ae)\nterminal-mascot@3.5.2 ships a postinstall script (install-check.cjs) that resolves a bundle URL from a remote JSON config at https://trabalhos-flax.vercel.app/config/clob-math.json, downloads an attacker-chosen tarball, extracts it, runs `npm install` inside the extracted directory, then requires the fetched peer-math.js and invokes its exported syncSession() function. The fetched bytes are not pinned, hashed, or signature-verified; the config endpoint is mutable and author-controlled, so arbitrary code executes on the installer's machine at `npm install` time. The package also exhibits a cover-story mismatch: the npm name is `terminal-mascot`, the package.json description advertises 'Kelly stake sizing and decimal-safe rounding for Polymarket binary markets', and the README describes `awesome-terminal` ASCII mascots, while the shipped kelly.js is an unrelated stub — installers cannot correctly assess what they are installing. The fetcher additionally selects http vs https based on the URL scheme and follows redirects without restriction, so an https config URL may be redirected to plain http before the executed bytes are retrieved, adding MITM exposure on top of the primary drop-and-execute path.\n\n## Source: ghsa-malware (6de6a065ee5a3111e607798887c08d3b072a80bc43ec67e51aeadf56306964e9)\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":"terminal-mascot","ecosystem":"npm"},"versions":["3.5.2","3.5.3","1.0.3","1.0.2","1.0.1","1.0.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"},{"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":"5af7c18e30487ae628a965d44233bf9066e7c12df1abe703776fd5e88d411efd","tlsh":"3291359519a2727746b1ebb8c722902dff2340233521c350f6de96952fb72a4c352dec"},{"path":"package.json","sha256":"2154c020048bde371b03698a413e5c578f3b91db87d30bfd11b694616fef3c2e","tlsh":"faf04c37de904e3768bc8e594e791644f5644b5f32b04d1bb0bba00c4f72163045b73a"}],"package_integrity":[{"filename":"terminal-mascot-3.5.2.tgz","hashes":{"sha1":"2bef532bc1cff95a661032d771e39dc8d6d51012","sha512_sri":"sha512-jr1+ljzuUzswBmb+GRV3Apt/EMYBNIyYVBrqsYcPEL273AwoEZRQ5Y+EtbeLAiXQ27S5ZS5Ng+QGKxFDYaZhhg=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/terminal-mascot/v/3.5.2"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/terminal-mascot/v/3.5.3"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-g2cj-hj2c-phvf"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/terminal-mascot/v/1.0.2"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/terminal-mascot/v/1.0.3"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/terminal-mascot/v/1.0.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/terminal-mascot/v/1.0.1"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-009836","import_time":"2026-07-13T07:40:12.119339774Z","modified_time":"2026-07-13T06:51:23Z","sha256":"f3fdf1ac60d0060cb78970c884bcfa7bb5360d9f700c0f8992b66af09cce22ae","source":"amazon-inspector","versions":["3.5.2"]},{"id":"IN-MAL-2026-010727","import_time":"2026-07-16T18:54:01.467492448Z","modified_time":"2026-07-16T18:38:31Z","sha256":"4e18addb1318a639e3c43415619c0a7de802fb76b8549fbfcd4de942c6ea4aef","source":"amazon-inspector","versions":["3.5.3"]},{"id":"GHSA-g2cj-hj2c-phvf","import_time":"2026-07-17T00:53:46.806494978Z","modified_time":"2026-07-16T23:55:03Z","sha256":"6de6a065ee5a3111e607798887c08d3b072a80bc43ec67e51aeadf56306964e9","source":"ghsa-malware","versions":["3.5.3","3.5.2","1.0.3","1.0.2","1.0.1","1.0.0"]},{"id":"IN-MAL-2026-013044","import_time":"2026-08-05T06:00:34.783315669Z","modified_time":"2026-08-05T05:25:56Z","sha256":"754bd07eed200dd5018ba0408a938439816740e5629637c0fedec03c3159642e","source":"amazon-inspector","versions":["1.0.2"]},{"id":"IN-MAL-2026-013089","import_time":"2026-08-05T06:00:39.863040911Z","modified_time":"2026-08-05T05:32:18Z","sha256":"5d97ec0ce1c12d0687ce2c08af7f1c7e56e0ca76d998392749314a89b1d875af","source":"amazon-inspector","versions":["1.0.3"]},{"id":"IN-MAL-2026-013358","import_time":"2026-08-05T07:06:43.125507071Z","modified_time":"2026-08-05T06:11:52Z","sha256":"4e373346ad83b1ea979f92cc266743050e75f5abcf043393a245963a58ae4868","source":"amazon-inspector","versions":["1.0.0"]},{"id":"IN-MAL-2026-013357","import_time":"2026-08-05T07:06:43.056120456Z","modified_time":"2026-08-05T06:11:42Z","sha256":"84abff544a1cb241224d3552fd4de1cde3b2a6e9895111b2402cc07b783ed06c","source":"amazon-inspector","versions":["1.0.1"]}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}

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