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

clamp4jsnpm

Advisory published Updated

clamp4js is a confirmed malicious npm package (MAL-2026-20645) that steals credentials and exfiltrates sensitive data. Do not install it — remove it immediately and rotate any exposed credentials.

Malicious code in clamp4js (npm)

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

What this malware does

clamp4js runs a postinstall script on npm install. In 1.0.5 (setup.js) and 1.0.13 (install.js) the script decodes two strings that look like Edge and Chrome installer URLs into hxxps://pastebin[.]com/raw/z6K1Rg8J and hxxps://calcal[.]ru/p/t5edjvR/raw, downloads whichever responds first and writes the response to a randomly named file in the temporary directory. The scripts do not execute the downloaded file. 1.0.13 additionally sends a GET request to hxxps://urlto[.]me/2rrih after the file is written. In 1.0.2 and 1.0.9 the loader is empty or disabled. The same stage URLs are used by clampony (MAL-2026-20433).

On 2026-11-25 the first URL served an obfuscated Node.js script (SHA-256 ca2b7eced5937817b2aca2d50542d2e171bc95593be72a94c158616ed17a5334) that only runs on win32. It copies Telegram Desktop data, SSH keys, AWS, Google Cloud, Azure, Kubernetes, Docker, Terraform, npm, PyPI, Poetry, Git and GitHub CLI credentials, FileZilla, WinSCP and MobaXterm data and shell histories into a zip archive and uploads it to a Telegram bot (bot ID 9249894009, chat ID 7638757988), directly or through nine HTTP proxies. It also downloads hxxps://195.123.6.29:443/enterotoxin[.]exe to the temporary directory, starts it hidden and detached, and deletes the file after six seconds.

Malicious versions

all versions

Every published version of this package is considered malicious — remove it entirely.

Detection & response playbook

Credential / info stealer
  1. Find it

    Search your lockfiles and build artifacts for clamp4js (all published versions).

  2. If you installed it — respond

    clamp4js is built to steal secrets, so assume every credential the build or runtime could read is compromised. Remove it from your project and lockfile, then rotate ALL exposed secrets — npm/registry tokens, cloud keys, CI/CD secrets, SSH keys, and any .env values — from a known-clean machine. Audit logs for unauthorized use of those credentials.

  3. Did it already run?

    If clamp4js 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. clamp4js on npm has been identified as a malicious package (all published versions flagged). It should be removed immediately — do not install or keep it in your dependency tree.

References

Credits

  • Robin Frehner, Protet · finder

Detect & block this

O3 blocks clamp4js-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the credential exfiltration and severs the channel.

Explore

clamp4js (npm) malicious package — MAL-2026-20645 | O3 Security