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

目标: 1000 元 · 已筹: 1359 元

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

simple-date-formatter-new-4

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

Summary

Malicious code in simple-date-formatter-new-4 (npm)

凭据/密钥窃取安装阶段执行文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
66
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmsimple-date-formatter-new-41.0.0
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-08-05T08:47:49Z","published":"2026-08-05T08:47:49Z","schema_version":"1.7.4","id":"MAL-2026-12196","summary":"Malicious code in simple-date-formatter-new-4 (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (2f5ed3c402677fcfaeac396b55b9db5280445e9b0130133cc311a83f96f2a0de)\nPackage advertises itself as a date-formatting utility but its actual behavior on install is credential theft and internal-network reconnaissance. The `postinstall` script in package.json runs a shell one-liner that probes internal Kubernetes API endpoints, dumps `/etc/resolv.conf` and `ip route`, TCP-scans internal hosts, reads the pod's Kubernetes service-account token from `/var/run/secrets/kubernetes.io/serviceaccount/token`, and POSTs the aggregated output via curl to a hardcoded OAST (interact.sh) collector at http://safjhdvsfwzhieemkdzbgr54r0yjhrmok.oast.fun/escinfo8. A bundled `postinstall.js` additionally enumerates `~/.ssh` (listing public keys), collects the local username and platform, and POSTs the JSON to a hardcoded IP 124.221.154.135 over HTTPS; in-file comments describe it as an SSH-key theft C2 demo. The library payload (`index.js`) is a three-line wrapper around `toLocaleDateString`, functioning solely as cover for the install-time attack.\n","affected":[{"package":{"ecosystem":"npm","name":"simple-date-formatter-new-4"},"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":"package.json","sha256":"9ee02a980f309059ebe09657e091817c93d8962fa25461881cb20e746117728c","tlsh":"9e11f0d8f4a09c33af8dc67ade17468a7a87948f1da03c0c95c3893c838cbe4017c1a4"},{"path":"postinstall.js","sha256":"f2be6940c08d36a7f1ce83d5fe16fefd8c14edda5d124e0f6406725beb5020ef","tlsh":"273165d558f9cd3007778685639b91263102fe13650ee940f3c807a51fe9a5449f2dee"},{"path":"index.js","sha256":"1d5404dbbd7f6a35142bc11e276bcff7b334f927a198399e6b0d9aa09ecfd098","tlsh":"8cc08c94a716b2866326122096a74100be5cc2300b9a6a62b88ec0c00144c12805ef8c"}],"package_integrity":[{"filename":"simple-date-formatter-new-4-1.0.0.tgz","hashes":{"sha1":"b5dbf12e11c34f5fa578d8c6b555be98bc2a347b","sha512_sri":"sha512-GVv/FUKS9fuL2twiBUo97n1iskcKuFqErZEcXBf7KXW+Hp4ObnW8CCvnM/XZVLZIAKqw9eKLs0OzK+WUHuVFyQ=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/simple-date-formatter-new-4/v/1.0.0"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-014420","import_time":"2026-08-05T09:28:09.118063018Z","modified_time":"2026-08-05T08:47:49Z","sha256":"2f5ed3c402677fcfaeac396b55b9db5280445e9b0130133cc311a83f96f2a0de","source":"amazon-inspector","versions":["1.0.0"]}]}}

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