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

目标: 1000 元 · 已筹: 1359 元

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

log-format-thread

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

Summary

Malicious code in log-format-thread (npm)

凭据/密钥窃取远程访问后门安装阶段执行文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
8
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmlog-format-thread1.0.0
npmlog-format-thread1.0.1
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-07-09T22:04:36Z","published":"2026-07-06T18:53:55Z","schema_version":"1.7.4","id":"MAL-2026-6848","aliases":["GHSA-fw7h-6mmw-4jjr"],"summary":"Malicious code in log-format-thread (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (6e034e855661cc792a14908c613b0d3ae31917a99927ddf0db29b1ae173df0cd)\nPackage advertises itself as a log formatter but exposes an undocumented `threadContent` option on `createLogger()` that is forwarded to a worker thread which compiles and executes it via `new Function('require', payload)(require)` (src/worker.js lines 5-7, triggered from src/index.js lines 148-151). The eval only runs against a payload the caller explicitly supplies, so installing or requiring the package does not by itself execute attacker-controlled code, and there are no install hooks, no remote fetches, no credential reads, and no outbound exfiltration. However, the feature is undocumented in the README, is shaped like a backdoor primitive rather than logging functionality, and the package also pulls in `axios` and `request` despite the README claiming 'Zero dependencies'. Consumers who pass user-controlled or otherwise untrusted data into `threadContent` would expose their application to arbitrary code execution. Routing to human review so a maintainer can decide whether to publish a public advisory about the undocumented eval surface and the dependency mismatch.\n\n## Source: ghsa-malware (336e8b05b5d99a33aed734a8bc6940554d865ad279346612362782f4cded5ff3)\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":{"ecosystem":"npm","name":"log-format-thread"},"versions":["1.0.1","1.0.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"}],"indicators":{"evidence_files":[{"path":"src/worker.js","sha256":"029b0550c0406f39dcc08b78edcd5bc1ca91ab66595593210b811e480ebb1d54","tlsh":"ccf0ebcb9c6820259eb63752abb37515f503a17322c183b5b79c21b00f72bc05033fa8"}]}}}],"references":[{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-fw7h-6mmw-4jjr"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/log-format-thread/v/1.0.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/log-format-thread/v/1.0.1"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"source":"ghsa-malware","sha256":"336e8b05b5d99a33aed734a8bc6940554d865ad279346612362782f4cded5ff3","import_time":"2026-07-06T19:53:47.955207246Z","id":"GHSA-fw7h-6mmw-4jjr","modified_time":"2026-07-06T18:53:56Z","versions":["1.0.1","1.0.0"]},{"source":"amazon-inspector","sha256":"778c35bb8086ee3d81fc8c882aa7e47144695564bc017c2fc71022695b47601d","import_time":"2026-07-08T22:51:33.516265798Z","id":"IN-MAL-2026-008902","modified_time":"2026-07-08T22:49:53Z","versions":["1.0.0"]},{"source":"amazon-inspector","sha256":"6e034e855661cc792a14908c613b0d3ae31917a99927ddf0db29b1ae173df0cd","import_time":"2026-07-09T22:02:30.249430261Z","id":"IN-MAL-2026-009425","modified_time":"2026-07-09T21:54:05Z","versions":["1.0.1"]}]}}

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