OpenCode and LiteLLM breached in one week, both attacks hunted AI API keys

victorialslocum · x · 2026-10-22

Two supply-chain security incidents in one week both targeted AI API keys:

The author notes that after OpenCode, common advice was to self-host a gateway — yet LiteLLM itself is now a target, because anything holding all your API keys is the highest-value attack surface. Three takeaways: keep API keys in as few places as possible, set budget caps on every AI provider, and enforce least privilege everywhere so a stolen credential can't reach everything.

Original post →

More from coding & agent

coding & agent channel →