VYPR

npm · Malicious package advisory

Malware

calculator-preinstall-chain-demo

GHSA-5mwr-h84x-47h6

Malicious code in calculator-preinstall-chain-demo (npm)

Details

**Severity:** Critical

**Affected versions:** `= 1.1.2`

[email protected] has no install script of its own but depends on exactly [email protected], so npm install runs that package's preinstall script (`node preinstall.js`). The script POSTs the machine's hostname and the OS username to the Discord webhook `https://discord.com/api/webhooks/1566215853794394162/xsqpEbSn-cc3DU2AKWdzqWnXX5hjTfV-gUePQZ4evrHGlZctMd40TKCrN42qnJd7moc1`. Both packages were published by the npm account bigdevin55 on 2026-11-01.## Source: ossf-package-analysis (88c07c18a13b451e734355c6d2bb4ca05dc4c76209fe483b97403c968c09c0ea)
The OpenSSF Package Analysis project identified 'calculator-preinstall-chain-demo' @ 1.1.1 (npm) as malicious.

It is considered malicious because:

- The package communicates with a domain associated with malicious activity.

---

Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/af37b0d0bcd7755fbd3de21aea4d43feaa29fc85/osv/malicious/npm/calculator-preinstall-chain-demo/MAL-2026-18453.json))

**References:**
- https://github.com/ossf/malicious-packages/blob/af37b0d0bcd7755fbd3de21aea4d43feaa29fc85/osv/malicious/npm/calculator-preinstall-chain-demo/MAL-2026-18453.json
- https://www.npmjs.com/package/calculator-preinstall-chain-demo
- https://github.com/advisories/GHSA-5mwr-h84x-47h6

Compromised versions (1)

  • = 1.1.2

Any computer that installed or ran a compromised version should be considered fully compromised. Rotate every secret on that machine from a clean environment.