Malicious package · npm
Malicious code in apache-httpclient4 (npm)
1.0.0No safe version. Remove it.What it does
postinstall ("node src/postinstall.js") spawns src/main.js detached in the background. main.js is obfuscated, requires net and child_process.execSync, profiles the host (e.g. wmic queries) and connects over raw TCP to C2 8.152.163[.]60:8058. Same publisher and C2 as apache-httpclient2 (MAL-2026-20354). Reported to npm on 2026-11-25 and replaced with a security holding package (0.0.1-security) on 2026-11-25.
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 apache-httpclient4Sources