decimal-format-core@3.5.4
Malicious code in decimal-format-core (npm)
Analysis
The postinstall hook (scripts/install-check.cjs) fetches a JSON configuration from the package's homepage URL (logstream-api[.]online), extracts a peerBundle URL from the response, downloads a gzip-compressed tarball from that URL, extracts it using shell tar, runs npm install on the extracted code, and executes the installed module's syncSession() function. All downloaded artifacts are deleted after execution. The package's homepage field in package.json points to the attacker-controlled config endpoint. The numeric.js and logger.js files are benign decoy code; the malicious payload is delivered at install time from the remote server.
- analyzed by
- Leitwacht
- first seen
- Jul 13, 2026, 06:38 AM
- analyzed
- Jul 13, 2026, 06:42 AM
- weekly installs
- 139
Related advisories
- mailconfirmer@3.3.11
- velocityfix@1.0.0
- node-core-libs@1.0.0
- ordered-btree@3.2.2
- @caspianph/storyteller@1.1.13
- vite-plugin-vue-extend@1.0.9
- vfat-tools@2.0.0
- sickle-wrapper@0.2.0
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.