Poisoned Pipeline / Techniques / T0256

T0256 · Execution · TA04 · observed in 1 incident(s)

Run command and control through a code repository the token can write

SCM Posture Open Source Security

A repository is a file store with an authenticated API, version history
and no egress rule that a developer workstation or build host treats as
suspicious. Point a loader at the GitHub contents API with an embedded
fine-grained token and it can read instructions and fetch payloads from
the same place a developer fetches code.

In the November 2026 NuGet operation the loader, updater.exe, first
requested <victim id>/log1.dat under a path in a public repository. On a
404 it created the file with the commit message "downloading new version",
holding a host profile — user name, hostname, OS, MAC address, RAM,
storage, external IP — derived in part from the Windows MachineGuid. It
then requested <victim id>/log2.dat, took the first 16 bytes of that file
as an IV, decrypted the rest with AES-256-CBC under the SHA-256 of a
passphrase, mapped the resulting PE in memory, called its exported Start
function and deleted itself with a batch file. Every victim appears as a
folder, so each one can be given a different next stage. Requests used a
Chrome Client Hints string as the User-Agent over a WinHTTP session named
CppHttp/1.0, and the repository returned 404 to unauthenticated requests,
so anyone without the token sees nothing to scan.

Distinct from T0168, which is exfiltration to a code repository and runs
in one direction; here the repository is the instruction queue as well as
the payload store. Distinct from T0238, where the payload server is
resolved from a public blockchain transaction: there the chain is a
resolver, not a channel. What makes the technique cheap is the token, and
what makes it durable is that the same account can be replaced without the
loader changing.

Where this idea came from

Public incident / advisory

From the updater.exe loader in the same operation, which created <victim id>/log1.dat with a host profile through the GitHub contents API, read <victim id>/log2.dat as an AES-256-CBC payload keyed by a passphrase hash, mapped the PE and deleted itself. Distinct from T0168 (exfiltration to a code repository, one direction) and T0238 (the payload server resolved from a blockchain transaction, a resolver rather than a channel).

Mitigations

None linked yet.

Detections

None linked yet.

Observed in incidents (1)

References