clampony@1.0.11
Malicious code in clampony (npm)
Analysis
clampony@1.0.11 ships a preinstall dropper disguised as a numeric utility. The package describes itself as "Safely clamp a value between two other values" and its index.js contains only a clamp function, but package.json declares "preinstall": "node setup.js", and setup.js does nothing but reach out to the network. On install it fetches two remote payloads in parallel — hxxps://pastebin[.]com/raw/z6K1Rg8J and hxxps://calcal[.]ru/p/t5edjvR/raw — races them with Promise.any, aborts the slower request, and allocates a destination path in the OS temp directory as join(tmpdir(), randomUUID()). It then passes that randomly-named path to a run(filepath) payload executor; in this version the executor body is empty and any failure is swallowed with process.exit(1). The package has no dependencies, no bin entries, no README and no functional relationship between its advertised purpose and the install-time download of arbitrary content from a public paste host and a non-standard third-party domain. IOCs: hxxps://pastebin[.]com/raw/z6K1Rg8J, hxxps://calcal[.]ru/p/t5edjvR/raw; destination pattern $TMPDIR/<random UUID>.
- analyzed by
- Leitwacht
- first seen
- Nov 24, 2026, 07:36 AM
- analyzed
- Nov 24, 2026, 07:37 AM
Related advisories
- clampony@1.0.9 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.