MAL-2026-20354: Malicious code in apache-httpclient2 (npm)

Published Nov 20, 2026
·
Updated

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 childprocess.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.

Affected Software

1 affected component
npm/apache-httpclient2=1.0.0

Event History

Nov 20, 2026
Advisory Published
via OSV·12:00 AM
Data Sourced
via OSV·12:00 AM
DescriptionAffected Software

Frequently Asked Questions

1

What systems are exposed to this package's data collection?

Any host where the npm package is installed and its postinstall hook runs is exposed. The package profiles the host and sends the collected JSON to 8.152.163.60:8058 over a raw TCP connection.

2

What evidence can indicate that a host installed or executed the package?

Look for the package's postinstall behavior, including src/postinstall.js spawning src/main.js as a detached background process. Network connections to 8.152.163.60 on port 8058 are also a relevant indicator.

3

What information does the package collect?

It collects the hostname, username, CPU and memory details, GPU, screen resolution, locale, running process list, and checks related to browsers and interactive sessions. The information is sent as JSON to the remote server.

4

Are related npm package names also relevant to triage?

Yes. apache-httpclient6, apache-httpclient7, and apache-httpclient10 are identified as sibling packages sharing the same command-and-control server, so they should be included in package and dependency searches.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203