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

目标: 1000 元 · 已筹: 1359 元

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

module-relpath

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

Summary

Malicious code in module-relpath (npm)

凭据/密钥窃取
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
548
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmmodule-relpath*
npmmodule-relpath1.0.1
npmmodule-relpath1.0.2
npmmodule-relpath1.0.3
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"schema_version":"1.7.4","id":"MAL-2026-14561","published":"2026-08-27T13:51:36Z","modified":"2026-08-31T18:24:27.757444054Z","aliases":["GHSA-pmg4-2q5x-v3x5"],"summary":"Malicious code in module-relpath (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (03bf564e2647cb828bb130eaaba71b21fb6d78928cb6e3a74165bbb2fc546b98)\nThe package presents itself as `relative-import-path` (README title, homepage and repository URL point at github.com/marko-js/relative-import-path, and the.d.ts documents only `relativeImportPath`), but the CJS bundle at dist/index.js does not export the documented API. Instead it exports a single undocumented function `modshit(moduleName, size)` that reads `public/logo.png` from the current working directory, slices the trailing `size` bytes off the file, resolves the path `../${moduleName}/public/logo.png` relative to its own directory, creates parent directories as needed, and writes those trailing bytes to that location. The effect is a steganographic second-stage helper: bytes appended to the tail of a PNG are extracted and planted into an arbitrary sibling package's directory on the installer's disk under the caller's chosen name. The exported symbol does not match the documented API, is named to obscure its purpose, and provides a primitive whose only use is smuggling payload bytes hidden inside an image into other node_modules entries.\n\n## Source: ghsa-malware (97776a8746c6c0d75fee50594f26150e0a791d97ade2056c489c1ca8da0196ae)\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":"module-relpath","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.0.1","1.0.2","1.0.3"],"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"}],"indicators":{"evidence_files":[{"path":"dist/index.js","sha256":"c4e6cce658831a50aca1e0c685e133e4003f6890775956b63e981beea300d755","tlsh":"c17158862efe75320227a1b9256bd9097b6d9453224dd94cf78c63f06f835348de0ee8"},{"path":"package.json","sha256":"2089c6d375b92e9b4755705a0ae8d023999908031ea0d04ec12349e315205cee","tlsh":"e4217d25cca88d630ad1465ab8754741653088434ea1fc08b3a6136d4f5d6ff33bda5e"}]}}}],"references":[{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-pmg4-2q5x-v3x5"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/module-relpath/v/1.0.1"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/module-relpath/v/1.0.2"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/module-relpath/v/1.0.3"}],"database_specific":{"malicious-packages-origins":[{"id":"GHSA-pmg4-2q5x-v3x5","import_time":"2026-08-27T14:55:50.563048995Z","modified_time":"2026-08-27T13:51:36Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"97776a8746c6c0d75fee50594f26150e0a791d97ade2056c489c1ca8da0196ae","source":"ghsa-malware"},{"id":"IN-MAL-2026-019187","import_time":"2026-08-31T17:16:15.504779219Z","modified_time":"2026-08-31T16:51:05Z","sha256":"03bf564e2647cb828bb130eaaba71b21fb6d78928cb6e3a74165bbb2fc546b98","source":"amazon-inspector","versions":["1.0.1"]},{"id":"IN-MAL-2026-019256","import_time":"2026-08-31T18:22:26.945575229Z","modified_time":"2026-08-31T17:55:27Z","sha256":"42312a6ef711b775012714a5fbd93495e09cd516ce4d6d60b606953b0018ac17","source":"amazon-inspector","versions":["1.0.2"]},{"id":"IN-MAL-2026-019258","import_time":"2026-08-31T18:22:27.026844018Z","modified_time":"2026-08-31T17:55:44Z","sha256":"c28b141d06d34fafc2248d36cb28a08dd22e62a4e6ca90ebedfe179cb3e44ee6","source":"amazon-inspector","versions":["1.0.3"]}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}

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