Poisoned Pipeline / Incidents / AS527

AS527 · 2026-11

Two npm packages published within 73 minutes copied the clamp utility and added a preinstall hook that fetched a live Telegram credential stealer from Pastebin and calcal.ru but never saved or ran it, while the same stealer, given a working environment, downloads a new Windows RAT that calls itself Enterotoxin

npmWindows softwareDeveloper workstation

Two npm packages, clampony and safeclamp3, appeared on 24 November 2026
from two accounts created that day — tinafo6772 and felisox354, one
package each — and published twelve versions between them in
seventy-three minutes. Both are copies of hughsk/clamp, a one-function
utility that clamps a number between two bounds: the same index.js, the
same README, the same MIT licence with Hugh Kennedy's name still in it,
and the same invented author, "Larno Karninsky", in both manifests.
Neither package links a repository. Every published version ships the
working clamp function; what changes is the preinstall hook added on top
of it.

clampony's hook is the payload. From 1.0.6 and 1.0.7 the setup.js
contains a downloader with an empty URL list; at 1.0.9 the two URLs are
filled in and nothing else changes. Both
https://pastebin.com/raw/z6K1Rg8J and https://calcal.ru/p/t5edjvR/raw
served the same 49,280-byte obfuscated JavaScript on 24 November,
SHA-256 ca2b7eced5937817b2aca2d50542d2e171bc95593be72a94c158616ed17a5334,
so from 1.0.9 every install of clampony fetched a live credential
stealer and sent the installer's IP address to both hosts. The hook uses
Promise.any() across the two requests and aborts the loser, imports
writeFile and spawn, generates a random temporary path — and calls an
empty run() function. The file is read into a Buffer and discarded.
Versions 1.0.9, 1.0.10 and 1.0.11 all carry the download code and all
three stop at the same empty function.

safeclamp3's last version, 1.0.11, holds the other half of that step and
nothing else. Its setup.js starts a second Node process with detached,
stdio ignored and unref, running a file named ensure-tpm-antitamper.js
whose entire content is console.log(1) — fourteen bytes, no network
destination, no credential path, no reference to Enterotoxin. The two
packages look like two halves of one dropper being developed in public:
clampony has the remote fetch and no launch, safeclamp3 has the hidden
launch and no payload. A clamp function has no reason to do either at
install time. Both packages were still listed on npm when the
OpenSourceMalware write-up was published, and neither had a newer
version at 04:37 UTC that day; clampony carries OpenSSF and OSV
records.

The stealer the hook fetches runs on Windows only and refuses any other
platform. It stages copied files under
%TEMP%\files-staging-<random>\contents and targets three directories
whole — %USERPROFILE%\.config\gcloud\legacy_credentials,
%APPDATA%\GitHub CLI and %USERPROFILE%\.ssh — plus individual files:
.aws\credentials, gcloud\credentials.db, .azure\accessTokens.json and
.azure\config, .kube\config, .docker\config.json,
.terraform.d\credentials.tfrc.json, .npmrc, .pypirc, Poetry's auth.toml,
.git-credentials, FileZilla's sitemanager.xml, WinSCP.ini,
MobaXterm.ini, shell history for PowerShell, MSYS2 and Cygwin bash,
zsh, fish, clink and nushell, and the Windows hosts file. Telegram
Desktop is handled separately: %APPDATA%\Telegram Desktop\tdata and the
D877F783D5D3EF8C directory, which is enough to open the victim's
Telegram account elsewhere. The collection is compressed into
sysvolume.zip with tar.exe, falling back to PowerShell's
ZipFile::CreateFromDirectory, and archives over 50 MiB are dropped.

Exfiltration goes to Telegram. The archive is posted as exfil.zip
through sendDocument with a file count in the caption, and success,
partial-failure and error reports — stack traces included — follow
through sendMessage. The bot ID is 9249894009 and the chat ID
7638757988; both write-ups redact the token. Nine authenticated HTTP
proxies are configured and the retry loop alternates between them and a
direct connection. While it collects, the stealer also downloads
https://195.123.6.29:443/enterotoxin.exe in a function named
bringBeautifulGift, saves it to %TEMP% under a random name, starts it
detached with a hidden window and deletes the file six seconds later.
The address sits in a RIPE range registered to Tranquila-Host Ltd
(AS203826), and no publicly trusted certificate for it appears in
Certificate Transparency logs.

