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

目标: 1000 元 · 已筹: 1336

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

console-fmt-cli

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

Summary

Malicious code in console-fmt-cli (npm)

凭据/密钥窃取远程访问后门安装阶段执行文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
337
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
永久样本归档NAS
版本状态大小SHA-256获取方式
2.0.0unavailable
2.1.0unavailable
2.2.0unavailable
2.3.0unavailable
2.4.0unavailable
2.5.0unavailable
2.6.0unavailable
2.7.0unavailable
2.8.0unavailable
2.9.0unavailable
2.9.1unavailable
样本保存在内网 NAS 隔离区,不公开镜像地址;已开通会员可直接从平台下载。同步任务不会解压或执行样本。
受影响版本
EcosystemPackageVersion
npmconsole-fmt-cli*
npmconsole-fmt-cli2.0.0
npmconsole-fmt-cli2.1.0
npmconsole-fmt-cli2.2.0
npmconsole-fmt-cli2.3.0
npmconsole-fmt-cli2.4.0
npmconsole-fmt-cli2.5.0
npmconsole-fmt-cli2.6.0
npmconsole-fmt-cli2.7.0
npmconsole-fmt-cli2.8.0
npmconsole-fmt-cli2.9.0
npmconsole-fmt-cli2.9.1
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"schema_version":"1.7.4","id":"MAL-2026-6688","published":"2026-06-30T00:00:00Z","modified":"2026-08-18T17:30:18.375429185Z","aliases":["GHSA-p3j8-3227-2w78"],"summary":"Malicious code in console-fmt-cli (npm)","details":"Malicious npm package published as part of a coordinated DeFi-themed infostealer campaign. `console-fmt-cli` uses a side-loader technique: it declares `decimal-format-core >=3.0` as a dependency, which contains a dropper that executes at install time via a `postinstall` hook. The dropper fetches a second-stage infostealer from a remote C2 (`logstream-api.online`) that harvests cryptocurrency wallet vaults (MetaMask, Phantom, Solflare, OKX, Coinbase, TrustWallet, Backpack, TronLink), browser cookies and credentials, SSH keys, AWS credentials, `.npmrc` tokens, Docker config, shell history, and password manager databases.\n\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (62d4aa3c5f7523f4a10d37346a6eaa228940d76f797e13b6d2010385e81e4331)\nOn every call to createLogger (the package's documented entrypoint), logger.js resolves the peer dependency decimal-format-core's private scripts/install-check.cjs path and invokes runRuntimeProjectSync() via setImmediate, wrapped in a try/catch that suppresses all errors. The README describes decimal-format-core as an optional formatting dependency, yet the logger unconditionally reaches into that dependency's internal scripts/ directory and executes a runtime function on ordinary library use. The trigger function is named queueRuntimeProjectSync and the invoked file is named install-check.cjs, both consistent with a cover story that hides script execution from the consumer. This package itself contains no exfiltration or network calls; its role is to act as a loader stub that shifts execution into decimal-format-core, whose install-check.cjs code determines the actual payload behavior.\n\n## Source: ghsa-malware (c0d33f834565128a6d6c1af414b6108ca0a8be8e1c85c489c824999524bc8f77)\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":"console-fmt-cli","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["2.1.0","2.3.0","2.5.0","2.0.0","2.7.0","2.2.0","2.9.0","2.4.0","2.8.0","2.6.0","2.9.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"},{"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"},{"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"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":"logger.js","sha256":"e0eaf49d44905aeda209d2e9d18acd0537843289925b1e0f71f05219b76a9ec7","tlsh":"e441525f1bfa12254536a15989ab40673b5ad522b45bf0f0bedda7047fcc23080b3ac8"}],"package_integrity":[{"filename":"console-fmt-cli-2.1.0.tgz","hashes":{"sha1":"7b58a9e502026525eb9c3f2d45adb853b5efb485","sha512_sri":"sha512-CMnt3QFB356sveT3WPd554/g0Cwjyn52CZikJo4b23+UgWd0+KmmwBRGCCHBc1y/o8jAbm2lyUlqU2Qk4kiSzA=="}}]},"iocs":{"domains":["logstream-api.online"]}}}],"references":[{"type":"REPORT","url":"https://safedep.io/defi-infostealer-fake-arbitrage-bot-npm/"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/console-fmt-cli/v/2.1.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/console-fmt-cli/v/2.3.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/console-fmt-cli/v/2.5.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/console-fmt-cli/v/2.0.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/console-fmt-cli/v/2.7.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/console-fmt-cli/v/2.2.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/console-fmt-cli/v/2.9.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/console-fmt-cli/v/2.4.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/console-fmt-cli/v/2.8.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/console-fmt-cli/v/2.6.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/console-fmt-cli/v/2.9.1"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-p3j8-3227-2w78"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-008544","import_time":"2026-07-08T20:32:42.321832256Z","modified_time":"2026-07-08T20:26:23Z","sha256":"7ccb50e741119fa832c2a87e47315cb08f14f9dfe5422bba40aa7788b2aab7de","source":"amazon-inspector","versions":["2.1.0"]},{"id":"IN-MAL-2026-008551","import_time":"2026-07-08T20:32:43.186515237Z","modified_time":"2026-07-08T20:27:28Z","sha256":"5677f42ebe445c9ba00a52b5949c246521ffc155c809e409a950946168ab9d33","source":"amazon-inspector","versions":["2.3.0"]},{"id":"IN-MAL-2026-008848","import_time":"2026-07-08T22:51:27.585418391Z","modified_time":"2026-07-08T22:42:09Z","sha256":"65210122c1cb3c21171f22dd103ecd19f0595523e1b9085bd0eaed77ea475c64","source":"amazon-inspector","versions":["2.5.0"]},{"id":"IN-MAL-2026-008819","import_time":"2026-07-08T22:51:24.14276232Z","modified_time":"2026-07-08T22:37:43Z","sha256":"9649d73d35e8884c30e504fec6cc9847c92cccacdf8b819301084c71418b7b60","source":"amazon-inspector","versions":["2.0.0"]},{"id":"IN-MAL-2026-008849","import_time":"2026-07-08T22:51:27.697104078Z","modified_time":"2026-07-08T22:42:17Z","sha256":"ce39ad6188d5db09f55d918767438bf340c2c3e308c5b9ff4c7b955fffe619f7","source":"amazon-inspector","versions":["2.7.0"]},{"id":"IN-MAL-2026-008820","import_time":"2026-07-08T22:51:24.237132559Z","modified_time":"2026-07-08T22:38:00Z","sha256":"10c4d9b2653126aab6550360d73a430b7a7c6229cf858b2674cc0e4715257fa9","source":"amazon-inspector","versions":["2.2.0"]},{"id":"IN-MAL-2026-008852","import_time":"2026-07-08T22:51:28.014530481Z","modified_time":"2026-07-08T22:42:43Z","sha256":"2f6918da789d7d9722baf66b8665021c43048dbe4313c45858ba3cfcccfbe64c","source":"amazon-inspector","versions":["2.9.0"]},{"id":"IN-MAL-2026-008846","import_time":"2026-07-08T22:51:27.388121198Z","modified_time":"2026-07-08T22:41:46Z","sha256":"3d702c703d92a36c4810532529d842b46e24c7e9d2ebe88e8cbc1cd9bcbbb71f","source":"amazon-inspector","versions":["2.4.0"]},{"id":"IN-MAL-2026-008850","import_time":"2026-07-08T22:51:27.813704908Z","modified_time":"2026-07-08T22:42:28Z","sha256":"64e74c42d54d4dfaf853d1d4e64143c7a355afb9cdfb86b18ed65ddadc5edc95","source":"amazon-inspector","versions":["2.8.0"]},{"id":"IN-MAL-2026-009479","import_time":"2026-07-09T22:02:35.396026398Z","modified_time":"2026-07-09T22:01:29Z","sha256":"67cc6e26cd5850573df7a1c52840cfef8e05b2ef6dce6556f137327ff1a3e07b","source":"amazon-inspector","versions":["2.6.0"]},{"id":"IN-MAL-2026-009826","import_time":"2026-07-13T07:40:11.353148731Z","modified_time":"2026-07-13T06:47:13Z","sha256":"62d4aa3c5f7523f4a10d37346a6eaa228940d76f797e13b6d2010385e81e4331","source":"amazon-inspector","versions":["2.9.1"]},{"id":"GHSA-p3j8-3227-2w78","import_time":"2026-08-18T17:28:12.586215608Z","modified_time":"2026-08-18T16:29:05Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"c0d33f834565128a6d6c1af414b6108ca0a8be8e1c85c489c824999524bc8f77","source":"ghsa-malware"}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"},{"name":"SafeDep","contact":["https://safedep.io"],"type":"FINDER"}]}

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