NIST deprecates RSA-2048 from 2030. Find every one of them before attackers do.
Malicious package

apache-httpclient7npm

Advisory published Updated

apache-httpclient7 is a confirmed malicious npm package (MAL-2026-20356) that opens a backdoor for remote access (malicious version 1.0.0). Do not install it — remove it immediately and rotate any exposed credentials.

Malicious code in apache-httpclient7 (npm)

MAL-2026-20356
Immediate action
Remove the package, then rotate any secrets the build/runtime could reach.
npm uninstall apache-httpclient7

What this malware does

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.

Malicious versions

1 flagged
1.0.0

Detection & response playbook

Backdoor / remote access
  1. Find it

    Search your lockfiles and build artifacts for apache-httpclient7 (version 1.0.0).

  2. If you installed it — respond

    apache-httpclient7 establishes remote access, so treat any host that installed it as fully compromised. Isolate the machine, remove the package, rotate all credentials it could reach, and rebuild from a trusted image rather than cleaning in place — a backdoor may have planted additional persistence.

  3. Did it already run?

    If apache-httpclient7 was installed, its post-install payload may already have run. Removing the package does not undo that — check outbound connections and credential use from the install window onward.

Frequently asked questions

No. apache-httpclient7 on npm has been identified as a malicious package (version 1.0.0 flagged). It should be removed immediately — do not install or keep it in your dependency tree.

Credits

  • wormsign · finder

Detect & block this

O3 blocks apache-httpclient7-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the C2 callback and severs the channel.

Explore

apache-httpclient7 (npm) malicious package — MAL-2026-20356 | O3 Security