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

目标: 1000 元 · 已筹: 1359 元

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

date-fns-sync

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

Summary

Malicious code in date-fns-sync (npm)

安装阶段执行
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
117
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmdate-fns-sync1.0.0
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-08-29T02:13:57Z","published":"2026-08-29T02:13:57Z","schema_version":"1.7.4","id":"MAL-2026-15551","summary":"Malicious code in date-fns-sync (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (8de9cc36a8817e94d67a46762e62e00a58e17077691ea1b4f649bc1f0d49e967)\npackage.json declares scripts.postinstall = 'node index.js'. index.js reconstructs a URL from a String.fromCharCode integer array — decoding to https://kongregate-api-config.vercel.app/ — fetches JSON from that endpoint, and passes the returned 'token' field directly to eval(). This executes attacker-controlled JavaScript on the installer's machine at npm install time. The destination is not a package publisher domain, the fetched payload is opaque and mutable, and the URL is deliberately concealed via char-code assembly to evade static analysis. The package's README describes it as a caching module, which does not match the observed behavior.\n","affected":[{"package":{"ecosystem":"npm","name":"date-fns-sync"},"versions":["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"}],"indicators":{"evidence_files":[{"path":"index.js","sha256":"073bdcb28a0c84a5727ffd17a000839641c6d64dcf2fb640ff83dba4ff6a130d","tlsh":"e0f0e25408bc8835022ff4bb061b5802a848e303392ee98a77ed5f441f1956d7eb56c8"}],"package_integrity":[{"filename":"date-fns-sync-1.0.0.tgz","hashes":{"sha1":"792ac2214c7cd6d291c4fd1bbbce79487fbeca60","sha512_sri":"sha512-aYNJE4wnrB/c6T7k+BsacgReMvKBekqSFo0Pef3wWDmXbOQRymsHMzQD23/YQ5LIE8vk3VzZL/ihts+nYHG/EQ=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/date-fns-sync/v/1.0.0"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-019140","import_time":"2026-08-29T02:22:21.00751341Z","modified_time":"2026-08-29T02:13:57Z","sha256":"8de9cc36a8817e94d67a46762e62e00a58e17077691ea1b4f649bc1f0d49e967","source":"amazon-inspector","versions":["1.0.0"]}]}}

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