Poisoned Pipeline / Techniques / T0262

T0262 · Defense Evasion · TA07 · observed in 1 incident(s)

Hand the next stage to an interactive interpreter's standard input

Open Source Security

A process listing shows the command line, so code passed on a command
line is readable by anyone who looks: node -e "<payload>" is a
confession in ps. An interactive interpreter avoids that. Start the
interpreter with no script and no -e, wait for its prompt, and write
the code to its standard input. The listing shows only node -i, and
the code exists in the pipe between two processes rather than in
either one's arguments.

PolinRider's Python loader used this on 24 November 2026. The loader —
58 lines in a planted utils module or a conftest.py — fetched a
31,134-byte JavaScript stage from an Ethereum transaction, wrote it to
a temporary .js file and ran node on it with a 20-second timeout.
That stage then spawned a second Node process with -i, detached
and windowsHide, waited for the > prompt and wrote its next stage
to the child's stdin. The 20-second limit applied to the loader's
subprocess.run, not to the detached child, so the payload outlived
the command that started it and the parent's process listing showed
nothing but an interactive shell.

This is distinct from T0245, which is about detaching the payload so it
outlives the job: here the process may stay in the foreground and the
concealment is in the argument vector. It is also distinct from T0170,
where the interpreter itself is trojanised — this uses the stock
interpreter exactly as designed.

Where this idea came from

Public incident / advisory

From PolinRider's Python loader of 24 November 2026, whose on-chain JavaScript stage spawned node -i detached, waited for the prompt and wrote the next stage to its stdin, so a process listing showed only node -i. Distinct from T0245 (detach so the payload outlives the job) — the concealment here is that the code never appears in the argument vector.

Mitigations

None linked yet.

Detections

None linked yet.

Observed in incidents (1)

References