In November 2026 Railway published its final report on a breach in which the attacker searched customers’ environment variables for AI provider keys; unauthorised spend reached about $740,000. The same week Cursor published a postmortem in which an exposed vendor key revealed coding-agent traces, some containing plaintext credentials. Vibe Coding Weekly’s two checks: know where your agent traces are stored and who can reach them, and put a provider-side spend limit on every AI key (Vibe Coding Weekly #55).
Figures and claims about other companies are as reported at the time and summarised by Vibe Coding Weekly; check the original announcement before relying on them.
Where WordPress sites keep AI keys
- AI plugins (content, chat, SEO) storing keys in the database.
- wp-config or environment variables on the host.
- Deployment and hosting dashboards.
- Agent sessions, logs and transcripts.
Protect them
- Spend limits on every key, set at the provider. See Hard budget caps.
- One key per site or tool, so a leak is contained and easy to revoke.
- Least access: only the models and features each key needs.
- No keys in chat, code or screenshots. Use the host’s secret store. On this site, credentials are injected by a proxy and never appear in the session.
- Clean logs: make sure debug logs and agent transcripts do not record keys.
- Rotate keys regularly and immediately after any suspected leak.
- Monitor usage for spikes at odd hours.
If a key leaks
- Revoke it first, investigate second.
- Check usage history for unknown activity.
- Contact the provider about fraudulent charges.
- Find how it leaked before issuing a new one.
More in Security for vibe coders.
Source: Vibe Coding Weekly #55. This article is our own take for WordPress and Bricks builders; it does not reproduce the newsletter.
