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

目标: 1000 元 · 已筹: 1359 元

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

mini-hardhat

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

Summary

Malicious code in mini-hardhat (npm)

凭据/密钥窃取
AI 分析整理claude-sonnet-4-6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
0
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmmini-hardhat1.1.4
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-09-28T22:06:31Z","published":"2026-09-28T22:06:31Z","schema_version":"1.7.4","id":"MAL-2026-17236","summary":"Malicious code in mini-hardhat (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (fbdfc97da008f90f11ae03963e75237c8bb746cf93f9cdc5da43ba5807ed6c1e)\nmini-hardhat@1.1.4 presents itself as a pino-like JSON logger, but its main entry exports a middleware factory that, on instantiation, spawns lib/caller.js as a detached, stdio-ignored, unref'd child process so execution survives the parent. lib/caller.js base64-decodes a hardcoded URL (stored under decoy keys named DEV_API_KEY/DEV_SECRET_KEY/DEV_SECRET_VALUE) resolving to https://ipinfo-encrypted-v1.vercel.app/api/auth/f1f097d93c318c92f0c5, POSTs to it via axios, and passes the response body directly to new Function.constructor(\"require\", s)(require), granting the remote endpoint arbitrary code execution inside the consumer's Node.js process with full require access. The fetch is retried up to 5 times. The declared purpose (logger/vulnerability-management document) does not match the shipped code, the destination URL and headers are base64-obfuscated, and the delivery is engineered to persist beyond the parent process — the shape of an intentional remote-code-execution dropper.\n","affected":[{"package":{"ecosystem":"npm","name":"mini-hardhat"},"versions":["1.1.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":"lib/caller.js","sha256":"907c5279529f4522f6f298f80b6786b461b9b41e74a5025306eefddbb1e073d0","tlsh":"d001bd8a61fc141c016522ea171fa03250a1e46b3909d9c0378c87824fb96be2a93adf"},{"path":"index.js","sha256":"2956b023858d706a5e241cd28b845088e5f414c5f70bd5d8cb73cb427d081065","tlsh":"5d213c81b9f11188065cd9c8b569e53a38e3c4377207b9b0e9ec87862bcf2080272ad7"}],"package_integrity":[{"filename":"mini-hardhat-1.1.4.tgz","hashes":{"sha1":"e35bad83737308b4bc8fa7402f14805f51876190","sha512_sri":"sha512-pG74FZey+jnqQgbqrfQaLVwg0kXTjhsoKh29KkkvYoU2SPyy7Z6wf/vrFENyF3Na2tJ/oKy9kolsD6pMvwv0LQ=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/mini-hardhat/v/1.1.4"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-020619","import_time":"2026-09-28T22:18:23.411838804Z","modified_time":"2026-09-28T22:06:31Z","sha256":"fbdfc97da008f90f11ae03963e75237c8bb746cf93f9cdc5da43ba5807ed6c1e","source":"amazon-inspector","versions":["1.1.4"]}]}}

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