hn.today

FAFO: Don't Get Got

neonronin.sh12 points1 comments
Screenshot of FAFO: Don't Get Got

AI sandboxes often need credentials for model APIs and other services, but giving those keys to a sandbox provider creates a costly breach risk: attackers can steal and spend them. Recent incidents underline the exposure. Railway reported that up to 1.85% of workspaces - about 100,000 - could have had environment variables decrypted, with roughly $740,000 in unauthorized spending. Northflank said secrets were exfiltrated from 1.5% of customer teams, while OpenCode disclosed a distillation attack affecting 1.4% of console users who had linked their own providers. Secret proxies do not fully solve the problem if the provider still stores the real keys.

The proposed alternative is a self-hosted credential broker, deployed in an account the user controls, such as Cloudflare. It stores upstream credentials encrypted and gives sandboxes temporary, revocable grants paired with a broker URL; the broker validates each grant, inserts the real key, and forwards the request. The tool supports OpenRouter, Anthropic, OpenAI, GitHub, and other key-based HTTPS APIs, with grant lifetimes from one second to seven days. A stolen grant remains a risk, but its access is limited to selected integrations and can be cut off without rotating the underlying keys. The broker also separates administrative, grant-issuing, and sandbox-access credentials. This is a practical stopgap until providers offer short-lived tokens and workload identity broadly; users should still inspect the open-source code rather than trust it blindly.

Read on neonronin.sh1 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Security

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.