Accidentally pasted an API key into AI chat? Revoke it first
Revoke the exposed key at the service that issued it. Then replace it in your applications, review usage since the paste, and clean up the chat and any copies.
Research, incident lessons, and practical advice on leaked API keys, AI coding bills, and protecting customer data in AI workflows.
Revoke the exposed key at the service that issued it. Then replace it in your applications, review usage since the paste, and clean up the chat and any copies.
A public commit exposed a private repository credential. Keep coding agents away from credentials that can read production data and rotate secrets at the issuer when exposure is detected.
Review what each cloud key can access when you enable a new API. Keep browser identifiers separate from credentials that can read private resources or trigger paid inference.
Measure cost per completed task. Trim the code you send, use a cheaper model for bounded work, and set a budget before giving a coding agent room to iterate.
Budget IDE subscriptions, AI credits, and separate provider-key traffic independently. Compare costs over completed engineering work and set limits at each billing boundary.
Scan agent transcripts and tool output before sharing them. A secret can enter the transcript through a file read or a command result without ever being pasted into a prompt.