A password or API key leaked
A key pushed to a public repository can be found by automated scanners within minutes. Assume it has been seen: rotating it matters more than hiding it.
Get help Bring in an expert now if
- It was a cloud provider's key with broad permissions (for example an admin access key).
- Logs show the key or password was used by someone else.
- It gave access to customer or personal data.
0 of 13 done
Right now
Deleting the commit or message doesn't help: copies already exist in history, forks, caches and scanners. Where a service lets you deactivate a key, do that first and delete it once everything works on the new one.
Contain
Stolen cloud keys are often used to create their own access, or to run crypto miners on your bill.
Investigate
Recover
Close or merge open pull requests first. Rewriting never reaches forks or other people's clones, which is why rotation comes first (GitHub).
Afterwards
Sources and further reading
- GitHub: Removing sensitive data from a repository
- OWASP: Secrets Management Cheat Sheet
- AWS: Unauthorized activity in an AWS account
This checklist was checked against these public guides, which go into more depth. Bluebench isn't affiliated with them.
General guidance, not a substitute for your own incident response plan or professional help. Your ticks stay on this page only and aren't saved.