Poisoned Pipeline / Incidents / AS475

AS475 · 2026-10

A Capacitor config file eval'd a URL from an environment variable on every CLI run

Git / GitHub

A 28-line capacitor.config.ts in a public repository fetched a base64-encoded URL
out of process.env.AUTH_API_KEY, decoded it with atob, fetched the response and
passed it to eval, reporting every failure as 'Auth Error!'. Capacitor's CLI imports
that file on every sync, open and run, so it executes before the app does. It arrived
in a commit titled 'docs: replace generic architecture diagram with real one',
carrying roughly four thousand lines of font assets, with the loader, the environment
key, a hidden editor task and a 29 KB obfuscated module in the same diff. The
repository had removed that exact loader two months earlier and scrubbed the
environment key three months before that. Nothing shipped through a package registry,
so no lockfile, advisory or version range describes it.

Mapped techniques

supply-chain Capacitor config loader

T0111 · Resource Development · Malicious code contribution to an open-source repository

The loader arrived inside an unrelated documentation commit.

T0159 · Execution · Malicious artifact execution

The config file was imported and eval'd by the CLI on every run.

Framework gaps noted

Sources