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

目标: 1000 元 · 已筹: 1359 元

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

logfmt-core

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

Summary

Malicious code in logfmt-core (npm)

凭据/密钥窃取安装阶段执行
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
147
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
永久样本归档NAS
版本状态大小SHA-256获取方式
3.5.2unavailable———
样本保存在内网 NAS 隔离区,不公开镜像地址;已开通会员可直接从平台下载。同步任务不会解压或执行样本。
受影响版本
EcosystemPackageVersion
npmlogfmt-core*
npmlogfmt-core3.1.0
npmlogfmt-core3.2.0
npmlogfmt-core3.3.0
npmlogfmt-core3.5.2
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"schema_version":"1.7.4","id":"MAL-2026-6437","published":"2026-06-25T06:14:06Z","modified":"2026-08-05T06:02:55.029363376Z","aliases":["GHSA-q37m-wc54-rhg8"],"summary":"Malicious code in logfmt-core (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (bb22b2557674e7d616805d8a4086d69e02896be169b9e5d4d053eb3628ebe038)\nOn npm install, scripts/install-check.cjs (registered as a postinstall lifecycle script) fetches a JSON config from a hardcoded anonymous Vercel app URL (https://vercel-backend-myapp.vercel.app/config/logfmt-sync.json), parses it to obtain a.tgz bundle URL, downloads the tarball to /tmp, extracts it with tar -xzf, runs `npm install` inside the extracted directory (causing any lifecycle scripts in the fetched package to also run), then require()s peer-math.js from the bundle and invokes syncSession(). The fetched code is unpinned, unauthenticated, not hash-verified, not hosted on the publisher's domain, and unrelated to the package's stated purpose (a logging-format utility offering createLogger, formatCurrency, roundDecimal). The package author controls the Vercel endpoint and can change the delivered bytes at any time, giving them arbitrary code execution on every machine that installs logfmt-core. Naming choices (`install-check`, `resolvePeerBundleUrl`, `runPeerSync`, `syncSession`) and a benign-looking `[logfmt-core] install check skipped` error log are framed to resemble a routine peer-dependency check rather than a remote-payload loader.\n\n## Source: ghsa-malware (31b8582df364fc6ebd232aee5622a46ed0f53240382a4b808957875a6732c436)\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":"logfmt-core","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["3.5.2","3.1.0","3.3.0","3.2.0"],"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"},{"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"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":"scripts/install-check.cjs","sha256":"aebcb6ffec4c38aa0374f6cf844c69c933153c0c42a71f80190086a230b5de01","tlsh":"f9a1659519a6727346b1ebb8c722901eef2390232511c360f6de96912fb72a4c352dec"}],"package_integrity":[{"filename":"logfmt-core-3.5.2.tgz","hashes":{"sha1":"fee2963003b831b562f802872c51ed180f8a9023","sha512_sri":"sha512-7IjRE0IZONd6vHfd4hiyT5OJBUV1uKcLVsgvELO/BojZ+2QaLV+21eiuD3GdBclxJ9JLJVFnQRzYOkz/94LVvg=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/logfmt-core/v/3.5.2"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-q37m-wc54-rhg8"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/logfmt-core/v/3.1.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/logfmt-core/v/3.3.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/logfmt-core/v/3.2.0"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-007464","import_time":"2026-06-25T06:26:41.235069902Z","modified_time":"2026-06-25T06:14:06Z","sha256":"bb22b2557674e7d616805d8a4086d69e02896be169b9e5d4d053eb3628ebe038","source":"amazon-inspector","versions":["3.5.2"]},{"id":"GHSA-q37m-wc54-rhg8","import_time":"2026-07-31T01:10:09.691188146Z","modified_time":"2026-07-30T16:07:03Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"31b8582df364fc6ebd232aee5622a46ed0f53240382a4b808957875a6732c436","source":"ghsa-malware"},{"id":"IN-MAL-2026-013246","import_time":"2026-08-05T06:00:57.940238966Z","modified_time":"2026-08-05T05:55:20Z","sha256":"458d308f2c028efb50c2f9de4beba5d279e0ee83df3b5acc367b09cc44903882","source":"amazon-inspector","versions":["3.1.0"]},{"id":"IN-MAL-2026-013171","import_time":"2026-08-05T06:00:50.031041727Z","modified_time":"2026-08-05T05:43:58Z","sha256":"e1aad91846c34825664ae49838e232a22de11869c88b090b872ba22d92348803","source":"amazon-inspector","versions":["3.3.0"]},{"id":"IN-MAL-2026-013154","import_time":"2026-08-05T06:00:48.141417275Z","modified_time":"2026-08-05T05:41:36Z","sha256":"f139b630711a6725f818a3001999738e5dc507e66ac556498d7ee24aa3acc47d","source":"amazon-inspector","versions":["3.2.0"]}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}

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