enterotoxin.exe is 352,256 bytes, PE32+ x86-64, unsigned and not packed,
with a normal import table and seven ordinary sections — SHA-256
48cf14560a8c2c5eaa984078cb345a81bc6d49d6695a06851499a3a31260aa91, PE
timestamp 2026-11-24 00:03 UTC, ninety-eight minutes before the first
safeclamp3 placeholder was published. Its delivery server identifies
itself as EnterotoxinControl/1 Python/3.13.5 and the binary names itself
in its User-Agent as enterotoxin/0.1. Started with no arguments it
copies itself to
%LOCALAPPDATA%\Programs\Microsoft Store\MicrosoftStoreUpdaterV<n>.exe,
adds four scheduled tasks — \MicrosoftSoftware\Ensure Updater,
\Microsoft\Windows\WindowsUpdate\Ensure Updater, \Enterotoxin\Agent and
\MicrosoftSoftware\StoreUpdateMaintenance — and a Run value named
MicrosoftStoreUpdaterV, then starts a second copy with --agent. The
task names pair Microsoft-like wording with an explicit Enterotoxin
marker, and the removal path checks for that marker before deleting
anything.

The same installation mode rewrites the shortcuts pinned to the Windows
taskbar. Each keeps its icon and its visible identity, but its target
becomes the agent with --payload and the original program as the
argument, so clicking a pinned browser or editor starts the malware
first and then the application. Pinned web links and shell: items are
skipped. Other modes — --infect, --scan, --recovery, --report,
--prepare-server, --payload — list, restore and report on the rewritten
shortcuts, which is a maintenance interface rather than an accident.

Tasking runs from the host that served it. The agent hashes the
registry MachineGuid into an agent ID and polls
/enterotoxin/<agent-id>/control with X-Enterotoxin-* headers, reporting
free execution slots; tasks arrive with a runtime of python or batch.
Python interpreters are located through PyLauncher and PythonCore
registry keys, PATH, ProgramW6432, virtual environments and user-local
installs, probed with -I -S, and the server-supplied source is embedded
in a wrapper that deletes its own temporary file, Base64-decodes the
body and runs exec(compile(...)). Batch tasks are written to temporary
.bat files and run through cmd.exe /d /s /c. Each runs in a job object
with a time limit; exit code, duration and Base64-encoded stdout and
stderr go back to /results. Task state lives under
%LOCALAPPDATA%\Microsoft\Store\UpdateState\Tasks as control.lock,
task-<id>, state.bin, stdout.bin, stderr.bin and result.json, each
written as a .next file before replacing the live one so an interrupted
task does not corrupt it. A second channel connects to TCP port 13599 on
the same address with a CHK1/0.1.0 handshake and the KCP reliable
transport library; its message format was not decoded.

Collection does not wait for a task. A SetWindowsHookExW low-level
keyboard hook records keystrokes to
%LOCALAPPDATA%\Enterotoxin\Keylogger\events.ksp, and a hidden window
named MicrosoftStoreUpdaterClipboardListener registers with
AddClipboardFormatListener. Both write into a transactional spool at
%LOCALAPPDATA%\Microsoft\Store\UpdateCache — spool.meta, spool.lock,
append.txn, append.txn.next and obj-<sequence>.spy objects marked SPY1,
SPYA, SPYB, SPYC, SPM1 and SPT1 — so records survive a crash and upload
later. The binary contains screen-capture code built on GetDC,
CreateDIBSection and BitBlt and asks for virtual-screen metrics, which
covers every monitor; OpenSourceMalware reads that as confirmed capture,
SafeDep reports that no code path starts it directly and expects a task
to.

Against analysis the agent is unusually direct. It checks the running
process list against twelve names — taskmgr.exe, resmon.exe, perfmon.exe,
procexp.exe and its 64-bit and ARM64 builds, procmon.exe and its builds,
systeminformer.exe, processhacker.exe, processlasso.exe — and when one
is present it opens its own process and calls TerminateProcess on
itself. It also subscribes to ROOT\CIMV2 with SELECT * FROM
Win32_ProcessStartTrace so a tool started after the agent arrives ends
it too. It does not try to kill the analyst's tool, and the scheduled
tasks and rewritten shortcuts start it again later.

Neither write-up attributes the campaign. OpenSourceMalware lists the
package relationship, the custom malware name, the infrastructure, the
Telegram configuration and the development style as clustering leads and
states that nothing in the recovered material supports attribution to a
known actor. No download count, no victim and no telemetry is reported,
and the two packages were live for at least the first hours.

Mapped techniques

supply-chain Two packages copy clamp and add a preinstall hook

T0109 · Resource Development · Publish malicious artifact

clampony from tinafo6772 and safeclamp3 from felisox354, two
accounts created on 24 November 2026 that own one package each,
twelve versions between them in seventy-three minutes. Both were
still listed on npm when OpenSourceMalware published, and
clampony has OpenSSF and OSV records.

T0136 · Initial Access · Brandjacking

The name, the README, the MIT licence with Hugh Kennedy's name
in it and the seven-line index.js all come from hughsk/clamp,
so a developer who reads the package finds a working utility
and a licence that names its real author. The manifests add an
invented author, "Larno Karninsky", and no repository link —
the only thing in either package that is not clamp is the
preinstall hook.

T0151 · Execution · Installation scripts

Both manifests register "preinstall": "node setup.js", so the
hook runs on npm install before anything else in the package is
used. The package that runs it is a copy of a utility with no
install-time behaviour at all, which is what makes the hook the
entire attack surface.

