Poisoned Pipeline / Techniques / T0241

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

Ask the payload's own server whether to verify it

Open Source Security Artifact Security Code Security

Verification exists to decide whether a payload came from a trusted
source, and it can only do that if its inputs come from somewhere the
payload's author does not control. Two deployments of the same mistake
appeared in one VS Code extension. In the first, the trust decision is a
substring test: a planning board's isTrustedSource() returns true for any
canvas id containing "pure", the pull endpoint is called with no id at
all so the server chooses which object to return, and the server supplies
the id. An unsigned js: note therefore executes through the branch that
the README says cannot execute unsigned notes. In the second, the
verifier's key comes from the same relay as the payload:
keyPinning.js fetches the signing public key from /api/canvases/hooks/
pubkey on first use and pins it, so whoever serves the payload also chose
the key that is supposed to constrain it. Signature checking runs,
passes, and means nothing.

The shape generalises past this package. Any gate whose pass condition is
read from attacker-influenced data is not a gate — an allowlist keyed on
a caller-supplied name, a trust flag in a config the attacker writes, a
"welcome" or "first-seen" identifier the server assigns, a pinning step
that seeds itself from the channel it protects. The giveaway in review is
a short, cheap condition sitting next to a strong-looking one: a
substring match beside a signature check is almost always a bypass that
someone added to make a test pass, and if the field it reads is remote,
the test is the attacker's.

Distinct from T0220, where the payload arrives after review and the
server decides what to send; here the payload is delivered, the check
runs, and the check is answered by the same party. Distinct from T0207
(integrity verification skipped or forged) and from T0236 (which files
are read), because in both of those the verifier's own logic is bypassed
or narrowed rather than consulted with the wrong input. The control that
fits is structural: keys and trust decisions must originate outside the
channel that carries the payload, and review should treat any trust
predicate keyed on server-supplied identifiers as an execution path.

Where this idea came from

Security research

From Yeeth Security's 3 November 2026 analysis of three VS Code extensions that execute server-supplied code. Mesa Panel's isTrustedSource() trusts any canvas id containing "pure" and the server chooses the id, while keyPinning.js fetches the signing key from the same relay and pins it, so the verification consults the party it is supposed to constrain. Distinct from T0220 (payload arrives after review), T0207 (verification skipped or forged) and T0236 (files the scanner never opens).

Mitigations

None linked yet.

Detections

None linked yet.

Observed in incidents (1)

References