Poisoned Pipeline / Techniques / T0284

T0284 · Defense Evasion · TA07 · observed in 1 incident(s)

Publish from an unprotected branch under the release workflow's filename

CI/CD Posture Artifact Security SCM Posture

A registry's trusted publishing exchanges a CI identity token for the
right to publish, and it decides that right from what the token says
about the pipeline: the organisation, the repository, the workflow's
filename and, if the project configured one, a deployment environment.
It does not look at the git ref. A workflow file with the release
workflow's name, committed to a branch that lives for a minute, is
therefore accepted as completely as the real release job, and the
artifacts it publishes carry the maintainer's identity, the package's
history and a genuine signed attestation.

Observed in the @redhat-cloud-services compromise of 1 June 2026. With a
maintainer's credential the operator pushed a small counterfeit workflow
to throwaway branches named oidc-*, matching each repository's exact
filename down to ci.yml, ci.yaml and release.yml, triggering on a push to
any branch and requesting id-token: write. The nine recovered branches
lived between one and 73 seconds. The legitimate release workflow on main
never ran, and main's branch protection held throughout — direct pushes
were blocked and changes landed through reviewed pull requests — so the
attacker did not need to reach main at all.

The attestation does not hide any of this. npm's trusted publishing
generates a SLSA provenance attestation through Sigstore, and for
@redhat-cloud-services/types@3.6.1 it records the build honestly: the
repository, the workflow .github/workflows/ci.yaml, the commit and the
ref refs/heads/oidc-61fff775. The record is permanent and public, and
nothing in the publish path or in the usual consumer check reads it.
A verifier that asks "does this have provenance from the expected
repository?" gets a yes; the field that would have answered "was this
built from a release ref?" was present the whole time.

Distinct from T0217, where the victim's genuine pipeline is pointed at a
lookalike source repository: here the pipeline is counterfeit and the
source repository is the real one. Distinct from T0206, which is about
forged or missing provenance — this provenance is true. And distinct
from T0182, a token that carried bypass rights: branch protection was
never bypassed.

Where this idea came from

Public incident / advisory

From the 1 June 2026 @redhat-cloud-services npm compromise, where a counterfeit ci.yml/ci.yaml/release.yml on oidc-* branches that lived one to 73 seconds was accepted by npm trusted publishing because that check binds to the workflow filename and not the ref. Distinct from T0217 (the victim's real pipeline builds a lookalike source), T0206 (forged or omitted provenance — this provenance truthfully names the throwaway branch) and T0182 (a token that already held bypass rights).

Mitigations

None linked yet.

Detections

None linked yet.

Observed in incidents (1)

References