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

目标: 1000 元 · 已筹: 1359 元

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

hardhat-plus

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

Summary

Malicious code in hardhat-plus (npm)

AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
181
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmhardhat-plus2.21.0
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-10-04T23:28:23Z","published":"2026-10-04T23:28:23Z","schema_version":"1.7.4","id":"MAL-2026-17508","summary":"Malicious code in hardhat-plus (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (02d908da8470ad86669b080d267b57174ccd77e5fd6ed2c371c430d98e869f2b)\nhardhat-plus@2.21.0 is published under a name resembling the Ethereum development tool 'hardhat' but ships README, type definitions, and docs copied verbatim from the unrelated pino logger project (README.md references npmjs.com/package/pino; index.d.ts references github.com/pinojs/pino.git; package.json description is unrelated boilerplate). The package's main entry index.js requires./lib/config, which is a single ~4.5MB heavily obfuscated file using obfuscator.io transforms: hex-named identifiers, a self-mutating shuffled string-array (while(!![]){...f['push'](f['shift']())}), control-flow flattening, dispatched decode helpers, and pervasive \\xNN escape literals. This opaque code runs unconditionally the moment the package is imported. There is no legitimate source, minification story, or documented purpose that accounts for a multi-megabyte obfuscated blob being loaded as a 'config' module in a package that presents itself as either a Hardhat plugin or a pino logger. The combination of name-based impersonation, mismatched cover-story documentation, and an obfuscated payload auto-executed on import is the standard delivery shape for supply-chain malware.\n","affected":[{"package":{"ecosystem":"npm","name":"hardhat-plus"},"versions":["2.21.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":"lib/config.js","sha256":"859f8450de820d002dc9b34c2691b1c8272d015aa423bdba17c87654a558b535","tlsh":"662662d8754dd0239ade1a63bf4a7ed8933b5da7c4c8a51bc5687e9c68bc807c0a1cd0"},{"path":"package.json","sha256":"13f4ed481c16fe127f06b57fdc170c812c72e51bc563ecfaba9a644eb47c42fc","tlsh":"af017620deb88e2301ed25424c2a0643b6a18c179528fd2932dba12c4fad5fb01ff21e"}],"package_integrity":[{"filename":"hardhat-plus-2.21.0.tgz","hashes":{"sha1":"c23e0657d54c4bda45e3f8c0fa95a9a0470faacb","sha512_sri":"sha512-1f1Qb2ROS42tFxWyrONa/zPmIt8+2e6DpRkU67xyhHBhY1ikObPKMosgvPR2SgGu+iP0FR5leGBVmH20n1sYaA=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/hardhat-plus/v/2.21.0"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-020973","import_time":"2026-10-04T23:40:47.353640666Z","modified_time":"2026-10-04T23:28:23Z","sha256":"02d908da8470ad86669b080d267b57174ccd77e5fd6ed2c371c430d98e869f2b","source":"amazon-inspector","versions":["2.21.0"]}]}}

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