Protet Intel / npm

Is clamp4js malicious?

Yes. Protet confirmed 1 version of clamp4js as malicious

First confirmed on 2026-11-25.

Affected versions

VersionConfirmedProtet record
1.0.52026-11-25PROTET-NPM-2026-307

What it does

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.

Other reports

What to do if you installed it

  • Remove the package from every project that uses it, directly or through another dependency.
  • Pin a clean version if you need the package: one that is not listed above and that you have checked yourself, or replace the package. A version missing from this page is not cleared.
  • Check your lockfiles (package-lock.json, yarn.lock, pnpm-lock.yaml) for the affected versions, including as a transitive dependency, and in CI caches.
  • Rotate credentials that were reachable from any machine or build that installed it: npm and GitHub tokens, cloud keys, SSH keys, and secrets in environment variables or CI settings.

Status history

  • 2026-11-25: 1.0.5 named by Protet Intel

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. Feeds: NDJSON, Atom. How Protet Intel works.