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

目标: 1000 元 · 已筹: 1336

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

@ohos-ports/codex

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

Summary

Malicious code in @ohos-ports/codex (npm)

安装阶段执行
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
74
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npm@ohos-ports/codex0.140.0-beta.0
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-08-05T15:55:39Z","published":"2026-08-05T15:55:39Z","schema_version":"1.7.4","id":"MAL-2026-13210","summary":"Malicious code in @ohos-ports/codex (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (516484e6fdd2f0f358d0973e15a4443ab6555c9eca3770e51a13ee3f5196b266)\nThe package's package.json declares its dependency \"@openai/codex\" as a direct tarball URL: https://gitcode.com/api/v5/repos/OpenHarmonyPCDeveloper/JavaScript_Package_For_HarmonyOS/raw/packages/openai-codex-0.140.0.tgz?ref=main. The reference is mutable (branch 'main', no commit SHA, no integrity hash) and is hosted by a third-party org (OpenHarmonyPCDeveloper on gitcode.com) that is not the @openai publisher. On npm install, this tarball is fetched and placed into the installer's node_modules under the well-known @openai/codex name, so any code that resolves '@openai/codex' — including this package's own bin wrapper (`await import('@openai/codex/bin/codex.js')`) — loads content controlled by that third-party org rather than OpenAI. Because resolution happens through the dependencies field rather than a lifecycle script, `npm install --ignore-scripts` does not mitigate. The mutable branch reference means the content served at that URL can change at any time without a package republish.\n","affected":[{"package":{"ecosystem":"npm","name":"@ohos-ports/codex"},"versions":["0.140.0-beta.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":"package.json","sha256":"05fe5cd447799fe295e0e910f2650f55df8d90a02c657f8ccf846a6f63ec82eb","tlsh":"baf0eb2a893049b315ccc4e09c3c049ead4e2c9341482c907fe2735c8a987f332fd46e"},{"path":"bin/codex.js","sha256":"cdfa02617e445cb0f041e79beec88868768c0f633263bf54f0c8058d252f9f29","tlsh":"3ec02b2c863b05a04060cf62cd2f2170c65d907ccb4130cc0e844390f10c39038d934c"}],"package_integrity":[{"filename":"codex-0.140.0-beta.0.tgz","hashes":{"sha1":"6eb9170fc4ff7e670f6e05d6b67dc1c54299236e","sha512_sri":"sha512-K5/gNZ+G87CTKXd+KhgVU1bbgqvWDPNr6GAPmDbYYKF3k6wqK3VX6kExTK9vrE83UG/aCtRsL8K2x+dKA8SBFA=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/@ohos-ports/codex/v/0.140.0-beta.0"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-015812","import_time":"2026-08-05T16:13:48.664931041Z","modified_time":"2026-08-05T15:55:39Z","sha256":"516484e6fdd2f0f358d0973e15a4443ab6555c9eca3770e51a13ee3f5196b266","source":"amazon-inspector","versions":["0.140.0-beta.0"]}]}}

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