Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
Malicious package

console-fmt-clinpm

console-fmt-cli is a confirmed malicious npm package (MAL-2026-6688) that steals credentials and exfiltrates sensitive data (malicious versions 2.0.0, 2.1.0, 2.2.0…). Do not install it — remove it immediately and rotate any exposed credentials.

Malicious code in console-fmt-cli (npm)

MAL-2026-6688
Immediate action
Remove the package, then rotate any secrets the build/runtime could reach.
npm uninstall console-fmt-cli

What this malware does

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.

On 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.

Malicious versions

11 flagged
2.0.02.1.02.2.02.3.02.4.02.5.02.6.02.7.02.8.02.9.02.9.1

Indicators of compromise (SHA-256)

7ccb50e741119fa832c2a87e47315cb08f14f9dfe5422bba40aa7788b2aab7de
5677f42ebe445c9ba00a52b5949c246521ffc155c809e409a950946168ab9d33
65210122c1cb3c21171f22dd103ecd19f0595523e1b9085bd0eaed77ea475c64
9649d73d35e8884c30e504fec6cc9847c92cccacdf8b819301084c71418b7b60
ce39ad6188d5db09f55d918767438bf340c2c3e308c5b9ff4c7b955fffe619f7
10c4d9b2653126aab6550360d73a430b7a7c6229cf858b2674cc0e4715257fa9
2f6918da789d7d9722baf66b8665021c43048dbe4313c45858ba3cfcccfbe64c
3d702c703d92a36c4810532529d842b46e24c7e9d2ebe88e8cbc1cd9bcbbb71f
64e74c42d54d4dfaf853d1d4e64143c7a355afb9cdfb86b18ed65ddadc5edc95
67cc6e26cd5850573df7a1c52840cfef8e05b2ef6dce6556f137327ff1a3e07b
62d4aa3c5f7523f4a10d37346a6eaa228940d76f797e13b6d2010385e81e4331

Detection & response playbook

Credential / info stealer
  1. Find it

    Scan your lockfiles (package-lock.json, pnpm-lock.yaml, yarn.lock, requirements.txt, poetry.lock, etc.) and build artifacts for console-fmt-cli (11 malicious versions). O3 Security's supply-chain scanner checks every dependency against known-malicious package intelligence at install time and in CI, flagging console-fmt-cli across your stack and pipelines.

  2. If you installed it — respond

    console-fmt-cli is built to steal secrets, so assume every credential the build or runtime could read is compromised. Remove it from your project and lockfile, then rotate ALL exposed secrets — npm/registry tokens, cloud keys, CI/CD secrets, SSH keys, and any .env values — from a known-clean machine. Audit logs for unauthorized use of those credentials.

  3. Did it already run?

    If console-fmt-cli was ever installed, its post-install/runtime payload may have already executed. O3's L7 egress monitoring and runtime eBPF sensors detect the credential exfiltration or command-and-control callback after install and block the malicious outbound channel, so you catch and contain the actual compromise — not just the presence of the package.

  4. How O3 protects you

    O3 blocks console-fmt-cli before install through its supply-chain scanner, and if it has already run, detects and severs the exfiltration or C2 callback at runtime through L7 egress monitoring and eBPF.

Frequently asked questions

No. console-fmt-cli on npm has been identified as a malicious package (versions 2.0.0, 2.1.0, 2.2.0, 2.3.0, 2.4.0, 2.5.0, 2.6.0, 2.7.0, and 3 more flagged). It should be removed immediately — do not install or keep it in your dependency tree.

Campaign

IN-MAL-2026-008544IN-MAL-2026-008551IN-MAL-2026-008848IN-MAL-2026-008819IN-MAL-2026-008849IN-MAL-2026-008820IN-MAL-2026-008852IN-MAL-2026-008846IN-MAL-2026-008850IN-MAL-2026-009479IN-MAL-2026-009826

References

Credits

  • Amazon Inspector · finder
  • SafeDep · finder

Detect & block this

O3 blocks console-fmt-cli-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the credential exfiltration and severs the channel.

Explore

console-fmt-cli (npm) malicious package — MAL-2026-6688 | O3 Security