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

目标: 1000 元 · 已筹: 1359 元

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

hardhat-zet

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

Summary

Malicious code in hardhat-zet (npm)

凭据/密钥窃取安装阶段执行
AI 分析整理claude-sonnet-4-6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
152
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmhardhat-zet*
npmhardhat-zet2.0.1
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"schema_version":"1.7.4","id":"MAL-2026-17234","published":"2026-09-28T22:07:01Z","modified":"2026-10-02T22:27:11.268541087Z","aliases":["GHSA-mw8r-6m3f-qmg8"],"summary":"Malicious code in hardhat-zet (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (37cd33c0908189c0085fba153be1c42776411968aa5ad652dd7ffdef88b318bc)\nhardhat-zet@2.0.1 is published under a name that impersonates the Hardhat Ethereum tooling ecosystem, but its README, type definitions and docs/ tree are copied verbatim from the unrelated `pino` logger project (badges and links point at npmjs.com/package/pino and github.com/pinojs/pino). The exported `middleware` in index.js is a no-op Express middleware and matches neither the `hardhat-zet` name nor the pino README. The package's declared main (index.js) top-level-requires./lib/config, which is not a configuration file but a 4,498,609-byte obfuscator.io-style bundle: a 26,113-entry rotated string array behind two runtime decoders (functions v and F), hex-encoded identifiers, and control-flow flattening. All strings and destination URLs are hidden behind the decoders, so this code runs automatically on any `require('hardhat-zet')` and its behavior is not observable without deobfuscation. Publisher metadata (author 'Robert King <hello@jsonspack.com>', bugs URL https://jsonspack.com/issues) ties to neither the Hardhat nor the pino identity. The combination — ecosystem-typosquat name targeting crypto/Hardhat developers, cover-story README lifted from an unrelated popular package, no-op public API, and a multi-megabyte obfuscated payload auto-executed on import — is the shape of a supply-chain stealer aimed at Ethereum developers.\n\n## Source: ghsa-malware (781273d2c802d3781fecccd4434ba418c93ce88edf920b2a1163dbacf7576254)\nAny computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.\n","affected":[{"package":{"name":"hardhat-zet","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["2.0.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":"lib/config.js","sha256":"6d06757f9ab4a23c5f09b416308cff0322ada95f0484ec4c76386cfb6898a17d","tlsh":"b32670ca1681f36397dd2713bf19a9e8e02e9ce19888f247d15e7d4d69ec11bc1a0de0"},{"path":"README.md","sha256":"c06dbdc49dd2b00aa4a2e42b8096e2b00ade911b28e5f9c2ddc108fe64bd0cb8","tlsh":"0a41a56787e47fbe5b6301b2d1c275a9ff1fd31c3f6a60b9d99c812d13185a2813220a"},{"path":"package.json","sha256":"1ce0376fd8b945eda3c1fb466d3acc39347cb6506f825365f8d3b7262bb923d5","tlsh":"ca017620deb88e2301ed29424c2a0643baa58c175528fc2933dba12c0f9d5fb41bf22d"}],"package_integrity":[{"filename":"hardhat-zet-2.0.1.tgz","hashes":{"sha1":"6742e955c2505a00854a0e3a2e5d1ed507b0bbb5","sha512_sri":"sha512-lSUUCgdQXRx28zGPhrJNpZ/N8vuLFdaIGTWaBcpBnaQeMM86BScDFJD3zdSqexHxkXsu+HIvloKWsMMIbPkIKA=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/hardhat-zet/v/2.0.1"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-mw8r-6m3f-qmg8"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-020621","import_time":"2026-09-28T22:18:23.581496614Z","modified_time":"2026-09-28T22:07:01Z","sha256":"37cd33c0908189c0085fba153be1c42776411968aa5ad652dd7ffdef88b318bc","source":"amazon-inspector","versions":["2.0.1"]},{"id":"GHSA-mw8r-6m3f-qmg8","import_time":"2026-10-02T22:25:24.583275364Z","modified_time":"2026-10-02T21:48:55Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"781273d2c802d3781fecccd4434ba418c93ce88edf920b2a1163dbacf7576254","source":"ghsa-malware"}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}

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