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

目标: 1000 元 · 已筹: 1359 元

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

ogensec-sdk

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

Summary

Malicious code in ogensec-sdk (npm)

AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
14
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmogensec-sdk1.1.1
npmogensec-sdk1.2.1
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-07-15T04:54:46Z","published":"2026-07-15T03:56:52Z","schema_version":"1.7.4","id":"MAL-2026-10639","summary":"Malicious code in ogensec-sdk (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (4acb9448e8289c41cb35a883074545d2a790b719104b2f7c9a99bfca3e3f64ff)\nThe package ships an Express middleware that, on each incoming request, POSTs {appId, endpoint} to a configured `${baseUrl}` and interprets the response as a list of items containing a `hotfix.code` string. That string is wrapped as `return (async ()=>{ <code> })();` and passed to `Object.getPrototypeOf(async function(){}).constructor` (AsyncFunction) with `require, req, res` parameters, then awaited. Any JavaScript returned by the configured server therefore runs inside the installer's Node process with full `require` access and access to the live request/response objects on every HTTP request served through the middleware. The feature is marketed only as 'Dynamic security hotfixes' and is not documented as arbitrary remote code execution. The entire shipped `dist/` tree (index.js, bridge.js, client.js) is processed by javascript-obfuscator (rotated base64 string arrays, hex-named identifiers) as declared by the `obfuscate`/`prepublishOnly` scripts in package.json, and no source is published — concealing the remote-code-execution mechanism from developers reviewing the SDK. Any compromise, takeover, or on-path MITM of the configured backend converts every deployment using this middleware into a live RCE on production traffic; the maintainer of the backend also holds a persistent, undisclosed remote-execution channel into every installer.\n","affected":[{"package":{"ecosystem":"npm","name":"ogensec-sdk"},"versions":["1.2.1","1.1.1"],"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"}],"indicators":{"evidence_files":[{"path":"dist/index.js","sha256":"3c7aaab86c09fc23fe24fb7f1cbae3175861b0fb3a05bd6edc429862dc0d18b5","tlsh":"2b122f203e84155d23622a9bff127be0d94f5c797e44454abc582e587b52e23dfec630"},{"path":"package.json","sha256":"9ccf73e109dd864598ff6f64a397486976f96a1dd53e695f30b3a8855e2c16c2","tlsh":"b201bd21dc65ed632ac8b9d81c66c04b5624ac5b9a98fc0c338a024c8f0d23fb4fd53e"}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/ogensec-sdk/v/1.2.1"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/ogensec-sdk/v/1.1.1"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-010612","import_time":"2026-07-15T04:32:06.941830718Z","modified_time":"2026-07-15T03:57:01Z","sha256":"13053f11dfadc10872af52e744baf9fc3c5fb52764fe0e1ac047f44e7822c12d","source":"amazon-inspector","versions":["1.2.1"]},{"id":"IN-MAL-2026-010611","import_time":"2026-07-15T04:32:06.826436494Z","modified_time":"2026-07-15T03:56:52Z","sha256":"4acb9448e8289c41cb35a883074545d2a790b719104b2f7c9a99bfca3e3f64ff","source":"amazon-inspector","versions":["1.1.1"]}]}}

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