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

目标: 1000 元 · 已筹: 1359 元

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

edu-npm-postinstall-demo2

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

Summary

Malicious code in edu-npm-postinstall-demo2 (npm)

凭据/密钥窃取安装阶段执行文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
296
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmedu-npm-postinstall-demo2*
npmedu-npm-postinstall-demo21.0.0
npmedu-npm-postinstall-demo21.0.1
npmedu-npm-postinstall-demo21.0.2
npmedu-npm-postinstall-demo21.0.3
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"schema_version":"1.7.4","id":"MAL-2026-5624","published":"2026-06-11T08:25:49Z","modified":"2026-08-05T06:02:53.383143540Z","aliases":["GHSA-gqxv-6fpm-5xwx"],"summary":"Malicious code in edu-npm-postinstall-demo2 (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (ce30f195fb63661526196defd7d613a58ded58acd1208989400bf6267de6bfb1)\nOn `npm install`, postinstall.js reads the installer's `.env` file from INIT_CWD, harvests environment variable values (DEMO_-prefixed), collects host identifiers via os.hostname() and os.platform(), and POSTs the combined payload to a hardcoded ngrok tunnel at https://scary-blooper-brewery.ngrok-free.dev/collect. The package describes itself as an educational demo, but the destination is an anonymous, author-mutable tunneling host with no publisher relationship — the canonical install-time exfiltration shape. Additionally, package.json declares a `build` script pointing at scripts/mine_cyrpto.js (misspelled 'crypto'); the file is currently empty and not auto-invoked, but its presence in the tarball is a quality/intent signal alongside the exfil. Installer harm is concrete and automatic on default install: filesystem read of installer secrets + host fingerprinting + outbound transmission to an attacker-style endpoint.\n\n## Source: ghsa-malware (1feddccab6d673fe747f5491b088e5a1d514da6020b84fdf7c5709783fbd24bc)\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\n## Source: ossf-package-analysis (fb14831b7d92cfc67e25e029a80fd7a2fb855e68863a0f08f71e8d5fe41fe7ea)\nThe OpenSSF Package Analysis project identified 'edu-npm-postinstall-demo2' @ 1.0.3 (npm) as malicious.\n\nIt is considered malicious because:\n\n- The package communicates with a domain associated with malicious activity.\n","affected":[{"package":{"name":"edu-npm-postinstall-demo2","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.0.3","1.0.2","1.0.1","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"}],"indicators":{"domains":["scary-blooper-brewery.ngrok-free.dev"],"evidence_files":[{"path":"postinstall.js","sha256":"e33885a839811a2b8643a9de7a58b5667191089f7502bcc2299e499aa6a248cd","tlsh":"e17145c920f2526003eb73d4594f7476f235e2437814d9547e9e53801fc292897e6bab"},{"path":"package.json","sha256":"c61d2ed9b6bf687c2bb867d79bccb596b7b591bf2a8fc29f6629131c88b5160f","tlsh":"46f08410cd101f33a9c8ae2b183a414ae4700c078918bc2837f750ac0b8f17b98bf67e"}],"package_integrity":[{"filename":"edu-npm-postinstall-demo2-1.0.2.tgz","hashes":{"sha1":"a586db7459aaf4b80262d9977bfcd7ad520d48b6","sha512_sri":"sha512-zVNvLre9zYEkphTY9gLWzSZTEZKvBHUcNMIkCNamZJnLsjOLCc8UiNMk7oLWntMvEc6VYz/DzSTb+L6VW18D9A=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/edu-npm-postinstall-demo2/v/1.0.2"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/edu-npm-postinstall-demo2/v/1.0.3"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/edu-npm-postinstall-demo2/v/1.0.1"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-gqxv-6fpm-5xwx"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/edu-npm-postinstall-demo2/v/1.0.0"}],"database_specific":{"malicious-packages-origins":[{"import_time":"2026-06-11T09:36:25.905564153Z","modified_time":"2026-06-11T08:25:49Z","sha256":"fb14831b7d92cfc67e25e029a80fd7a2fb855e68863a0f08f71e8d5fe41fe7ea","source":"ossf-package-analysis","versions":["1.0.3"]},{"id":"IN-MAL-2026-006020","import_time":"2026-06-12T19:43:59.012994271Z","modified_time":"2026-06-12T19:07:27Z","sha256":"af1015b5508b476dcc0e9aec7c5692f2a296e4cf4ae25a6190c767fd4fe73ef8","source":"amazon-inspector","versions":["1.0.3"]},{"id":"IN-MAL-2026-006018","import_time":"2026-06-12T19:43:58.808709978Z","modified_time":"2026-06-12T19:07:26Z","sha256":"ce30f195fb63661526196defd7d613a58ded58acd1208989400bf6267de6bfb1","source":"amazon-inspector","versions":["1.0.2"]},{"id":"IN-MAL-2026-006017","import_time":"2026-06-12T19:43:58.696694968Z","modified_time":"2026-06-12T19:07:25Z","sha256":"4ede37dc48469ec273b470e4b74c65d4f7dfc5a19afac08339287ba16cd0a46a","source":"amazon-inspector","versions":["1.0.3"]},{"id":"IN-MAL-2026-006012","import_time":"2026-06-12T19:43:58.178231618Z","modified_time":"2026-06-12T19:07:22Z","sha256":"8c1c93fac029298c9951ee680beaec72a89851dd5d6fdabcce01b740d500ef20","source":"amazon-inspector","versions":["1.0.1"]},{"id":"GHSA-gqxv-6fpm-5xwx","import_time":"2026-07-27T09:43:03.80498786Z","modified_time":"2026-07-27T01:27:25Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"1feddccab6d673fe747f5491b088e5a1d514da6020b84fdf7c5709783fbd24bc","source":"ghsa-malware"},{"id":"IN-MAL-2026-013159","import_time":"2026-08-05T06:00:48.745169454Z","modified_time":"2026-08-05T05:42:16Z","sha256":"74b5a7529532d07b9d282db73a51c4c47e496b49dd2c1b657b054917e326b66a","source":"amazon-inspector","versions":["1.0.0"]}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"},{"name":"OpenSSF: Package Analysis","contact":["https://github.com/ossf/package-analysis","https://openssf.slack.com/channels/package_analysis"],"type":"FINDER"}]}

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