Poisoned Pipeline / Techniques / T0258
Stage the payload across successive versions
A package that arrives with a complete dropper in its first upload is one
file for a scanner to match. The same dropper assembled over a dozen
uploads is a version history. Publish the clean copy first, then add the
pieces one at a time — an install hook that does nothing, a downloader
with an empty URL list, the URL list with nothing else changed — and let
the account accumulate releases for an hour before the payload is
complete. Every individual diff is a small, explicable edit to a working
utility, the package has provenance-shaped history by the time it
matters, and a review that starts at the latest version sees only the
last increment.
In the clampony releases of 24 November 2026 the sequence ran from a
0.0.0-stage placeholder through an empty setup.js at 1.0.1, a downloader
with urls = [] at 1.0.6 and 1.0.7, and the two stealer URLs at 1.0.9,
with 1.0.10 and 1.0.11 following within 44 seconds. The sibling package
safeclamp3 staged the other half in parallel: 1.0.7 added a preinstall
hook that ran an empty script, and 1.0.11 added a detached launch of a
file whose whole content was console.log(1). Twelve versions from two
day-old accounts in seventy-three minutes, and no single one of them is
a dropper.
The cost is that the package is incomplete for as long as the operator
is staging it — in this case the write-and-run step never arrived, and
every install still fetched the payload from Pastebin. The technique
buys evasion at the price of a window in which the package is live,
installed and not yet doing anything, which is also the window in which
it is easiest to read.
Where this idea came from
From clampony and safeclamp3 on 24 November 2026, twelve versions from two day-old accounts in seventy-three minutes, each adding one piece of a dropper (an empty setup.js, a downloader with urls = [], the URL list) so no single upload was a dropper and both accounts had a version history before the payload appeared. Distinct from T0230 (one old release re-versioned above the head) and T0242 (a tag rewritten after the tarball shipped) — here every release is a small, plausible increment.
- https://opensourcemalware.com/blog/enterotoxin-malware
- https://safedep.io/blog/clampony-npm-preinstall-telegram-stealer
Mitigations
None linked yet.
Detections
None linked yet.
Observed in incidents (2)
- 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
- Dormant GitHub accounts published polished, AI-generated OSINT and DeFi projects until they trended, then added "maintenance" commits that deployed a JavaScript/HTA backdoor called PyStoreRAT and a Rhadamanthys stealer