Poisoned Pipeline / Techniques / T0233
Redeem a build credential at internal platform services
A build farm needs one credential that works from anywhere inside the
platform: to push the resulting image, to fetch the source, to report the
build's status. That credential is usually scoped by what it is allowed to
do at the service it was written for, and not by which services will
accept it. If the platform's own internal APIs — a workflow scheduler, a
job queue, an artifact store, a status service — trust anything presenting
it, then a build that escapes its sandbox holds a key to the control
plane rather than a key to one registry.
The attack is therefore not a privilege escalation in the usual sense: no
permissions are changed and nothing is exploited a second time. The
attacker takes a credential obtained from a build and presents it to the
internal services that were never meant to be reachable from inside a
build. What it buys depends on those services: a scheduler that holds per
build metadata hands over the credentials and variables of other builds, a
cache or snapshot store hands over repository state, a job log store hands
over output. Each is a normal feature of the platform being asked a
normal question by a caller it considers legitimate.
The hardening lesson is one-directional: authenticating a caller is not
authorising it. A service that accepts a build credential has to check
what that build was allowed to ask for, and a build credential should be
restricted to the one destination it needs — a single image in a single
registry — with the restriction enforced at the receiving service rather
than trusted from the caller's configuration.
Distinct from T0131, which is about a user account holding more than it
needs, and from T0183, which is about stealing a short-lived token. This
is a service-to-service trust decision that is too wide.
Where this idea came from
From Railway's 10 November 2026 incident report. A credential taken from a partial build-isolation escape, intended only for registry pushes, was accepted as a trusted Temporal client by the build scheduler, which let the attacker read other builds' stored variables and repository snapshots. Authenticating the caller was treated as authorising it. Distinct from T0131 (an over-privileged account) and T0183 (stealing a short-lived token).
- https://blog.railway.com/p/incident-report-october-security-incident
- https://www.stepsecurity.io/blog/railway-security-incident-cicd-runtime-security
Mitigations
None linked yet.
Detections
None linked yet.
Observed in incidents (2)
- agent-framework 1.26.1 and 1.26.2, published 33 minutes apart through a maintainer account created the same day, planted a .pth startup hook that ran a credential stealer on every Python start in the installed environment and minted fresh GitHub Actions, Azure DevOps and Azure managed-identity tokens
- Railway build-infrastructure access decrypted a subset of customer environment variables