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

目标: 1000 元 · 已筹: 1359 元

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

chalk-utils

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

Summary

Malicious code in chalk-utils (npm)

凭据/密钥窃取安装阶段执行文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
—
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmchalk-utils1.0.3
npmchalk-utils1.0.4
npmchalk-utils2.0.0
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-05-15T07:39:05Z","published":"2026-05-14T19:24:57Z","schema_version":"1.7.4","id":"MAL-2026-3755","summary":"Malicious code in chalk-utils (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (d0fe2974289b691a9f5541068f2e399aecb14a719779202ff5999652ffe351db)\nOn `npm install`, postinstall.js runs a credential and cryptocurrency stealer against the installer's machine. It reads ~/.npmrc (extracting _authToken and npm_* tokens), ~/.git-credentials, and ~/.env (extracting values keyed by token/secret/password/api/aws/gcp/stripe patterns), then iterates a hardcoded list of 71 browser extension IDs for major crypto wallets (MetaMask, Phantom, Coinbase Wallet, Exodus, Trust, Binance, OKX, Ledger Live, Trezor, and others) across Chrome/Brave/Edge/Chromium/Vivaldi/Opera profiles, reading each extension's Local Extension Settings LevelDB `.log` files and applying regexes for `vault`, `seed`, `privateKey`, `mnemonic`, `password`, and `encrypted`. It additionally walks ~/Documents, ~/Desktop, and ~/Downloads for filenames matching crypto keywords (seed, backup, wallet, phrase, metamask, phantom, vault, key, private), scores file contents against a BIP-39 word list, and harvests any file with >=8 BIP-39 matches along with a 100-character content preview. Harvested data (plus os.hostname() and os.userInfo().username) is POSTed in cleartext to http://149.28.127.35:8888, a bare-IP C2 endpoint overridable via a `C2_URL` environment variable to support endpoint rotation. The package name `chalk-utils` masquerades as belonging to the `chalk` ecosystem while index.js is a dummy stub whose comment reads `lodash-js — Just a dummy module. The real payload is in postinstall.js`, and postinstall.js self-describes as `Token harvester + Crypto wallet scanner. Runs on npm install. Silent. Zero trace.`\n","affected":[{"package":{"ecosystem":"npm","name":"chalk-utils"},"versions":["1.0.4","2.0.0","1.0.3"],"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"}],"indicators":{"evidence_files":[{"path":"postinstall.js","sha256":"6ac41974ce61de899439008088ad972e7ab2ac161b3abf61fcd6796f28a941d9","tlsh":"0452e994aaa9021c596382bbd75775b40499e90b35c1e8b4f78f03489f0974d2ef33bb"},{"path":"package.json","sha256":"cf18b5e5515b45acb020b8e99d6407ee69256f682a2bf7c7cb3ba51514bb7d00","tlsh":"dcd02b308a128e3320c417531b1b414569b14d5701047c5c33cb015c47aa3b698ff60e"}],"package_integrity":[{"filename":"chalk-utils-1.0.4.tgz","hashes":{"sha1":"9afc6d4dbaa55bd4c89830bb42221d0c6ded9d5f","sha512_sri":"sha512-n7DleCpMvzvH8B5KIqK6gXN0Rdf+Gt5jZFmokPNtfpGYnZwWctnM2uqYKyqxg0OSs485+eyJzlJXq39Ep87TDw=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/chalk-utils/v/1.0.4"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/chalk-utils/v/2.0.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/chalk-utils/v/1.0.3"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["actran@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-002670","import_time":"2026-05-15T07:37:15.664565703Z","modified_time":"2026-05-14T19:24:58Z","sha256":"91db66ecd03074751b8ba9161392a616bb388110f87bde3bba527b072060d047","source":"amazon-inspector","versions":["1.0.4"]},{"id":"IN-MAL-2026-002671","import_time":"2026-05-15T07:37:15.693339695Z","modified_time":"2026-05-14T19:24:58Z","sha256":"abf624d09ac235b4070c91a31cdc049ee53620da917208668be8003956368687","source":"amazon-inspector","versions":["2.0.0"]},{"id":"IN-MAL-2026-002669","import_time":"2026-05-15T07:37:15.628977132Z","modified_time":"2026-05-14T19:24:57Z","sha256":"d0fe2974289b691a9f5541068f2e399aecb14a719779202ff5999652ffe351db","source":"amazon-inspector","versions":["1.0.3"]}]}}

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