Poisoned Pipeline / Techniques / T0266
Publish a clean namesake on the registry to cover a git dependency
A dependency declared as a git repository leaves a hole in every review
that works from the registry: the tarball is clean, the code that runs is
somewhere else. The name in the manifest is what a reviewer looks up, so
publish that name on the registry first, carrying nothing but working
code.
web3-mev-error-decoder, published to npm on 9 November 2026, declared"multicall-error-decoder": "github:outgoingyang/multicall-error-decoder".
A package called multicall-error-decoder had gone up on the registry
forty-eight hours earlier, 70 files of it byte-identical to the wrapper'sdist/, with a README, a licence and no lifecycle hooks. Two npm
accounts with near-identical names published the two halves —
slimfituser for the decoy, slimfituseless for the wrapper. A reviewer who
resolves the dependency by name finds a library; a scanner that reads
only the release's tarball finds the non-registry specifier as one
finding and the dependency's code not at all. Kitsunox scored the release
MEDIUM on the specifier alone, and 12 once its resolver followed the
dependency — the gap is in the review, not in the attack.
The decoy also covers the file list. In the registry copy,dist/error-decoder/handlers.js is a finished 130-line ethers revert
decoder; in the repository the same path holds a downloader of at least
361 lines, so a diff of the two manifests and file lists shows one line
added and nothing removed.
Distinct from T0136, where a real brand is impersonated to borrow its
reputation, and from T0253, where a package is restored from a folder
inside the repository. Here the decoy exists only to make a name resolve
to something harmless, and it stays useful after the attack is published
because it remains attacker-controlled.
Where this idea came from
From web3-mev-error-decoder on 9 November 2026, whose only dependency was a github specifier pointing at outgoingyang/multicall-error-decoder and whose namesake multicall-error-decoder had been published clean two days earlier from a near-identical npm account, with the same dist/ files and the same handlers.js path used for library code in one copy and the payload in the other. Distinct from T0136 (a real brand's reputation is borrowed) and from T0253 (a package restored from a folder in the repository).
Mitigations
None linked yet.
Detections
None linked yet.