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.=-
Package advertises itself as a numeric/text formatting utility but ships an install-time and import-time dropper. The postinstall script runs scripts/install-check.cjs, which reads package.json.homepage (https://logstream-api.online/config/dfc-sync.json) as a remote configuration channel, fetches a .tgz bundle URL from that JSON, downloads and extracts the tarball into a .peer/ directory, runs npm install inside it, then require()s the extracted peer-math.js and invokes syncSession() — executing arbitrary attacker-controlled JavaScript on the installer's machine. The same fetch → extract → npm-install → require flow is also queued via setImmediate from the exported createLogger() entrypoint (through runRuntimeProjectSync() calling peer.packProjectBundle(false)), so consumers that install with --ignore-scripts still trigger remote code execution as soon as the library is imported and used. Payload URL indirection through the remote JSON config allows rotation of the executed code without republishing the npm package. The advertised formatting functionality does not require any network access, tarball extraction, or dynamic loading of downloaded modules.
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.
{
"malicious-packages-origins": [
{
"id": "IN-MAL-2026-007812",
"import_time": "2026-06-30T21:35:49.457963069Z",
"modified_time": "2026-06-30T20:58:36Z",
"sha256": "7b2044c0f0e89b9329d67d82ec5e5308318aa06503c4e7c2065f9211d00159d2",
"source": "amazon-inspector",
"versions": [
"3.5.3"
]
},
{
"id": "IN-MAL-2026-007811",
"import_time": "2026-06-30T21:35:49.345220775Z",
"modified_time": "2026-06-30T20:58:25Z",
"sha256": "41dcb1eea736b0aba6c078a55b8b60553925e6981452e5c4f56e57e419801f87",
"source": "amazon-inspector",
"versions": [
"3.5.2"
]
},
{
"id": "IN-MAL-2026-008871",
"import_time": "2026-07-08T22:51:30.205414998Z",
"modified_time": "2026-07-08T22:45:26Z",
"sha256": "2f05d898f2df459b73e0f596c5a32f304f067189aebcf113308461c01223efbb",
"source": "amazon-inspector",
"versions": [
"3.2.0"
]
},
{
"id": "IN-MAL-2026-008872",
"import_time": "2026-07-08T22:51:30.304282514Z",
"modified_time": "2026-07-08T22:45:34Z",
"sha256": "5dbe5d2cb44c76cea7687f602605084c02fc811ba652c1ccba2d27b491268f7c",
"source": "amazon-inspector",
"versions": [
"3.1.0"
]
},
{
"id": "IN-MAL-2026-008870",
"import_time": "2026-07-08T22:51:30.111850277Z",
"modified_time": "2026-07-08T22:45:18Z",
"sha256": "ff503dca96ac8ccafcff6d4200ef4b60525e8f6fa62d5a604ed672a044f0fd24",
"source": "amazon-inspector",
"versions": [
"3.3.0"
]
},
{
"id": "GHSA-jpc6-jpfr-f453",
"import_time": "2026-07-13T07:24:22.601964502Z",
"modified_time": "2026-07-13T06:49:21Z",
"sha256": "7418b3fb88f3b25773cddacaa807900d6e5aab486723f17a4bc6306f1aa247fd",
"source": "ghsa-malware",
"versions": [
"3.5.5",
"3.5.4",
"3.5.3",
"3.5.2",
"3.3.0",
"3.2.0",
"3.1.0"
]
},
{
"id": "IN-MAL-2026-009834",
"import_time": "2026-07-13T07:40:11.974620916Z",
"modified_time": "2026-07-13T06:50:55Z",
"sha256": "d0f9f6c8a5a3e88e1d6ad2df471da63ffd6eb76952455de784307a92d40dcd19",
"source": "amazon-inspector",
"versions": [
"3.5.4"
]
},
{
"id": "IN-MAL-2026-009875",
"import_time": "2026-07-13T09:10:56.986005063Z",
"modified_time": "2026-07-13T08:19:27Z",
"sha256": "07d73eb9b3d87a4d1a65dcb4e485fca74b01a1473a305a52345a5c7be95b0631",
"source": "amazon-inspector",
"versions": [
"3.5.5"
]
}
]
}[
{
"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"
}
]
{
"evidence_files": [
{
"path": "scripts/install-check.cjs",
"sha256": "4f384fe4808beea005a2d50e4dc6ba8b1fab3fbd669bc12203b72e30ecbc0fa5",
"tlsh": "ffa1359919a272734ab1ebb8c722941dff1340233521c360f6de96952fb72a4c352dec"
},
{
"path": "package.json",
"sha256": "1518c8f4a560d8a4e75a08b60c300075c3661ebb73b61d326e7b9196161037e2",
"tlsh": "50f08b60db180e332ce94e55489a52016aa58ed70a843c0a73d3610c8f8d67b05ff24e"
}
],
"package_integrity": [
{
"filename": "decimal-format-core-3.5.3.tgz",
"hashes": {
"sha1": "8c8aab3306761d72a6b351a8f2054938d01aef81",
"sha512_sri": "sha512-IauqZcUdFWIgK9kfIMCVnaHTsr/KoknMw7T7E9snQnExX70wRJE51zGg1aG2seGvm3smC/HAJ7IMK3m3Y5gBig=="
}
}
]
}
{
"domains": [
"logstream-api.online"
]
}
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/decimal-format-core/MAL-2026-6689.json"