Poisoned Pipeline / Techniques / T0282
Rewrite the cloud trust relationship so access outlives the run
A CI job that can reach a cloud role gets short-lived credentials. When
the workflow that produced them is reverted and its run deleted, those
credentials expire and the incident looks closed. The durable path is not
the credential — it is the trust relationship that issues it. Change that
and a later request mints a new one from outside the pipeline.
In the November 2026 wfx-loot campaign the injected workflow did this in
three clouds. On AWS it rewrote a role's trust policy to"Principal": {"AWS": "*"} so any principal can assume it, and created
an access key; the sessions it opened are named wfx-<pid>, which is
what makes the activity findable in CloudTrail afterwards. On Azure it
added federated identity credentials named wfx-ci-… to app
registrations, so an external identity can present a token and receive
the app's access. On GCP it used service-account impersonation throughgenerateAccessToken and signJwt against roles the pipeline could
reach.
The asymmetry is the point. The attacker needs one workflow run and a
cloud permission the job already had. The defender has to notice that a
policy document changed, and the change is a legitimate-looking API call
made with valid credentials from the organisation's own runner. Reverting
the branch, deleting the run and rotating the named secrets leaves the
rewritten trust policy in place, and the next AssumeRole, federated
token exchange or generateAccessToken succeeds without touching the
repository again.
Distinct from T0165, which is a token created inside the platform the
attacker already controls, and from T0234, which is the pre-existing
over-broad trust policy that lets a workflow reach the role in the first
place. Here the policy itself is the artifact that gets modified.
Where this idea came from
From the wfx-loot stealer's post-run step on 10 to 12 November 2026, which rewrote an AWS role trust policy so its Principal matched "*", added wfx-ci-* federated identity credentials to Azure app registrations and used GCP service-account impersonation through generateAccessToken and signJwt. Distinct from T0165 (a token created in the platform already controlled) and T0234 (a pre-existing over-broad trust policy the workflow inherited).
Mitigations
None linked yet.
Detections
None linked yet.