API Key Leak Detector
Scan text and code for exposed API keys and tokens, and respond correctly when one is found.
Need this handled by experts?
Radiatus runs VAPT, managed SOC & security engineering for regulated teams.
Prefixes make keys findable
Most providers give keys a recognisable prefix — sk_live_, ghp_, AKIA, AIza, xoxb- — precisely so leaked credentials can be detected. That helps defenders and attackers equally: automated scanners crawl public repositories continuously, and an exposed key is typically found and used within minutes of being pushed.
Rotate first, investigate second
The instinct is to delete the commit. That does not help, because the key was public and may already be copied. Revoke and reissue immediately, then check provider logs for use during the exposure window, then clean history. Any order that puts cleanup before rotation leaves a live credential in the wild during the response.
Deleting a commit does not remove it
Git history retains the blob, and on hosted platforms a pushed commit can remain reachable through the API even after a force push. Rewriting history with filter-repo or BFG is required, every clone and fork needs the same treatment, and a key that reached a public repository must be treated as permanently compromised regardless.
Where keys leak besides repositories
Client-side JavaScript, mobile app bundles, error messages and stack traces, log files, screenshots in tickets, CI build output, and public issue trackers. Anything shipped to a browser is public by definition, so a key in front-end code is exposed no matter how it is obfuscated.
Prevention that works
Environment variables outside version control, a gitignored env file with a committed example, a secret manager for anything shared, pre-commit scanning to catch keys before they are pushed, and scoped short-lived credentials so an exposure is bounded. Scoping matters most: a read-only key limited to one resource is a far smaller incident than an account-wide one.
Frequently Asked Questions
Privacy & Security
Scanning happens 100% in your browser.
About This Tool
This tool runs entirely in your browser. No data is sent to any server, ensuring complete privacy. Simply use the interface above to get started — no registration or login required.
Disclaimer: This tool is provided "as is" without warranty of any kind. Results are for educational and utility purposes.
Related Tools
Password Strength Checker
SecurityMeasure password strength by entropy and pattern analysis rather than character-class rules. Checked entirely in your browser.
Password Generator
SecurityGenerate strong random passwords and passphrases in your browser using the Web Crypto API. Nothing is transmitted, logged or stored.
Hash Generator
SecurityGenerate MD5, SHA-1, SHA-256 and SHA-512 hashes in your browser. Compare checksums and verify file integrity with nothing uploaded to a server.