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

目标: 1000 元 · 已筹: 1359 元

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

chalk-plus-ts

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

Summary

Malicious code in chalk-plus-ts (npm)

凭据/密钥窃取安装阶段执行
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
75
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
永久样本归档NAS
版本状态大小SHA-256获取方式
1.0.3unavailable———
1.0.4unavailable———
样本保存在内网 NAS 隔离区,不公开镜像地址;已开通会员可直接从平台下载。同步任务不会解压或执行样本。
受影响版本
EcosystemPackageVersion
npmchalk-plus-ts*
npmchalk-plus-ts1.0.3
npmchalk-plus-ts1.0.4
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"schema_version":"1.7.4","id":"MAL-2026-5710","published":"2026-06-12T20:34:58Z","modified":"2026-08-28T16:26:06.435620194Z","aliases":["GHSA-247v-x9qw-cc59"],"summary":"Malicious code in chalk-plus-ts (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (08276c56353501373a202d28f6af6ee2a7c0b20d28a07d99c4c16309df46269c)\npackage.json declares postinstall=`node lib/utils/index.js`, which spawns a detached child process running lib/utils/smtp-connection/index.js. That script fetches https://www.jsonkeeper.com/b/QHDXR (a mutable, anonymous JSON paste host) and passes the response's `cookie` field directly into `new Function('require', data.cookie)(require)`, executing attacker-controlled JavaScript with full Node privileges on every installer machine. The detached child with ignored stdio is designed to suppress visibility of the activity. The package additionally ships lib/utils/smtp-connection/parse.js, which exposes an AES-256-CBC decryption helper with a hardcoded key and IV — consistent with a staged loader for decoding subsequent payloads delivered through the same channel. Identity is laundered: the package name `chalk-plus-ts` impersonates the popular `chalk` package, the main entry is a verbatim copy of nodemailer.js, the author field is set to nodemailer's real maintainer (Andris Reinman), and the description field is unrelated React Training boilerplate — all to lure installs from multiple ecosystems.\n\n## Source: ghsa-malware (ed0c6ed9fc3ef01e8590b5cb3967a1304333179ff797d779d9a600e64a48ffde)\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":"chalk-plus-ts","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.0.3","1.0.4"],"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"}],"indicators":{"domains":["www.jsonkeeper.com","github.com","release-assets.githubusercontent.com"],"evidence_files":[{"path":"lib/utils/smtp-connection/index.js","sha256":"e72ab44afd0114c64138b8ada7f91c7d12fd09be68ca28973465bed185552323","tlsh":"05f0c06a19f35238521b22c94b5b040a3007d007379aed89f7cc87e02fc39909d42fb8"},{"path":"package.json","sha256":"4d3da7ac75c39bc24c8e92476867ad33d9e619245caa3756cad97b408e2588d3","tlsh":"9f41a614cd2a8ce3229425eea46c1183a520d00f8d06b85d734c038c8fce99f36baf2e"},{"path":"lib/utils/smtp-connection/parse.js","sha256":"4aac106a4f36aba6433c7ded453d724307ee55616e240883cd46204549cf24b1","tlsh":"7cf0a6802cb8fb900345b0e7c0bbeb07a198a068312287a48a8f9d5a45868488a130dd"}],"package_integrity":[{"filename":"chalk-plus-ts-1.0.3.tgz","hashes":{"sha1":"e5597cc2c4ca0ae1b07696fed4508ac419b4f2c4","sha512_sri":"sha512-OnfSBqmrsMRPnVnRRgusimvi38do+hy8qjYZPSdrM2trfWZD2Boa7cspAtQfjDe2nrsQgo6KIRVT/1JbJf6xMA=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/chalk-plus-ts/v/1.0.3"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-247v-x9qw-cc59"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/chalk-plus-ts/v/1.0.4"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-006228","import_time":"2026-06-12T20:49:37.79351896Z","modified_time":"2026-06-12T20:34:58Z","sha256":"08276c56353501373a202d28f6af6ee2a7c0b20d28a07d99c4c16309df46269c","source":"amazon-inspector","versions":["1.0.3"]},{"id":"IN-MAL-2026-006229","import_time":"2026-06-12T20:49:37.922873011Z","modified_time":"2026-06-12T20:34:59Z","sha256":"4e21033bf30adc04a20f48e89e1cb8ec1544a3d56c12a23b19f11be9ac17666e","source":"amazon-inspector","versions":["1.0.3"]},{"id":"GHSA-247v-x9qw-cc59","import_time":"2026-07-06T18:02:41.927365529Z","modified_time":"2026-07-06T18:00:59Z","sha256":"ed0c6ed9fc3ef01e8590b5cb3967a1304333179ff797d779d9a600e64a48ffde","source":"ghsa-malware","versions":["1.0.3"]},{"id":"IN-MAL-2026-010210","import_time":"2026-07-13T10:37:38.028403004Z","modified_time":"2026-07-13T09:22:52Z","sha256":"0b9b291d35eb5066298402e348ba47d2ec0893fad2cfd407098e8ca75a41ff5e","source":"amazon-inspector","versions":["1.0.4"]},{"id":"GHSA-247v-x9qw-cc59","import_time":"2026-08-28T16:24:19.033526929Z","modified_time":"2026-08-28T14:35:22Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"921a9db40f55a4758469ed71e9dcede17cb48cba13b9753491feabfaeb84055c","source":"ghsa-malware","versions":["1.0.3"]}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}

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