MAL-2026-20433
Malicious code in clampony (npm)
Auswirkung
clampony copies the npm package clamp (its index.js, test and README) and adds a `preinstall` hook, `node setup.js`, that runs on npm install. In versions 1.0.9 to 1.0.11, setup.js downloads a next stage from `https://pastebin.com/raw/z6K1Rg8J`, with `https://calcal.ru/p/t5edjvR/raw` as a fallback; in these versions the step that would write the download to disk and run it is still an empty function. Both URLs serve the same obfuscated Windows stealer that copies Telegram Desktop session data, SSH keys, AWS, Google Cloud, Azure, Kubernetes, Docker, Terraform, npm, PyPI, Git and GitHub CLI credentials, FileZilla, WinSCP and MobaXterm sessions and shell histories, zips them and uploads the archive to a Telegram bot through a list of HTTP proxies, and also downloads and runs `https://195.123.6.29:443/enterotoxin.exe`. The npm account tinafo6772 published seven versions of clampony within 20 minutes on 2026-11-24, adding the downloader step by step. clampony@1.0.10 declares a preinstall hook (`node setup.js`) that executes on `npm install`. setup.js races a fetch against https://pastebin.com/raw/z6K1Rg8J and https://calcal.ru/p/t5edjvR/raw, writes the response to a randomly-named file under the OS tmpdir (join(tmpdir(), randomUUID())), and invokes a run() entrypoint on the downloaded content. Error handling obfuscates the HTTP status by multiplying it by 13579 before logging, obscuring diagnostic output. The declared purpose of the package is a trivial numeric clamp utility, which has no legitimate reason to fetch code from pastebin at install time. The pastebin and calcal.ru destinations are anonymous, mutable, attacker-controlled hosts whose contents can change at any time after publish, so even if the current response body is empty the install-time fetch-and-stage scaffold constitutes a dropper against any machine running `npm install clampony`.
Betroffene Pakete
| Ökosystem | Paket | Betroffen | Behoben in |
|---|---|---|---|
| npm | clampony | unbekannt | nicht erfasst |