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

目标: 1000 元 · 已筹: 1359 元

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

file-type-detector

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

Summary

Malicious code in file-type-detector (npm)

安装阶段执行
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
95
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
永久样本归档NAS
版本状态大小SHA-256获取方式
1.1.0archived——VIP 下载
1.1.1unavailable———
样本保存在内网 NAS 隔离区,不公开镜像地址;已开通会员可直接从平台下载。同步任务不会解压或执行样本。
受影响版本
EcosystemPackageVersion
npmfile-type-detector1.1.0
npmfile-type-detector1.1.1
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-09-09T00:49:52Z","published":"2026-09-09T00:27:12Z","schema_version":"1.7.4","id":"MAL-2026-16053","summary":"Malicious code in file-type-detector (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (04917bd7fc156dcb9793cb1f1d06ed0f2d0cb1b3aa4b04431dea54ed71f6be72)\nA clone of file-type-checker with one function added: isSign(name, moduleName, offset) in dist/validation/image.js reads public/${name}.png from the working directory, splits the buffer at -offset, and writes the trailing payload to../../../{moduleName}/log - a sibling package under node_modules - then returns isPNG() so the caller sees a plausible boolean. It is undocumented, reachable only via an __exportStar wildcard so it is never named in dist/index.js, and fails silently on try/catch.\n\nDrop stage of a three-package chain: file-type-detector writes the payload, gloggo (1.1.2-1.1.4) executes it via require('./log'), and sonmors (typosquat of sonner) triggers the chain by requiring gloggo. gloggo shares the npm publisher log-developer and was published five minutes apart on 2026-08-27. No install hooks; execution occurs on require().\n","affected":[{"package":{"ecosystem":"npm","name":"file-type-detector"},"versions":["1.1.0","1.1.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":{"package_integrity":[{"filename":"file-type-detector-1.1.0.tgz","hashes":{"sha1":"c3452c877f280788620ba728592d5dac71c2958d","sha512_sri":"sha512-xrefg9CLEpfg+lb5YVdyFHlsV/ZF8Xrt+MsYSAkj38bJmbZ28a3ZgBP0ETKAIs6AQOMgqGp2WHIPpwhLGjapAw=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/file-type-detector/v/1.1.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/file-type-detector/v/1.1.1"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-019729","import_time":"2026-09-09T00:47:58.112210798Z","modified_time":"2026-09-09T00:27:12Z","sha256":"04917bd7fc156dcb9793cb1f1d06ed0f2d0cb1b3aa4b04431dea54ed71f6be72","source":"amazon-inspector","versions":["1.1.0"]},{"id":"IN-MAL-2026-019730","import_time":"2026-09-09T00:47:58.190429304Z","modified_time":"2026-09-09T00:27:22Z","sha256":"71bc73a30f67553cd6a23058191a0e93333a056cbcb85896fbfc87b2e3a4e477","source":"amazon-inspector","versions":["1.1.1"]}]}}

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