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

目标: 1000 元 · 已筹: 1359 元

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

date-format-helper2

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

Summary

Malicious code in date-format-helper2 (npm)

凭据/密钥窃取安装阶段执行
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
3
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmdate-format-helper2*
npmdate-format-helper21.0.0
npmdate-format-helper21.0.2
npmdate-format-helper21.0.3
npmdate-format-helper21.0.4
npmdate-format-helper21.0.5
npmdate-format-helper21.0.6
npmdate-format-helper21.0.7
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-06-24T15:15:05Z","published":"2026-06-23T15:21:06Z","schema_version":"1.7.4","id":"MAL-2026-6301","aliases":["GHSA-j29f-62x7-hj66"],"summary":"Malicious code in date-format-helper2 (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (66c1775ce65ad47476ee1a0f1c7c5373e61466ec3eb4543cc658e67d2de22960)\nPackage is advertised as a React date-formatting utility, but its postinstall.js performs targeted credential harvesting on npm install. The script reads Coze workload identity environment variables (COZE_WORKLOAD_API_TOKEN, COZE_WORKLOAD_IDENTITY_CLIENT_ID, COZE_WORKLOAD_IDENTITY_CLIENT_SECRET, COZE_WORKLOAD_IDENTITY_TOKEN_ENDPOINT, COZE_PROJECT_SPACE_ID), uses them to mint OAuth access tokens via three grant types (client_credentials, token-exchange, and a JSON body variant) against the configured token endpoint, enumerates ~30 Coze API paths against api.coze.cn / integration.coze.cn / api.coze.com using the minted tokens, and POSTs the env values, the issued tokens, and the API responses over plaintext HTTP to http://2e3bkumw.requestrepo.com — a public request-capture sinkhole controlled by the attacker. The advertised date-helper functionality in index.js is unrelated cover for the install-time credential theft. An installer running `npm install` in CI or a developer environment with Coze credentials in scope would have their workload identity stolen and the attacker could impersonate that workload against Coze APIs.\n\n## Source: ghsa-malware (a13b8fd2717f710497955f390bdf36a5b52abda37b7f3bd47f737f98bfbbb5b4)\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":{"ecosystem":"npm","name":"date-format-helper2"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.0.3","1.0.7","1.0.6","1.0.2","1.0.4","1.0.5","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"},{"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":"62eed992097a9541850b5481c81dd74cb6fa73bfaa901b50fd075fccdd6fbe21","tlsh":"ac8196f3bbbddc30366bb5b1334b20422e9bde5e0285bd50f184a4a4a20d3982373965"}],"package_integrity":[{"filename":"date-format-helper2-1.0.3.tgz","hashes":{"sha1":"595ace5abaf471804f56b3f798f06d9ab0a6e860","sha512_sri":"sha512-N+sOdUTNDpwn7jPdmAhdI5BxhXN8feSKcdfMrg4/ZqVvNH9qx02+U/XTCgR3MnrfDP+EwZEtTRBoLHiGGdnBWg=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/date-format-helper2/v/1.0.3"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/date-format-helper2/v/1.0.7"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/date-format-helper2/v/1.0.6"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/date-format-helper2/v/1.0.2"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/date-format-helper2/v/1.0.4"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/date-format-helper2/v/1.0.5"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/date-format-helper2/v/1.0.0"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-j29f-62x7-hj66"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"source":"amazon-inspector","sha256":"04a1e5571acbf5901d113811c19983d13f2dc0d532127445c2b16ed650d6b57c","import_time":"2026-06-23T15:33:52.792961423Z","id":"IN-MAL-2026-007227","modified_time":"2026-06-23T15:21:06Z","versions":["1.0.3"]},{"source":"amazon-inspector","sha256":"66c1775ce65ad47476ee1a0f1c7c5373e61466ec3eb4543cc658e67d2de22960","import_time":"2026-06-23T15:33:52.85396594Z","id":"IN-MAL-2026-007229","modified_time":"2026-06-23T15:21:08Z","versions":["1.0.7"]},{"source":"amazon-inspector","sha256":"78c0b87795b33cc06d2aa096cca532f61aa0f600ec888be07b7bcfc2ea1c6cad","import_time":"2026-06-23T15:33:52.924070985Z","id":"IN-MAL-2026-007230","modified_time":"2026-06-23T15:21:09Z","versions":["1.0.6"]},{"source":"amazon-inspector","sha256":"ac54599f5ebf64585175c7d4b7bd626097f248c04aca277737e457940bd46373","import_time":"2026-06-23T15:33:53.001988804Z","id":"IN-MAL-2026-007231","modified_time":"2026-06-23T15:21:10Z","versions":["1.0.2"]},{"source":"amazon-inspector","sha256":"bd77add56411d8c62f428c859ce630c4604640766bb7eb3b359426d782737d5b","import_time":"2026-06-23T15:33:52.823855715Z","id":"IN-MAL-2026-007228","modified_time":"2026-06-23T15:21:07Z","versions":["1.0.4"]},{"source":"amazon-inspector","sha256":"d8b44f47c55950a88fb3842670fa061aa6b9c08cb3f048e0f43bfc4be2789009","import_time":"2026-06-23T15:33:53.21488354Z","id":"IN-MAL-2026-007233","modified_time":"2026-06-23T15:21:16Z","versions":["1.0.5"]},{"source":"amazon-inspector","sha256":"f1d638ba3203a606c5e4dd2187aed12eae58a0e3144b6df61d6495182dd27654","import_time":"2026-06-23T15:33:53.112890562Z","id":"IN-MAL-2026-007232","modified_time":"2026-06-23T15:21:11Z","versions":["1.0.0"]},{"source":"ghsa-malware","sha256":"a13b8fd2717f710497955f390bdf36a5b52abda37b7f3bd47f737f98bfbbb5b4","import_time":"2026-06-24T15:13:19.717029109Z","id":"GHSA-j29f-62x7-hj66","modified_time":"2026-06-24T14:08:09Z","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}]}]}}

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