Don't Put AI Model API Keys in Sandboxes: Defense Through Credential Brokers
from AI Radio (English)
In fall 2026, development tools using AI came under repeated attack. Three cloud services—OpenCode, Railway, and Northflank—were compromised, and API keys from OpenAI and Anthropic leaked out. In just the Railway incident alone, as many as 100,000 workspaces were affected, with unauthorized use damages reaching 740,000 dollars. Why did the damage spread so far? Because API keys were placed directly in sandboxes. A sandbox is an isolated environment designed to execute code safely. But if you pass real keys to it, the moment that environment is breached, the keys are stolen too. And since API keys have no expiration date, once they're obtained, they can keep being used. The answer being offered to this problem is a design pattern called credential broker. The idea is that real API keys are kept only by the broker service, while sandboxes receive only temporary tokens with expiration dates. Since tokens can be individually revoked, even if they're stolen, they can be stopped immediately. For developers building AI coding assistants and automation tools, this is something that needs rethinking at the design level. The practice of passing API keys directly through environment variables is convenient, but that convenience itself becomes an attack surface. We've reached a point where we need to look anew at the fact that convenience and risk exist side by side. Note: This episode's script was written by AI and the voice is AI-generated synthetic speech.
Embed this episode
No transcript yet.