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

目标: 1000 元 · 已筹: 1359 元

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

demo-awesome-date-parser-test

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

Summary

Malicious code in demo-awesome-date-parser-test (npm)

凭据/密钥窃取文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
1,665
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmdemo-awesome-date-parser-test0.0.1
npmdemo-awesome-date-parser-test0.0.2
npmdemo-awesome-date-parser-test0.0.3
npmdemo-awesome-date-parser-test0.0.4
npmdemo-awesome-date-parser-test0.0.5
npmdemo-awesome-date-parser-test0.0.6
npmdemo-awesome-date-parser-test0.0.7
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"schema_version":"1.7.4","id":"MAL-2026-11099","published":"2026-07-27T15:47:01Z","modified":"2026-08-05T07:08:51.956615041Z","aliases":["GHSA-xcf3-mw56-cqm5"],"summary":"Malicious code in demo-awesome-date-parser-test (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (e5cccf4c1379e6c3f9af7dde45277b1c4db552a0ad878bc08378ad6e8879b497)\nThe package advertises itself as a date parser but ships a heavily obfuscated payload in src/index.js. The exported demoParseDate function invokes injectScriptIfNeeded, which registers a jQuery form-submission handler that reads submitted form field values, stores them in localStorage under keys 'sendToUnload_secretData' and 'sendToUnload_secretDataBase64', and POSTs them via fetch to a URL built from location.host with the path '/leak?data_stolen_on_unload_base64='. A window unload handler additionally exfiltrates the buffered values twice via navigator.sendBeacon to the same '/leak?...' path. injectScriptIfNeeded also loads remote JavaScript by evaluating a dynamic import of '<host>/tag_added_via_script_import.js' and by appending a <script src='//<host>/tag_added_via_script_file_tag_appending.js'> tag to the document, giving the author arbitrary in-page code execution. The module also assembles code at runtime via eval, new Function, and setInterval(setTimeout,...) on strings drawn from an obfuscated string array, and manipulates the end-user clipboard through navigator.clipboard.writeText/readText and a hidden-textarea document.execCommand('copy') that writes a literal 'malware test text copy' string. Author-written literals in the bundle ('Attack vector: eval execution', 'stolen-data-sended-on-unload-event-base64', 'Code executed on event state via window.onload') confirm intent. The package name 'demo-awesome-date-parser-test' and version 0.0.7 are consistent with a demonstration/test artifact, but the code performs real exfiltration and remote-script-loading behavior against any consumer that loads it.\n\n## Source: ghsa-malware (6e554422e7b097902e753eb63c772c66845f3f19bf0c2974f6fbeb9fe441ec34)\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":"demo-awesome-date-parser-test","ecosystem":"npm"},"versions":["0.0.7","0.0.6","0.0.5","0.0.4","0.0.3","0.0.2","0.0.1"],"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":"src/index.js","sha256":"2f871dcfc70d4f65ad9453b7b65f5343bf019142d5003a16ef7fe12c1ebe588c","tlsh":"5bd3df81a6905ea2989fa53b9d92ed7dc01e4e3215341e8ec5033baa655331fb5f2c33"}]}}}],"references":[{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-xcf3-mw56-cqm5"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/demo-awesome-date-parser-test/v/0.0.3"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/demo-awesome-date-parser-test/v/0.0.6"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/demo-awesome-date-parser-test/v/0.0.5"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/demo-awesome-date-parser-test/v/0.0.7"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/demo-awesome-date-parser-test/v/0.0.1"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/demo-awesome-date-parser-test/v/0.0.2"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/demo-awesome-date-parser-test/v/0.0.4"}],"database_specific":{"malicious-packages-origins":[{"id":"GHSA-xcf3-mw56-cqm5","import_time":"2026-07-28T02:02:27.993581Z","modified_time":"2026-07-27T15:47:02Z","sha256":"6e554422e7b097902e753eb63c772c66845f3f19bf0c2974f6fbeb9fe441ec34","source":"ghsa-malware","versions":["0.0.7","0.0.6","0.0.5","0.0.4","0.0.3","0.0.2","0.0.1"]},{"id":"IN-MAL-2026-010904","import_time":"2026-07-28T14:19:58.375637961Z","modified_time":"2026-07-28T13:34:09Z","sha256":"78f9d8522a52a8a7b511febd77ca55d74649d44804ca0da0dc4832646adb632d","source":"amazon-inspector","versions":["0.0.3"]},{"id":"IN-MAL-2026-010897","import_time":"2026-07-28T14:19:58.055884309Z","modified_time":"2026-07-28T13:33:15Z","sha256":"c46165721d6b575d475d3af67d3de1320285aa30f802144c08bd7bc574e2f06b","source":"amazon-inspector","versions":["0.0.6"]},{"id":"IN-MAL-2026-010899","import_time":"2026-07-28T14:19:58.144605939Z","modified_time":"2026-07-28T13:33:30Z","sha256":"3dac7edbd7a941a69901501e2f602b37a483dde93aac9af9270f146fea0e7992","source":"amazon-inspector","versions":["0.0.5"]},{"id":"IN-MAL-2026-011071","import_time":"2026-08-04T21:33:15.821184786Z","modified_time":"2026-08-04T21:28:19Z","sha256":"e5cccf4c1379e6c3f9af7dde45277b1c4db552a0ad878bc08378ad6e8879b497","source":"amazon-inspector","versions":["0.0.7"]},{"id":"IN-MAL-2026-011119","import_time":"2026-08-04T22:30:00.167646531Z","modified_time":"2026-08-04T21:35:19Z","sha256":"291bd1d754bffc6d57f45f76cbdd6abb09da6cd53d84982a99b8eb6689dd5794","source":"amazon-inspector","versions":["0.0.1"]},{"id":"IN-MAL-2026-011185","import_time":"2026-08-04T22:30:03.808315405Z","modified_time":"2026-08-04T21:44:48Z","sha256":"a9192adc99bd98d23c6c4c8cc43dd10047a3d4b99f1d236b2937b0fd121830b9","source":"amazon-inspector","versions":["0.0.2"]},{"id":"IN-MAL-2026-013345","import_time":"2026-08-05T07:06:42.480884573Z","modified_time":"2026-08-05T06:10:00Z","sha256":"4e126cd9ddc6434c9a1ffad2d290c78c1c46b92db48916fca78458f7a276e06d","source":"amazon-inspector","versions":["0.0.4"]}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}

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