API keys, tokens, or secrets exposed in source code repositories, client-side applications, logs, or error messages enable unauthorized access to third-party services and internal systems.
Immediate Response
1Revoke the exposed API key or secret immediately.
2Generate a new key and update all legitimate consumers.
3Review API usage logs to determine if the key was exploited.
4Request takedown of public repository commits containing the secret.