{
 "affected": [
  {
   "package": {
    "ecosystem": "npm",
    "name": "clamp4js"
   },
   "versions": [
    "1.0.5"
   ]
  }
 ],
 "aliases": [
  "MAL-2026-20645"
 ],
 "credits": [
  {
   "contact": [
    "https://protet.io/intel/npm/clamp4js/1.0.5"
   ],
   "name": "Protet",
   "type": "FINDER"
  }
 ],
 "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.",
 "id": "PROTET-NPM-2026-307",
 "modified": "2026-11-26T09:39:01Z",
 "published": "2026-11-25T21:39:01Z",
 "references": [
  {
   "type": "REPORT",
   "url": "https://protet.io/intel/npm/clamp4js/1.0.5"
  }
 ],
 "schema_version": "1.6.0",
 "summary": "Malicious code in clamp4js (npm)"
}