Poisoned Pipeline / Incidents / AS475
A Capacitor config file eval'd a URL from an environment variable on every CLI run
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
The loader arrived inside an unrelated documentation commit.
The config file was imported and eval'd by the CLI on every run.
Framework gaps noted
- No technique covers build-tool configuration files as an execution vector. The corpus models package install scripts, not CLI-imported config.