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

目标: 1000 元 · 已筹: 1359 元

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

hardhat-ftp

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

Summary

Malicious code in hardhat-ftp (npm)

文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
0
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmhardhat-ftp2.0.1
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-10-04T23:28:14Z","published":"2026-10-04T23:28:14Z","schema_version":"1.7.4","id":"MAL-2026-17506","summary":"Malicious code in hardhat-ftp (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (5e916c23a0efbd49d3cfcd5993957df7afbade3f454925d0672acc8c9f68245c)\nThe package's declared main entry index.js unconditionally requires./lib/config, a 4,499,968-byte obfuscator.io-packed file (26,234-entry string array, hex-renamed identifiers, control-flow flattening, top-level IIFE) that executes as soon as any consumer runs `require('hardhat-ftp')`. After string-array decoding the loader resolves to execSync and spawn sinks, and the package declares axios as a dependency, giving the import-time payload both outbound HTTP and local command-execution primitives with the concrete command targets concealed behind the obfuscation. The surrounding package is a cover: it is published under the name hardhat-ftp with a vulnerability-management description, but the README headers, badges, and ecosystem links are lifted from pinojs/pino, and the files under lib/ (proto.js, levels.js, transport.js, multistream.js) mirror the pino source tree. The name/README/code mismatch, the scale of the obfuscation, and the presence of exec+HTTP primitives inside the auto-loaded module match the masquerade-dropper pattern: installing or requiring this package triggers execution of concealed attacker-controlled code on the installer's host.\n","affected":[{"package":{"ecosystem":"npm","name":"hardhat-ftp"},"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"}],"indicators":{"evidence_files":[{"path":"index.js","sha256":"4e6c4e61a7019ab0affe9c2d20e36701b330ec357be205930355bac1464f9316","tlsh":"0421149124d560ce9938dac0f6306115acdbc677260752b3bdfc97c927860080161fba"},{"path":"lib/config.js","sha256":"b01c59ae0a76527503799aab109bd701e34f260d192722a8cf12c97a4e6d208c","tlsh":"61265f889244e03796cf1ac3bf0529ede57aa861e4cca30797d4be5cb9ac40bd4b5dd0"},{"path":"README.md","sha256":"c0c8df575a9649d7018059a65ef8b9401b239931fac87a3957c9ca7067e5d110","tlsh":"f341956787e47fbd5f6301b2d1c275a9ff2f931c3b6a60b5d99c81291318592813220a"}],"package_integrity":[{"filename":"hardhat-ftp-2.0.1.tgz","hashes":{"sha1":"71b0d1a5e2bc520caedbcfe0a7cd7e4fc769f00b","sha512_sri":"sha512-ETjN3tQw1gUCCIyiNlecrOM7ZQ4M3ivCpNVBWFLAbCQ8R/LH+o7674juZ+Vcz4PQCcZYSXww+OWoPmsJlRnL3w=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/hardhat-ftp/v/2.0.1"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-020972","import_time":"2026-10-04T23:40:47.242949633Z","modified_time":"2026-10-04T23:28:14Z","sha256":"5e916c23a0efbd49d3cfcd5993957df7afbade3f454925d0672acc8c9f68245c","source":"amazon-inspector","versions":["2.0.1"]}]}}

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