cvelo
P2 · HighMalware

Malicious code in apache-httpclient6 (npm)

  • MAL-2026-20355

Description

Malicious package. Name-squats the Java Apache HttpClient on npm. The postinstall hook (`src/postinstall.js`) spawns `src/main.js` as a detached background process, which profiles the host (hostname, username, CPU and memory, GPU, screen resolution, locale, the running process list with a browser check, interactive-session check) using child_process.execSync and sends the JSON over a raw TCP socket to 8.152.163.60:8058. In a sandboxed install the package connected to 8.152.163.60. Sibling packages apache-httpclient2, apache-httpclient6, apache-httpclient7 and apache-httpclient10 share the C2.

Text from the OSV record.

Affected

  • apache-httpclient6npm

    • No versions listed

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.