Poisoned Pipeline / Techniques / T0245

T0245 · Defense Evasion · TA07 · observed in 4 incident(s)

Detach the payload so it outlives the job

CI/CD Posture Cloud Security

A CI job's lifetime is measured by its steps. The runner starts each step,
waits for it to exit, and when the last one returns the job is over: logs
are closed and uploaded, the workspace is cleaned, and on hosted runners the
machine is destroyed. Code that wants to keep working after that point has
to stop being a child of the step. A double fork with setsid() does it — the
intermediate process exits, the grandchild is reparented away from the job's
process tree and its session, and the step returns normally while the
payload keeps running.

Two things follow. The exfiltration is no longer bounded by the step's
timeout, which matters for a payload that has to make several token requests
and compress a large bundle before it can send anything. And nothing the
detached child prints, throws or fails at reaches the job log, because its
output is not attached to the step any more; in the agent-framework
PyPI releases of 17 November 2026 the child suppressed its own exceptions on
top of that. The build looks clean, the step's exit code is the one the tool
returned, and any work still in progress is invisible to the person reading
the run.

Where fork() is unavailable or fails, the same payload fell back to a daemon
thread, which is weaker — it dies with the interpreter — but still keeps the
work off the main thread for the life of the process. The pattern is
ordinary systems programming, which is what makes it easy to miss: nothing
in a diff of the payload reads as evasion unless the reader asks why a
diagnostics module needs to leave the session.

Distinct from T0235, which destroys the record of a run that already
happened, and from T0232, which decides whether to exfiltrate at all. Here
the record stays intact and honest; it simply does not cover the part that
runs after the step returns.

Where this idea came from

Public incident / advisory

From the same 17 November 2026 agent-framework releases, whose stealer set an anti-recursion flag, forked, called setsid() and collected from the detached child, falling back to a daemon thread when fork failed and suppressing exceptions throughout. The exfiltration is not bounded by the step's timeout and nothing it does reaches the job log, while the step's own exit code and output stay normal. Distinct from T0235 (destroying the record of a run that already happened) and T0232 (deciding whether to exfiltrate), and from T0172, since nothing is left running on the victim host once the runner is torn down.

Mitigations

None linked yet.

Detections

None linked yet.

Observed in incidents (4)

References