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

目标: 1000 元 · 已筹: 1359 元

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

@doaction/eventemitter

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

Summary

Malicious code in @doaction/eventemitter (npm)

凭据/密钥窃取安装阶段执行
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
4
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npm@doaction/eventemitter*
npm@doaction/eventemitter9.9.9
npm@doaction/eventemitter99.99.99
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-07-08T17:03:23Z","published":"2026-06-09T14:17:41Z","schema_version":"1.7.4","id":"MAL-2026-5370","aliases":["GHSA-926j-qqmq-889c"],"summary":"Malicious code in @doaction/eventemitter (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (865100529f6c19b1eff05a47c96abd2d4eb5dba0d4fc0af838c307c816072a20)\nThe package is a thin shim. package.json declares `preinstall: node scripts/postinstall.js`, which require()s `@doaction/shared/bin/preinstall.js` — meaning the install-time behavior is sourced from a sibling package that is not present in this tarball. src/index.js re-exports `collectEnv`, `sendToDatadog`, and `reportEnvToDatadog` from @doaction/shared and offers a `reportEventEnv` helper that posts an EVENT_* env subset to Datadog using a caller-supplied API key (gated on explicit user invocation, not a silent relay in this package itself). Several attributes are characteristic of dependency-confusion staging: a 99.99.99 version (well above any plausible real release), an 'internal testing' description, and a scope (@doaction) that may shadow an internal namespace. The actual install-time impact depends entirely on @doaction/shared's implementation of `collectEnv` and the preinstall script, which cannot be confirmed from this tarball alone. Routing for human review to confirm whether @doaction/shared is attacker-controlled (dependency-confusion attack) and to assess the env-collection behavior it actually performs at install time.\n\n## Source: ghsa-malware (2cfab693f8195c9b7d400aa6bcc6db510b89cd4920bdb622cc06b369a4ed226f)\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":{"ecosystem":"npm","name":"@doaction/eventemitter"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["9.9.9","99.99.99"],"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"}],"indicators":{"domains":["e1gjv2ne5a.execute-api.ap-northeast-1.amazonaws.com"],"evidence_files":[{"path":"scripts/preinstall.js","sha256":"0b25bcd00b225a3623f30b69b974d451557e06dc9cd2a037c028fbfe9b139f02","tlsh":"4ce0237831e8b03c7cb919b52207034133a5901805387984b8ce07228aaf080663b983"}]}}}],"references":[{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-926j-qqmq-889c"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@doaction/eventemitter/v/9.9.9"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@doaction/eventemitter/v/99.99.99"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"source":"ghsa-malware","sha256":"2cfab693f8195c9b7d400aa6bcc6db510b89cd4920bdb622cc06b369a4ed226f","import_time":"2026-06-09T15:22:39.844003335Z","id":"GHSA-926j-qqmq-889c","modified_time":"2026-06-09T14:17:42Z","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}]},{"source":"amazon-inspector","sha256":"356613a140f3268f2633d292a37370ac2324af412bd3dbf6be2603f426db80cf","import_time":"2026-06-09T20:45:51.283247078Z","id":"IN-MAL-2026-005193","modified_time":"2026-06-09T20:19:14Z","versions":["9.9.9"]},{"source":"amazon-inspector","sha256":"5221b351f74900764906fd20a62e5c3f390473ed87a1d4fb781e34d3ffd2f623","import_time":"2026-06-09T20:45:51.049323193Z","id":"IN-MAL-2026-005192","modified_time":"2026-06-09T20:19:14Z","versions":["9.9.9"]},{"source":"amazon-inspector","sha256":"865100529f6c19b1eff05a47c96abd2d4eb5dba0d4fc0af838c307c816072a20","import_time":"2026-07-08T17:01:31.332557684Z","id":"IN-MAL-2026-008110","modified_time":"2026-07-08T16:26:19Z","versions":["99.99.99"]}]}}

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