clampony@1.0.9
Malicious code in clampony (npm)
Analysis
clampony is a combosquat of the `clamp` package: its index.js, description and README are copied from the legitimate clamp module, while package.json adds a `preinstall` hook running `node setup.js`. That hook is a downloader that executes at install time regardless of what the clamping API does. It fetches a remote payload from hxxps://pastebin[.]com/raw/z6K1Rg8J and hxxps://calcal[.]ru/p/t5edjvR/raw, racing both URLs with Promise.any and aborting the slower request, then derives a destination filename in the OS temporary directory via join(tmpdir(), randomUUID()) and passes it to a run() function. Version 1.0.10 additionally imports `spawn` from node:child_process, the primitive needed to launch the downloaded file (in 1.0.9 that import is absent). Installing the package therefore performs a remote second-stage fetch inside the build/CI environment. IOCs: hxxps://pastebin[.]com/raw/z6K1Rg8J and hxxps://calcal[.]ru/p/t5edjvR/raw.
- analyzed by
- Leitwacht
- first seen
- Nov 24, 2026, 05:51 AM
- analyzed
- Nov 24, 2026, 05:52 AM
Related advisories
- clampony@1.0.11 same package
- clampony@1.0.10 same package
- string-utils-assistant@1.0.0
- @throttlecodes/react-native-callkit@1.0.2
- abir-fca@0.0.25
- passbch@1.0.0
- @zervonex/baileys@4.0.9
- @zervonex/baileys@4.0.8
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.