Poisoned Pipeline / Techniques / T0242
Rewrite the release tag to hide a published payload
Registry tarballs are immutable and git refs are not. After a malicious
release is published and noticed, the operator force-pushes the default
branch and re-points the release tag at a look-alike commit: same message,
same timestamp, same author, without the payload. The branch history then
contains no commit that the registry record names, and the diff between
the tagged tree and the tree the registry built is small — in the
WPPConnect case two files and 209 insertions. Anyone who follows a link
from a package page to the tag, or clones the repository to read the
release, reads clean source.
The registry keeps the evidence. npm records the commit a version was
built from in gitHead and keeps the tarball it built, and a provenance
attestation names the commit and the workflow run. So the mismatch is
discoverable in one comparison — fetch the tarball, fetch the commit it
names, diff them — and that comparison is the check no tag review
performs. Immutability of the artifact is what makes this recoverable at
all: had the registry allowed republishing, there would be nothing left
to compare against.
Two details mark the rewrite as deliberate rather than a maintainer
tidying up. The look-alike commits reproduce the original message and
timestamp exactly, which a revert or a second release commit would not,
and the rewrite happens within seconds of a public report — 35 seconds in
the WPPConnect case, with the force-pushes landing after the issue was
opened and before any correction was published. A CHANGELOG left pointing
at the now-unreachable commits is the usual residue.
Earlier tag repointing is not this. codfish/semantic-release-action (AS118)
and tj-actions/changed-files (AS12) moved tags and branches onto malicious
commits so consumers would fetch the payload; that is the delivery step.
Here the malicious artifact is already fixed in the registry and the tag is
moved off the commit that built it, onto a clean look-alike, after
publication.
Distinct from T0195, which spoofs author metadata inside commits that stay
in history, from T0182, which is the right to push or force-push without
review (often the same account, but a different step), from T0235, which
deletes CI runs and logs, and from T0230, which re-releases older code
under a higher version. Here the published artifact is untouched and the
source of record is edited to disagree with it.
Where this idea came from
From the 15-16 November 2026 WPPConnect npm compromise. Within 35 seconds of an external researcher opening public issues, the account that had pushed the payload force-pushed both default branches and re-pointed v2.4.1 at a look-alike commit with the same message and timestamp and without the payload; the registry kept the tarball and the gitHead naming the commit that no longer exists in any branch. Earlier tag repointing in AS118 and AS12 moved tags onto malicious commits; this is the reverse, post-publication cover-up. Distinct from T0195 (spoofed author metadata inside history), T0182 (the right to push or force-push without review), T0235 (deleted CI logs) and T0230 (older code re-released under a higher version).
- https://www.stepsecurity.io/blog/wppconnect-compromised-malicious-releases-steal-secrets-and-whatsapp-sessions
- https://safedep.io/blog/wppconnect-npm-whatsapp-session-stealer
Mitigations
None linked yet.
Detections
None linked yet.