MAL-2026-18454Malicious code in calculator-preinstall-hook-demo (npm)
| Ecosystem | Package | Version |
|---|---|---|
| npm | calculator-preinstall-hook-demo | * |
| npm | calculator-preinstall-hook-demo | 1.1.2 |
{"schema_version":"1.7.4","id":"MAL-2026-18454","published":"2026-11-01T00:40:05Z","modified":"2026-11-02T16:21:00.224970046Z","aliases":["GHSA-c6pj-8fr8-qq3c"],"summary":"Malicious code in calculator-preinstall-hook-demo (npm)","details":"calculator-preinstall-hook-demo@1.1.2 presents itself as a test fixture for npm lifecycle hooks. Its preinstall script runs `node preinstall.js` on npm install, which POSTs the machine's hostname and the OS username to the Discord webhook `https://discord.com/api/webhooks/1566215853794394162/xsqpEbSn-cc3DU2AKWdzqWnXX5hjTfV-gUePQZ4evrHGlZctMd40TKCrN42qnJd7moc1`. It was published by the npm account bigdevin55 together with calculator-preinstall-chain-demo@1.1.2, which pulls it in as a dependency.\n\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: ghsa-malware (db06ea25b6b764475357882b39d46919c5c083785f24d7ab2a264085acb01d81)\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":{"name":"calculator-preinstall-hook-demo","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.1.2"],"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"}]}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/calculator-preinstall-hook-demo"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-c6pj-8fr8-qq3c"}],"database_specific":{"iocs":{"files":[{"digests":{"sha256":"9263944547c2bef40d6bc1c04578f6120c95965c138f965aa57391e663183e5f"},"note":"preinstall runs `node preinstall.js`, which POSTs hostname and username to a Discord webhook (calculator-preinstall-hook-demo@1.1.2).","paths":["package.json"],"source":"PACKAGE_ARCHIVE"},{"digests":{"sha256":"e8616aa03681bfd603d5b4767c2f9ccb45ff8e90956102a7105fde7dbc5969a3"},"note":"Executed by the preinstall script of calculator-preinstall-hook-demo@1.1.2.","paths":["preinstall.js"],"source":"PACKAGE_ARCHIVE"}],"urls":["https://discord.com/api/webhooks/1566215853794394162/xsqpEbSn-cc3DU2AKWdzqWnXX5hjTfV-gUePQZ4evrHGlZctMd40TKCrN42qnJd7moc1"]},"malicious-packages-origins":[{"id":"GHSA-c6pj-8fr8-qq3c","import_time":"2026-11-02T16:19:46.137316182Z","modified_time":"2026-11-02T16:14:49Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"db06ea25b6b764475357882b39d46919c5c083785f24d7ab2a264085acb01d81","source":"ghsa-malware"}]},"credits":[{"name":"InvisiRisk, Inc.","contact":["https://www.invisirisk.com","mailto:research@invisirisk.com"],"type":"FINDER"}]}数据来源:OpenSSF Malicious Packages · Apache-2.0