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

目标: 1000 元 · 已筹: 1336

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

hardhat-set

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

Summary

Malicious code in hardhat-set (npm)

文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
155
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmhardhat-set2.21.0
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-08-07T12:57:29Z","published":"2026-08-07T12:57:29Z","schema_version":"1.7.4","id":"MAL-2026-13609","summary":"Malicious code in hardhat-set (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (7cf6b9d0ee4a23bfab6e7a3c21f69a36e0655019cf1dd602f93760e233c7f701)\nThe package is published as 'hardhat-set' but its README.md, docs/, and index.d.ts are copied verbatim from the unrelated pino logger project (github.com/pinojs/pino), while package.json declares author 'Robert King <hello@jsonspack.com>' with bugs URL 'https://jsonspack.com/issues'. index.js executes `const config = require('./lib/config')` at load time; lib/config.js is a 4,060,622-byte single-line file packed with obfuscator.io (23,931-entry rotated string array, RC4/base64 string decoder, control-flow flattening, self-defending checks) and runs a top-level IIFE on require. No other file in the package references config's exports, and pino itself contains no such module. The combination of a name/README mismatch (pino cover story on a package named after Hardhat), an unrelated author domain, and a multi-megabyte obfuscated blob that self-executes on import is a masquerade/typosquat delivering a hidden payload to anyone who installs or requires the package.\n","affected":[{"package":{"ecosystem":"npm","name":"hardhat-set"},"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":"c9b83cdf9b6c915f02485cce0d993653a07cb78d12317904270f808e65529c30","tlsh":"ab1674488181f02393cd5b63bf457aecfc7a68a694cc654b8559bd2de8bc40bd9e2cc4"},{"path":"package.json","sha256":"f10a8bc9cb7f811ac125d88d35cf3ae5ad58b81e7591df108044e019c8a38a42","tlsh":"2a017620deb88e2301ed25424c2a5643ba618c1b6528fc2932dba12c0f9d5fb01bf21d"}],"package_integrity":[{"filename":"hardhat-set-2.21.0.tgz","hashes":{"sha1":"3c68ae78c094294bbdbf78ab87ddb47f7a76ff77","sha512_sri":"sha512-aV2h0irREOmbNOAa3zKRjZK5T5dE6lzAGbDEp2Pm8T1T0+5h7uH7UpTKKe08P6Su/KVLThs4V7iv1Mu1iFnDPA=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/hardhat-set/v/2.21.0"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-017077","import_time":"2026-08-07T13:32:44.112846411Z","modified_time":"2026-08-07T12:57:29Z","sha256":"7cf6b9d0ee4a23bfab6e7a3c21f69a36e0655019cf1dd602f93760e233c7f701","source":"amazon-inspector","versions":["2.21.0"]}]}}

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