Poisoned Pipeline / Techniques / T0232

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

Suppress exfiltration when scanner canaries are present

Open Source Security Code Security Secrets Hygiene

The payload collects regardless, then checks whether the machine looks
like an analysis environment before it uploads. Any environment variable
whose name or value matches a list of markers suppresses the network call:
vendor and product names, and the placeholder credentials that sandbox
images seed to bait malware (example-dot-com addresses, obviously fake
keys, the account names dynamic-analysis services use). If a marker is
present the collection still happened and the staged file still exists —
only the transfer is skipped — so the evasion costs the operator nothing
and costs a scanner the traffic it would have alerted on.

Two consequences. Any dynamic analysis that seeds fixed canary values is
detectable by the malware it is meant to catch, so canaries have to vary
per run and be treated as sensitive; a canary that appears in a public
sandbox image is a marker rather than a tripwire. And a clean network
capture from a sandbox is not evidence the artifact does nothing: it is
evidence the artifact declined to run in that environment, which is worth
recording as a finding in itself.

The markers are usually stored encoded — base64 asset names or split
strings — so that a scan of the package for vendor names does not match.
Scanning for the decoder, the marker comparison and the conditional around
the upload is more productive than scanning for the names.

Distinct from T0145, which is about moving data out through a channel that
escapes inspection, and from T0176, which is about disabling the host's
security controls. Nothing here is disabled; the transfer is conditional.

Where this idea came from

Public incident / advisory

From the same campaign. lwd-uri-util 0.1.4 and later skip the upload when any environment variable name or value matches one of fifteen base64-encoded keywords that decode to security vendor names and the bait words sandboxes use. Collection and the plaintext JSON in Cargo's output directory happen either way, so the evasion hides the traffic and not the theft.

Mitigations

None linked yet.

Detections

None linked yet.

Observed in incidents (2)

References