Protet Intel / npm / clamp4js

clamp4js 1.0.5

confirmed malicious PROTET-NPM-2026-307

Every version of this package that Protet Intel names: Is clamp4js malicious?

Details

clamp4js copies the code of the npm package clamp and adds a postinstall script (node setup.js) that runs automatically on npm install. The script contains two harmless-looking browser-installer URLs that a small decoding function turns into https://pastebin.com/raw/z6K1Rg8J and the fallback https://calcal.ru/p/t5edjvR/raw; it downloads the second stage from whichever answers first and writes it to a randomly named file in the system temporary directory. The same loader and second-stage URLs are used by clampony (MAL-2026-20433), where the second stage is a credential stealer that collects Telegram sessions and SSH, cloud, Kubernetes, Docker, npm, PyPI and Git credentials and sends them to a Telegram bot. In 1.0.5 the downloaded stage is written to disk but not run; version 1.0.13 re-enables the loader with split strings and adds a request to https://urlto.me/2rrih. The package also depends on uclamp, published by a second throwaway account, whose 1.0.1 declares a preinstall script with an empty setup.js. Remove the package; if it was installed, treat credentials on that machine as exposed and rotate them.

Records

Status history

  • 2026-11-25: named as a Protet finding
  • 2026-11-26: active

Want to know if your own builds pull packages like this? Add the Protet GitHub Action.

Think this is wrong? Write to hello@protet.io and we will look at it.