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

目标: 1000 元 · 已筹: 1359 元

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

vitest-chalk-pro

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

Summary

Malicious code in vitest-chalk-pro (npm)

安装阶段执行
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
128
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmvitest-chalk-pro10.0.7
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-08-29T02:12:51Z","published":"2026-08-29T02:12:51Z","schema_version":"1.7.4","id":"MAL-2026-15563","summary":"Malicious code in vitest-chalk-pro (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (4718de971af33ad02b8945e1b981e30d1decbf9c7d1006f37a641cd822156f0e)\nvitest-chalk-pro@10.0.7 declares a postinstall hook (node lib/utils/index.js) that spawns a detached, silenced child process running lib/utils/smtp-connection/index.js. That child uses axios to GET https://api.jsonbin.io/v3/b/6a62bc86da38895dfe879659 and passes the returned `cookie` field to `new Function('require',...)(require)`, executing attacker-controlled JavaScript on the installer's machine at every `npm install`. The fetched content is opaque and mutable — the operator of the jsonbin document can rotate the payload at any time. The child is spawned with `detached: true`, `stdio: ['ignore','ignore','ignore']`, and `unref()` so it continues running after npm install returns and produces no output. The package name suggests a vitest/chalk utility, but `main` is a verbatim copy of nodemailer's entrypoint (author metadata `Andris Reinman`, ETHEREAL_* environment variables, references to api.nodemailer.com), an unrelated facade that disguises the dropper.\n","affected":[{"package":{"ecosystem":"npm","name":"vitest-chalk-pro"},"versions":["10.0.7"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":"lib/utils/smtp-connection/index.js","sha256":"e96ebeb43c6f0eda1f353dbeed62ab183db5922adcc6a0f95c4f7521b6535f3a","tlsh":"0dd0a78432a6656e21fa2585562620095053c6304d48f052b18467f11c504da6e61bf1"},{"path":"lib/utils/index.js","sha256":"9fb27c30f484650bb4a39f65a03fbccdc0b9b5f1cb84700ca73ee8893c66e06e","tlsh":"dae0686a23533738a034cbc1da30ce3b258b8020b365a0e0f00c406a2bc72c406ea8da"},{"path":"package.json","sha256":"ce7e2c44c05eee343f56f5b77c6ed1e0af9173dd80936497632fdbe5e6f673be","tlsh":"7041a511cd678ce3369829ed68685183a420c00fcc1ab86db35c528c4f8e99f76b8a6d"}],"package_integrity":[{"filename":"vitest-chalk-pro-10.0.7.tgz","hashes":{"sha1":"b1c724713b36bc9fca7d029174711cd5ff7f39da","sha512_sri":"sha512-FXztpbVAWQiodqrWbe8ikbvG0TC7ExYby51y23sK9fDN0ibV3TrIYINi/oXtbUjnpq2eLQXz+0t+lNyue8IkwQ=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/vitest-chalk-pro/v/10.0.7"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-019132","import_time":"2026-08-29T02:22:20.25800621Z","modified_time":"2026-08-29T02:12:51Z","sha256":"4718de971af33ad02b8945e1b981e30d1decbf9c7d1006f37a641cd822156f0e","source":"amazon-inspector","versions":["10.0.7"]}]}}

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