Malicious code in zystcdemo (npm)
- MAL-2026-18447
Description
zystcdemo presents itself as a simple date formatting utility and runs its postinstall payload on npm install with `node postinstall.js`. The payload collects the `whoami` result, hostname, platform, and current time, then sends them in a POST request to `https://srctest.zystcc.cn/collect`; npm account `zyst` published it on 2026-10-29 (UTC). Package self-describes as a date-formatting utility but ships a postinstall lifecycle script (postinstall.js) that runs automatically on `npm install`. The script executes `whoami` via child_process and collects os.hostname() and os.platform(), then POSTs the resulting JSON payload to the hardcoded endpoint https://srctest.zystcc.cn/collect. The data-collection behavior is unrelated to the advertised date-utility purpose and the destination host is not associated with the package's stated functionality.
Text from the OSV record.
Recommendation
Remove the package and rotate any secret the machine that installed it could reach. There is no version to update to.
Affected
zystcdemonpm
No versions listed
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.