MAL-2026-20645: Malicious code in clamp4js (npm)
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.
Affected Software
Event History
Frequently Asked Questions
Which installations are exposed to the download behavior?
Installations of clamp4js 1.0.5 or 1.0.13 are exposed when their npm postinstall script runs. Versions 1.0.2 and 1.0.9 have an empty or disabled loader.
Does the package execute the file it downloads?
The postinstall scripts download the first response received from either stage URL and write it to a randomly named file in the temporary directory, but they do not execute that file. Version 1.0.13 also sends a GET request to urlto[.]me/2rrih after writing the file.
What should be investigated on systems where an affected version was installed?
Review temporary-directory files created around the npm installation, especially files matching the SHA-256 ca2b7eced5937817b2aca2d50542d2e171bc95593be72a94c158616ed17a5334. Hunt for connections to pastebin[.]com/raw/z6K1Rg8J, calcal[.]ru/p/t5edjvR/raw, urlto[.]me/2rrih, and 195.123.6.29:443/enterotoxin[.]exe.
What is the likely impact if the observed second-stage Node.js script runs?
The observed script only runs on Windows and collects Telegram Desktop data, SSH keys, cloud and developer credentials, file-transfer client data, and shell histories into a ZIP archive. It uploads the archive to a Telegram bot, directly or through HTTP proxies, and also downloads enterotoxin[.]exe.
Are there related packages or indicators worth checking?
The same stage URLs are also used by clampony, identified as MAL-2026-20433. Environments with evidence of either package should be reviewed for the shared network indicators and downloaded-file activity.