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

目标: 1000 元 · 已筹: 1359 元

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

decimal-format-core

MAL-2026-6689
2026-07-13 09:12:52
OpenSSF Malicious Packages
该软件包被识别为恶意包。建议隔离受影响环境,并排查凭据泄露和异常网络连接。

Summary

Malicious code in decimal-format-core (npm)

凭据/密钥窃取远程访问后门安装阶段执行文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
214
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmdecimal-format-core*
npmdecimal-format-core3.1.0
npmdecimal-format-core3.2.0
npmdecimal-format-core3.3.0
npmdecimal-format-core3.5.2
npmdecimal-format-core3.5.3
npmdecimal-format-core3.5.4
npmdecimal-format-core3.5.5
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-07-13T09:12:52Z","published":"2026-06-30T00:00:00Z","schema_version":"1.7.4","id":"MAL-2026-6689","aliases":["GHSA-jpc6-jpfr-f453"],"summary":"Malicious code in decimal-format-core (npm)","details":"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.\n\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (07d73eb9b3d87a4d1a65dcb4e485fca74b01a1473a305a52345a5c7be95b0631)\nPackage 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.\n\n## Source: ghsa-malware (7418b3fb88f3b25773cddacaa807900d6e5aab486723f17a4bc6306f1aa247fd)\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":{"ecosystem":"npm","name":"decimal-format-core"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["3.5.3","3.5.2","3.2.0","3.1.0","3.3.0","3.5.5","3.5.4"],"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"}],"indicators":{"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=="}}]},"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/decimal-format-core/v/3.5.3"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/decimal-format-core/v/3.5.2"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/decimal-format-core/v/3.2.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/decimal-format-core/v/3.1.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/decimal-format-core/v/3.3.0"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-jpc6-jpfr-f453"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/decimal-format-core/v/3.5.4"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/decimal-format-core/v/3.5.5"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]},{"name":"SafeDep","type":"FINDER","contact":["https://safedep.io"]}],"database_specific":{"malicious-packages-origins":[{"source":"amazon-inspector","sha256":"7b2044c0f0e89b9329d67d82ec5e5308318aa06503c4e7c2065f9211d00159d2","import_time":"2026-06-30T21:35:49.457963069Z","id":"IN-MAL-2026-007812","modified_time":"2026-06-30T20:58:36Z","versions":["3.5.3"]},{"source":"amazon-inspector","sha256":"41dcb1eea736b0aba6c078a55b8b60553925e6981452e5c4f56e57e419801f87","import_time":"2026-06-30T21:35:49.345220775Z","id":"IN-MAL-2026-007811","modified_time":"2026-06-30T20:58:25Z","versions":["3.5.2"]},{"source":"amazon-inspector","sha256":"2f05d898f2df459b73e0f596c5a32f304f067189aebcf113308461c01223efbb","import_time":"2026-07-08T22:51:30.205414998Z","id":"IN-MAL-2026-008871","modified_time":"2026-07-08T22:45:26Z","versions":["3.2.0"]},{"source":"amazon-inspector","sha256":"5dbe5d2cb44c76cea7687f602605084c02fc811ba652c1ccba2d27b491268f7c","import_time":"2026-07-08T22:51:30.304282514Z","id":"IN-MAL-2026-008872","modified_time":"2026-07-08T22:45:34Z","versions":["3.1.0"]},{"source":"amazon-inspector","sha256":"ff503dca96ac8ccafcff6d4200ef4b60525e8f6fa62d5a604ed672a044f0fd24","import_time":"2026-07-08T22:51:30.111850277Z","id":"IN-MAL-2026-008870","modified_time":"2026-07-08T22:45:18Z","versions":["3.3.0"]},{"source":"ghsa-malware","sha256":"7418b3fb88f3b25773cddacaa807900d6e5aab486723f17a4bc6306f1aa247fd","import_time":"2026-07-13T07:24:22.601964502Z","id":"GHSA-jpc6-jpfr-f453","modified_time":"2026-07-13T06:49:21Z","versions":["3.5.5","3.5.4","3.5.3","3.5.2","3.3.0","3.2.0","3.1.0"]},{"source":"amazon-inspector","sha256":"d0f9f6c8a5a3e88e1d6ad2df471da63ffd6eb76952455de784307a92d40dcd19","import_time":"2026-07-13T07:40:11.974620916Z","id":"IN-MAL-2026-009834","modified_time":"2026-07-13T06:50:55Z","versions":["3.5.4"]},{"source":"amazon-inspector","sha256":"07d73eb9b3d87a4d1a65dcb4e485fca74b01a1473a305a52345a5c7be95b0631","import_time":"2026-07-13T09:10:56.986005063Z","id":"IN-MAL-2026-009875","modified_time":"2026-07-13T08:19:27Z","versions":["3.5.5"]}]}}

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