Malicious package · npm
Malicious code in crassula (npm)
1.0.0No safe version. Remove it.What it does
crassula@1.0.0 poses as "lightweight utility helpers for payment and banking integrations" but has no functional code: index.js only returns the string "crassula". Its postinstall script runs node beacon.js on npm install, which sends the machine's hostname in an HTTPS GET to hxxps://workinc[.]top/oob/o1-58b3958a911e69b33f1b1c10f5562f9bb2c0a126?h=<hostname>&m=npm&n=crassula. The npm account mariannakalnina published only this package, on 2026-12-01.
The package declares a postinstall lifecycle hook that executes beacon.js. On install, that script reads os.hostname() and performs an HTTPS GET to a hardcoded path under workinc.top, passing the installer's hostname, the package name, and the package manager as query parameters. The shipped library code is a single-line stub with no functional implementation, so the out-of-band callback is the package's only runtime behavior. The transmission is unconditional, undocumented, not caller-configurable, and discloses internal host naming to a third-party domain unrelated to any declared publisher infrastructure. The shape matches a dependency-confusion / out-of-band canary: the destination operator learns which hosts and build systems resolved this name. No credential files, environment dumps, or further code fetches are present, so blast radius is confined to host-identifier disclosure rather than secret theft or remote code execution.
Reported by ghsa-malware 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.
No fix · Remove and contain
npm uninstall crassulaSources