post-supply-chain The hook fetches the stealer and the step that would run it is empty

T0258 · Defense Evasion · Stage the payload across successive versions

clampony 1.0.1 has an empty setup.js; 1.0.6 and 1.0.7 add the
downloader with an empty URL list; 1.0.9 fills in the two URLs
and changes nothing else; 1.0.10 and 1.0.11 follow within 44
seconds. Every step is a plausible iteration of a package being
developed, no single upload contains a complete dropper, and the
account has a version history by the time the payload appears.
1.0.7 was published before 1.0.6, so the version numbers are not
even in order. safeclamp3 runs the same sequence with the other
half of the dropper: 1.0.7 adds a preinstall that runs an empty
setup.js, 1.0.11 starts the detached no-op child.

T0159 · Execution · Malicious artifact execution

What executes is the hook, not the payload. setup.js fetches both
mirrors with Promise.any(), aborts the loser, reads the 49,280-byte
stealer into a Buffer, builds a random temp path and calls an
empty run() — in 1.0.9, 1.0.10 and 1.0.11 alike. So every install
since 1.0.9 reached pastebin[.]com and calcal[.]ru and disclosed
the installer's address to both, and none of them ran what it
fetched.

post-supply-chain The stealer sweeps developer, cloud and messaging credentials

T0184 · Credential Access · Harvesting sensitive information from files

Three directories are copied whole — gcloud legacy credentials,
the GitHub CLI folder and .ssh — alongside AWS, Azure,
Kubernetes, Docker and Terraform configs, .npmrc, .pypirc,
Poetry auth.toml, .git-credentials, FileZilla, WinSCP and
MobaXterm session files, six shells' history and the hosts file.
Telegram Desktop's tdata and D877F783D5D3EF8C are taken
separately, which turns a build machine into a messaging account
takeover. Everything is staged under
%TEMP%\files-staging-<random>\contents and zipped as
sysvolume.zip, with archives over 50 MiB discarded.

post-supply-chain The archive leaves through a Telegram bot

T0156 · Exfiltration · Exfiltration over webhooks

sendDocument posts exfil.zip to bot 9249894009, chat 7638757988,
with the file count in the caption, and sendMessage carries
success, partial-failure and error reports including stack
traces. Nine authenticated HTTP proxies are configured and the
retry alternates between them and a direct connection. Both
write-ups redact the bot token, so the bot should be treated as
live rather than identified.

post-supply-chain Enterotoxin installs as a Microsoft updater and rewrites pinned shortcuts

T0172 · Execution · Runtime backdoor

A 352,256-byte unsigned native binary, built at 00:03 UTC on 24
November, downloads from the same host that served it, polls
/enterotoxin/<agent-id>/control and runs whatever python or batch
task it is given. State is written under
%LOCALAPPDATA%\Microsoft\Store\UpdateState\Tasks with a
write-then-replace pattern; keystrokes and clipboard go to
%LOCALAPPDATA%\Enterotoxin\Keylogger and a crash-safe spool under
UpdateCache. A second channel on TCP 13599 with a CHK1 handshake
and KCP was not decoded.

T0261 · Persistence · Name the persistence entries after the operating system's own updater

Four scheduled tasks and a Run value carry the cover:
\MicrosoftSoftware\Ensure Updater,
\Microsoft\Windows\WindowsUpdate\Ensure Updater,
\MicrosoftSoftware\StoreUpdateMaintenance and a Run value named
MicrosoftStoreUpdaterV, launching
%LOCALAPPDATA%\Programs\Microsoft Store\MicrosoftStoreUpdaterV<n>.exe
with --agent. \Enterotoxin\Agent is the one task that says what
it is, and the removal path looks for that marker.

T0259 · Persistence · Rewrite the victim's shortcuts so a trusted app starts the payload

Pinned taskbar shortcuts are decoded, retargeted to the agent
with --payload and the original program as an argument, given a
temporary replacement file and swapped in atomically, keeping
the icon and visible identity. Clicking the pinned browser or
editor runs the agent first and the application second, so the
user starts the malware themselves and sees nothing wrong.
Pinned web links and shell: items are skipped, and --scan,
--recovery and --report list and undo the rewrites.

post-supply-chain The agent quits when a monitoring tool starts

T0260 · Defense Evasion · Quit when a monitoring tool starts

Twelve process names are checked at start — Task Manager,
Resource Monitor, Performance Monitor, Process Explorer, Process
Monitor, System Informer, Process Hacker and Process Lasso with
their 64-bit and ARM64 builds — and a match makes the agent
terminate its own process. A WMI subscription to
ROOT\CIMV2 SELECT * FROM Win32_ProcessStartTrace ends it when one
is started later. The tool is never touched, and the scheduled
tasks and rewritten shortcuts bring the agent back.

Framework gaps noted

Sources