Poisoned Pipeline / Techniques / T0248

T0248 · Defense Evasion · TA07 · observed in 2 incident(s)

Hide the loader past the right edge of the line the reviewer sees

Code Security Open Source Security SCM Posture

A review reads what is on the screen. Code that is on a line the reviewer
has already looked at, but beyond the width of the viewport, is code they
have not read: the line ends in a brace, the file looks complete, and the
only signal is a horizontal scrollbar that most editors show faintly and
most reviewers never touch.

In the Hardhat configuration CertiK analysed in November 2026 the loader
sat on the same line as the closing brace of module.exports, separated
from it by a long run of whitespace. With line wrapping disabled — the
default in many editors and in most code-review diff views — the visible
configuration was compiler options, network settings and the brace. The
file was also executable as written: Hardhat loads its configuration as
JavaScript, and anything after module.exports is evaluated when the file
is loaded, so the hidden code needed no import and no separate trigger.

The diff is both the detection and the concealment. A one-line change in
a configuration file is the least interesting line in a pull request, and
a reviewer who skims it sees the brace move or a value change; the length
of that line is the only evidence that something was appended. Reviewers
who read the rendered diff with wrapping on see the payload, which makes
this a technique that depends on a viewer setting rather than on any
property of the repository — the same commit is obvious or invisible
depending on how it is displayed.

Distinct from T0231, which buries a change in a whole-file line-ending
rewrite so the diff becomes unreviewable, and from T0236, which moves the
payload to a path the review tool skips. Here the file is reviewed, the
line is reviewed, and the payload is simply past the edge of it. Both
variants share the same weakness: the payload is in the diff and the
content is unmodified, so a scanner that parses the file sees it.

Where this idea came from

Security research

From CertiK's November 2026 audit finding, where a PolinRider loader sat on the closing-brace line of a Hardhat configuration behind a long run of whitespace, invisible with line wrapping off and visible only as an abnormally long line in the diff. Distinct from T0231 (a whole-file line-ending rewrite that makes the diff unreadable) and T0236 (a path the review tool skips) because here the file and the line are both reviewed and the payload is simply past the edge of the viewport.

Mitigations

None linked yet.

Detections

None linked yet.

Observed in incidents (2)

References