Poisoned Pipeline / Techniques / T0283
Paste the payload into a script the pipeline already runs
Adding a workflow file, or editing one, is the part of a repository a CI
platform, a review tool and a security scanner all watch. A shell script
the workflow calls is not. The operator appends the payload to a script
that is already committed and already invoked — an update.sh, a
tests/retry_env.sh — and the repository's own vetted workflow runs it on
the next push, with the job's permissions and secrets intact.
In the November 2026 wfx-loot campaign this was the fourth delivery
shape alongside the three that touch a workflow or package.json. In
nextcloud/docker the 1,500-line stealer was appended to update.sh; the
repository's update.sh workflow started run #2675 three seconds after the
commit. In PancrePal-xiaoyibao/MinerU-xyb it went into
tests/retry_env.sh. StepSecurity's account of why the shift mattered is
mechanical: GitHub held every payload run it could still observe in a
workflow file with the status action_required, so those runs never
started, while a copy in a shell script changes no workflow file and is
executed by the repository's own workflow without a hold. Hook and
script commits rose from 10 to 70 per three hours to 838 on the morning
of 11 November and 1,210 on the morning of 12 November.
This is not T0236, where the payload sits in a path a scanner excludes:
the file is scanned, reviewed and executed, and only its content changed.
Nor is it T0151, where a package's install hook runs on a consumer's
machine. The execution here is the target repository's own CI, on the
target's own runner, from a file the pipeline was already trusted to run.
Where this idea came from
From the November 2026 wfx-loot campaign, where the stealer was appended to update.sh at nextcloud/docker and tests/retry_env.sh at PancrePal-xiaoyibao/MinerU-xyb after GitHub held workflow-file runs with the status action_required. Distinct from T0236 (a path the scanner excludes) and T0151 (a package install hook on a consumer machine) — here a scanned, reviewed, already-invoked script is edited and the target's own workflow runs it.
Mitigations
None linked yet.
Detections
None linked yet.