Malicious npm package 'crassula' beacons hostname via postinstall script
Severity: critical · Patch status: no-fix-needed · Since 2026-12-02
OpenSSF reported a malicious npm package, crassula@1.0.0, published 2026-12-01 by the account mariannakalnina, which published nothing else. The package poses as 'lightweight utility helpers for payment and banking integrations' but contains no functional code — index.js only returns the string 'crassula'. Its postinstall script runs node beacon.js on npm install, sending the machine's hostname in an HTTPS GET to workinc[.]top with parameters identifying npm and the package. Any developer or CI system installing the package leaks its hostname to attacker-controlled infrastructure. GitHub published advisory GHSA-hpj3-hhg2-43xj on 2026-12-02 with CWE-506 (embedded malicious code); there are no patched versions and the package should simply be removed and never installed.
What to do
- Search dependency locks and install logs for crassula@1.0.0 and remove it from any project or cache
- Check proxy/egress logs for connections to workinc[.]top, especially around npm install times
- Block the domain workinc[.]top at network egress
- Audit machines that installed the package for further compromise and rotate credentials if exposure is suspected
- Enable npm install scripts restrictions / audit and pin dependencies
Sources
All live incidents on Threat Watch