Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

Malicious code in decimal-format-core (npm)

0
Critical
Published: 06/30/2026 (06/30/2026, 00:00:00 UTC)
Source: GCVE Database
Product: decimal-format-core

Description

Malicious npm package published as part of a coordinated DeFi-themed infostealer campaign. `decimal-format-core` uses a dropper technique: a `postinstall` hook executes `scripts/install-check.cjs` at install time, which fetches a second-stage infostealer payload from the C2 domain `logstream-api.online`. The infostealer harvests cryptocurrency wallet vaults (MetaMask, Phantom, Solflare, OKX, Coinbase, TrustWallet, Backpack, TronLink), Chrome/Firefox/Brave cookies and credentials, SSH keys, AWS credentials, `.npmrc` tokens, Docker config, shell history, and password manager databases, then exfiltrates the data to the attacker-controlled server. --- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (41dcb1eea736b0aba6c078a55b8b60553925e6981452e5c4f56e57e419801f87) On npm install, the package's postinstall script (scripts/install-check.cjs) fetches a JSON config from https://logstream-api.online/config/dfc-sync.json, reads a peerBundle URL from it, downloads a tarball to a temp directory, extracts it into a.peer/ directory, runs `npm install` inside the extracted tree, then require()s the extracted peer-math.js module and invokes syncSession(). The fetched payload is not pinned, hashed, or signature-verified, and the source host is fully attacker-controlled and mutable. This executes arbitrary remote code in the installer's context as a default consequence of `npm install`. The package presents itself with description 'Logform-style numeric and text formatting utilities for Node.js loggers' and keywords (logform, logger, format) that target users searching for the legitimate logform logging library, while the README frames the remote fetch-and-exec as a benign 'Enterprise sync / peer bundle' feature; the path runs by default with no opt-in because resolvePeerBundleUrl falls through to the hardcoded homepage URL when env vars are unset. ## Source: ghsa-malware (7418b3fb88f3b25773cddacaa807900d6e5aab486723f17a4bc6306f1aa247fd) Any 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.

Affected software

npmghsa
decimal-format-core
Affected versions
=3.5.3=3.5.2

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/09/2026, 10:50:20 UTC

Technical Analysis

The 'decimal-format-core' npm package (versions 3.5.2 and 3.5.3) contains malicious code that activates during installation via a postinstall hook executing 'scripts/install-check.cjs'. This script fetches a JSON configuration from a malicious C2 domain (logstream-api.online), downloads a tarball containing a second-stage infostealer payload, installs it, and executes code that harvests a wide range of sensitive credentials and data from the victim's environment. The package attempts to appear legitimate by using keywords and descriptions similar to the well-known 'logform' logging library and disguises the remote code execution as an 'Enterprise sync / peer bundle' feature. The remote payload is not verified by hash or signature, allowing arbitrary code execution in the installer's context by default. This threat is categorized as critical due to the breadth and sensitivity of the stolen data.

Potential Impact

Successful installation of the malicious 'decimal-format-core' package results in arbitrary remote code execution during the npm install process. The attacker gains access to highly sensitive information including cryptocurrency wallet vaults (MetaMask, Phantom, Solflare, OKX, Coinbase, TrustWallet, Backpack, TronLink), browser cookies and credentials for Chrome, Firefox, and Brave, SSH keys, AWS credentials, npm authentication tokens, Docker configuration files, shell history, and password manager databases. This data exfiltration can lead to severe financial loss, account compromise, and broader system infiltration.

Mitigation Recommendations

No official patch or remediation is currently documented for this malicious package. Users and organizations should avoid installing 'decimal-format-core' versions 3.5.2 and 3.5.3. It is recommended to audit dependencies carefully, verify package authenticity, and use trusted sources. Monitoring for this package in dependency trees and removing it if found is advised. Since the malicious behavior occurs during installation, preventing installation or using package integrity verification tools can help mitigate risk. Stay updated with vendor or repository advisories for any future remediation.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
MAL-2026-6689
Osv Schema Version
1.7.4
Aliases
[]
Ecosystems
["npm"]
Database Specific Severity
null
Cvss Version
null

Threat ID: 6a4452d327e9c797198dfd6d

Added to database: 06/30/2026, 23:35:47 UTC

Last enriched: 07/09/2026, 10:50:20 UTC

Last updated: 07/28/2026, 11:01:37 UTC

Views: 39

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses