Poisoned Pipeline / Incidents / AS532

AS532 · 2026-11

An npm package whose tarball contained nothing but a rewritten README and one dependency declared as a GitHub repository, so npm cloned that repository and ran its install hook, while a clean package of the same name published two days earlier made the dependency read as an ordinary library and kept the payload off the registry entirely

npmGit / GitHubWindows softwaremacOS softwareDeveloper workstation

Endor Labs published this on 25 November 2026. web3-mev-error-decoder
went up on npm on 9 November at 13:35 UTC and was replaced by
0.0.1-security on 25 November at 16:14, one minute after
GHSA-hvqj-jrfw-r9mh and MAL-2026-20610 were published — sixteen days of
exposure. The name had no history before that day. It advertises itself
to MEV, sniper and arbitrage bot developers, an audience whose machines
hold hot-wallet keys, seed phrases and RPC credentials.

The 0.1.0 tarball holds no malicious code. Endor Labs reviewed the copy
the registry no longer serves: its SHA-1 and SHA-512 match the shasum and
integrity recorded in the pre-takedown metadata, npm's registry signature
over that integrity verifies, and the archive is the decoy's code with a
new name. All 70 files under dist/ — JavaScript, type definitions and
source maps — are byte-identical to multicall-error-decoder@0.1.0. Only
package.json and README.md differ. There is no child_process, no eval, no
crypto, no filesystem or environment access and no network code anywhere
in it, no lifecycle script of its own, and its four scripts are the
decoy's build, typecheck, test and smoke.

What differs is one block in the manifest: a dependency on
"multicall-error-decoder" declared as
github:outgoingyang/multicall-error-decoder. No file under dist/ imports
it. The package declares it and never uses it, and its only effect is
that npm installs it. A github: specifier sends npm to the repository
instead of a registry tarball: npm clones the default branch, runs
prepare and the other git-only lifecycle scripts where there is
something to build, packs the result, installs that pack, and then runs
its preinstall, install and postinstall hooks. The repository's
package.json carried "install": "node dist/error-decoder/handlers.js".

The decoy closes the loop. multicall-error-decoder@0.1.0 was published
two days before the malicious package, on 7 November at 09:45, by an
account named slimfituser; the malicious half came from slimfituseless.
Two accounts with near-identical names, both with free-mail addresses,
publishing the two halves of one attack points to one operator. The
registry copy has a credible README and working code — a 130-line ethers
v6 revert and panic decoder at the same path the payload occupies — so a
dependency named multicall-error-decoder reads as an ordinary library,
and a scanner that only inspects registry tarballs never sees the
dependency's code at all.

That gap is documented, not hypothetical. Kitsunox, the scanner that
recorded the sample, first raised a single MEDIUM finding on the
non-registry specifier, and its deeper stages read the release's tarball
and stopped there. After its maintainers added git-dependency resolution,
the same release scored 12 on the install-hook and install-script
findings. Kitsunox resolved the repository to commit 240aa9b685e2 on 12
November and recorded the hook's code; the repository, that commit, the
GitHub archive endpoint and the owning account all return 404 today, and
Endor Labs found no Wayback Machine or Software Heritage copy.

From that record, handlers.js is a downloader that decrypts its strings
at runtime — crypto.createDecipheriv with aes-256-cbc — and branches by
platform. On Windows it fetches an archive, writes it to disk and starts
the executable inside it with spawn(..., {detached: true}), so the child
outlives the npm install that produced it. On macOS it pipes a remote
script into the shell. Linux behaviour is not described. The path is
part of the disguise: in the registry decoy the same file is a finished
130-line decoder, and in the GitHub copy it runs to at least 361 lines,
so a reviewer comparing file lists between the two copies sees nothing
out of place.

The discovery work is in the manifest. It carries 49 keywords — mev bot,
sniper bot, arbitrage bot, trading bot, telegram bot — and the README was
rewritten for that audience, adding npm badges and dropping the decoy's
acknowledgements of the projects its code was ported from. It also
documents code the package does not contain: a Multicaller export, a
timeoutMs option and an ErrorDecoder constructor taking an options
object, against real exports of multicall, a timeout option and a
constructor taking an array of interfaces. The README advertises "zero
runtime bloat" with only peer dependencies in the same package that
declares a runtime git dependency carrying the payload. The manifest has
no repository field and no gitHead, and the package declares the MIT
licence and node >= 20.

A probable lure sits next to it. The same GitHub account, outgoingyang
(user ID 210461119), owned solana-sniping-bot, created on 2 November and
last pushed 21 minutes later, with 22 stars and appearances in GitHub
trending snapshots for the nodejs and blockchain topics on 4, 6, 7 and 8
November. Endor Labs could not confirm that the bot depended on the
package, because the repository is gone; if it did, the installs came
from developers cloning a trending repository rather than from npm
search. The download counts argue for that reading rather than against
it: npm's API reports 10,167,449 downloads over 30 days, 9,735,029 of
them on 11 November alone against roughly 60 to 4,089 a day on every
other day, which reads as inflation. The figure Endor Labs treats as
real is 11,218 downloads of 0.1.0 in the final week, and deps.dev lists
no registry dependents, so every install was a direct one.

Stage two was never recovered. With the repository and account deleted,
the AES key, the decrypted URLs and the downloaded program are unknown,
and Endor Labs says so rather than characterising the payload from its
shape. The impact is therefore bounded by what the hook can do and by
whose machine ran it: on an MEV developer's laptop that means wallet
keys, on a CI runner with no secrets it means an attacker-controlled
executable on a build host.

Mapped techniques

supply-chain A clean wrapper and a clean namesake

T0109 · Resource Development · Publish malicious artifact

web3-mev-error-decoder@0.1.0 on 9 November 2026 at 13:35 UTC,
from an account with no prior history under that name, flagged
by GHSA-hvqj-jrfw-r9mh on 25 November and replaced by
0.0.1-security one minute later. The tarball is clean: 70 of its
72 files are byte-identical to the decoy it was copied from, and
the manifest change is a single dependency block.

T0266 · Defense Evasion · Publish a clean namesake on the registry to cover a git dependency

multicall-error-decoder@0.1.0 went up two days before the
package that depends on it, from a near-identical account name —
slimfituser against slimfituseless — with working code, a
credible README and no hooks. The dependency therefore resolves
by name to a harmless entry on the registry even though the
specifier is github:outgoingyang/multicall-error-decoder, and
the same file path, dist/error-decoder/handlers.js, holds
finished library code in the decoy and the payload in the
repository. The decoy is still live and still
attacker-controlled.

supply-chain npm resolves the install hook from a repository, not the registry

T0267 · Defense Evasion · Move the install hook out of the registry into a git dependency

The published manifest declares "multicall-error-decoder":
"github:outgoingyang/multicall-error-decoder" and nothing else.
npm clones that repository, runs prepare and the other git-only
lifecycle scripts, packs the result and installs it, so the code
that executes never exists as a registry tarball. Kitsunox's
tarball review found the non-registry specifier as one MEDIUM
finding and read no further; after git-dependency resolution was
added, the same release scored 12. The repository and account
are now 404 and no archive copy survives.

T0151 · Execution · Installation scripts

The hook is "install": "node dist/error-decoder/handlers.js" in
the cloned repository's package.json, so an ordinary npm install
of a package with no install script of its own runs Node code.
Nothing in the wrapper's dist/ imports the dependency; declaring
it is the whole mechanism.

T0159 · Execution · Malicious artifact execution

handlers.js decrypts its strings with AES-256-CBC, then branches
by platform: on Windows it downloads an archive, writes it to
disk and starts the executable inside it; on macOS it pipes a
remote script into the shell. Kitsunox recorded the imports and
functions at commit 240aa9b685e2 — child_process, the
decipher, fetchPayload, fs.promises.writeFile, spawn — but not
the key, the URLs or the second stage, because the repository was
deleted.

post-supply-chain The dropped process outlives the install

T0245 · Defense Evasion · Detach the payload so it outlives the job

The Windows branch spawns the downloaded executable with
detached: true, so killing the npm install, or the build that
started it, does not stop the child. Nothing was observed running
— the sample was reviewed statically — so what the detached
process does is unknown.

Framework gaps noted

Sources