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

目标: 1000 元 · 已筹: 1336

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

datetime-toolkit

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

Summary

Malicious code in datetime-toolkit (npm)

凭据/密钥窃取文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
483
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
永久样本归档NAS
版本状态大小SHA-256获取方式
1.0.0unavailable
1.0.1unavailable
1.0.2unavailable
1.0.3unavailable
1.0.4unavailable
1.0.5unavailable
1.0.6unavailable
1.0.7unavailable
样本保存在内网 NAS 隔离区,不公开镜像地址;已开通会员可直接从平台下载。同步任务不会解压或执行样本。
受影响版本
EcosystemPackageVersion
npmdatetime-toolkit*
npmdatetime-toolkit1.0.0
npmdatetime-toolkit1.0.1
npmdatetime-toolkit1.0.2
npmdatetime-toolkit1.0.3
npmdatetime-toolkit1.0.4
npmdatetime-toolkit1.0.5
npmdatetime-toolkit1.0.6
npmdatetime-toolkit1.0.7
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"schema_version":"1.7.4","id":"MAL-2026-5611","published":"2026-06-11T07:23:50Z","modified":"2026-08-20T03:51:41.837824191Z","aliases":["GHSA-hjx5-46c8-fm8p"],"summary":"Malicious code in datetime-toolkit (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (0dc38777296d43cff21c9e56d16208c8925c6dc25b5dec4227823da94096433d)\nThe package presents itself as a lightweight datetime utility but its main entry `datetime.js` invokes `collect()` from `./index.js` at top level, so any `require('datetime-toolkit')` or `import` immediately triggers exfiltration. `collect()` serializes the entire `process.env`, the machine hostname, and a timestamp, AES-256-GCM-encrypts the JSON with a hardcoded key, and POSTs the result over plain HTTP to `http://20.160.234.175:5000/collect`. Strings and identifiers throughout `index.js` are obfuscated: the destination URL is built from `\\uXXXX` escapes, the bearer token and encryption key are reverse-string literals (`'nekot-terces'` → `secret-token`, `'yek-noitpyrcne-tikloot-emitetad'` → `datetime-toolkit-encryption-key`), and core APIs (`http`, `crypto`, `os`, `process.env`, `POST`, `Authorization`) are unicode-escaped. The package additionally ships a `bin` (`cli.js`) that runs the same collector behind a 'Collecting and sending…' spinner. The benign datetime/React helpers are a cover story; importing the package leaks CI secrets, cloud credentials, source tokens, and database passwords from any installer that loads it.\n\n## Source: ghsa-malware (7d997e277a4f73cc68d97e58d8296a07af2ff574861d1277634d628b27187488)\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":"datetime-toolkit","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.0.4","1.0.0","1.0.7","1.0.2","1.0.1","1.0.5","1.0.3","1.0.6"],"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"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":"datetime.js","sha256":"1fa02a488e4754612e6fec72eebcc15dc31afcc93854aa000a9e6278330dab8e","tlsh":"b771efb020f4a145715bf1ad863b4214752df2213aaed866751db6811fcc82be23faf9"},{"path":"index.js","sha256":"7bca411997c23e93e9e7bc1bf8da36e58de5cf17cde3be1d51b985f93c54e3ea","tlsh":"efa19b9193b76efe99b55e00ac34ad29ecfd88a61fc7d12e45177889cc771f04380229"}],"package_integrity":[{"filename":"datetime-toolkit-1.0.4.tgz","hashes":{"sha1":"d403f1df606f1d29fed505abe2d55f40121113b3","sha512_sri":"sha512-oGbMMUUwBiIiaj9NCKejtUmV4LO2XyiAkXdBrwLTcpX3Huy8I7QEE7CEhifTWZP1fgZZJ6HZyLZRTg5DkAb6og=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/datetime-toolkit/v/1.0.4"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/datetime-toolkit/v/1.0.0"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-hjx5-46c8-fm8p"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/datetime-toolkit/v/1.0.7"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/datetime-toolkit/v/1.0.2"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/datetime-toolkit/v/1.0.1"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/datetime-toolkit/v/1.0.5"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/datetime-toolkit/v/1.0.3"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/datetime-toolkit/v/1.0.6"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-005700","import_time":"2026-06-11T07:49:42.482068492Z","modified_time":"2026-06-11T07:23:50Z","sha256":"0dc38777296d43cff21c9e56d16208c8925c6dc25b5dec4227823da94096433d","source":"amazon-inspector","versions":["1.0.4"]},{"id":"IN-MAL-2026-005861","import_time":"2026-06-12T19:43:41.137147961Z","modified_time":"2026-06-12T19:03:31Z","sha256":"7724b8aace8cd3648792d8094d9434e47daff353c137b9df03849dd3a22b4943","source":"amazon-inspector","versions":["1.0.0"]},{"id":"GHSA-hjx5-46c8-fm8p","import_time":"2026-08-20T01:06:54.070385997Z","modified_time":"2026-08-19T12:12:08Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"7d997e277a4f73cc68d97e58d8296a07af2ff574861d1277634d628b27187488","source":"ghsa-malware"},{"id":"IN-MAL-2026-018445","import_time":"2026-08-20T03:49:52.060789518Z","modified_time":"2026-08-20T03:41:20Z","sha256":"9cabde708bb395da5b87359c85472f1bff9da7e46e1881cad07c247a80ab9ff3","source":"amazon-inspector","versions":["1.0.7"]},{"id":"IN-MAL-2026-018442","import_time":"2026-08-20T03:49:51.781949124Z","modified_time":"2026-08-20T03:40:51Z","sha256":"b312f9578e0376e86e5e623507841aea7c580b6dd906795b9c2eacc90f75f40e","source":"amazon-inspector","versions":["1.0.2"]},{"id":"IN-MAL-2026-018448","import_time":"2026-08-20T03:49:52.479557695Z","modified_time":"2026-08-20T03:41:45Z","sha256":"09550789b072ef4495603e59afe2f2f7cfe4c0c3283fafc1f2c497f2cb3e8820","source":"amazon-inspector","versions":["1.0.1"]},{"id":"IN-MAL-2026-018438","import_time":"2026-08-20T03:49:51.322499574Z","modified_time":"2026-08-20T03:40:15Z","sha256":"09cb23aa526bb73decd054c5367bcbc478550eedc493c255cc7bf257c8a727d5","source":"amazon-inspector","versions":["1.0.5"]},{"id":"IN-MAL-2026-018440","import_time":"2026-08-20T03:49:51.515386525Z","modified_time":"2026-08-20T03:40:34Z","sha256":"2584500ccf0f5a2a68a6498f4be399813c946463e721cf2e7716a5a7216c9e11","source":"amazon-inspector","versions":["1.0.3"]},{"id":"IN-MAL-2026-018444","import_time":"2026-08-20T03:49:51.961158073Z","modified_time":"2026-08-20T03:41:12Z","sha256":"6c0bbf5bcbd2bda55a0d08b905d017e2ef718d85a9c40a6fd4039cc97090c2e6","source":"amazon-inspector","versions":["1.0.6"]}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}

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