MAL-2026-20645: Malicious code in clamp4js (npm)

Published Nov 25, 2026
·
Updated

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

1 affected component
npm/clamp4js*

Event History

Nov 25, 2026
Advisory Published
via OSV·11:30 PM
Data Sourced
via OSV·11:30 PM
DescriptionAffected Software

Frequently Asked Questions

1

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.

2

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.

3

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.

4

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.

5

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.

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