MAL-2026-14049Malicious code in @mexc/shared-utils (npm)
| 版本 | 状态 | 大小 | SHA-256 | 获取方式 |
|---|---|---|---|---|
1.0.0 | unavailable | — | — | — |
| Ecosystem | Package | Version |
|---|---|---|
| npm | @mexc/shared-utils | 1.0.0 |
{"modified":"2026-08-14T20:04:39Z","published":"2026-08-14T20:04:39Z","schema_version":"1.7.4","id":"MAL-2026-14049","summary":"Malicious code in @mexc/shared-utils (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (c6d793d1ff65b7f5a24e1aa0c176eaa5d83c7870e05cca5b64f22edb9ca7ded7)\nPackage published to the public npm registry under the @mexc scope without evidence of scope ownership. package.json declares a postinstall hook (\"postinstall\": \"node postinstall.js\") that runs on any installer whose resolver falls back to the public registry when resolving @mexc/shared-utils. The postinstall script collects host metadata — os.hostname(), os.userInfo().username, process.getuid(), process.cwd(), platform, node version, and multiple npm_* environment variables (npm_config_registry, npm_config_user_agent, npm_execpath, INIT_CWD) — and writes the data to os.tmpdir()/mexc-poc-execution-proof.json. The current shipped script performs local write only with no outbound network call, but the install-time code-execution primitive against any CI/build system that resolves the @mexc scope publicly is the classic dependency-confusion pattern; the author controls the code that runs and can change the payload in any future version.\n","affected":[{"package":{"ecosystem":"npm","name":"@mexc/shared-utils"},"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":"postinstall.js","sha256":"78b73235dc0ec3cce2be6a37b4fef8c595ba7f686dff786e104af436c38d3742","tlsh":"afa171194da8863623edcc50197a0c12a627cb47ed00b158f54d42c80f7aadede6aa7f"}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/@mexc/shared-utils/v/1.0.0"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-017927","import_time":"2026-08-14T20:14:23.543443734Z","modified_time":"2026-08-14T20:04:39Z","sha256":"c6d793d1ff65b7f5a24e1aa0c176eaa5d83c7870e05cca5b64f22edb9ca7ded7","source":"amazon-inspector","versions":["1.0.0"]}]}}数据来源:OpenSSF Malicious Packages · Apache-2.0