curl -s 'https://maps.googleapis.com/maps/api/geocode/json?address=test&key=<key>'curl -s 'https://maps.googleapis.com/maps/api/staticmap?center=0,0&zoom=1&size=100x100&key=<key>' -o /dev/null -w '%{ht…
Look for hardcoded encryption keys in application binaries or configuration files. These keys can be used to decrypt sensitive data, such as passwords or API keys. Check for keys embedded in code or stored in plain text. If a key is hardcoded, an attacker with access to the appl…
When testing an AI gateway, look for exposure of provider keys, salts, and plaintext logs. Check if the gateway stores sensitive data in a Postgres database or environment variables. Test for command injection, privilege escalation, and SQL injection vulnerabilities that could r…
When testing target.com, look for legacy files in open cloud storage buckets. Filenames with legacy, old, backup, or dev may contain hardcoded environment variables. Check JavaScript files for variables prefixed with REACT_APP_, which can be embedded in the final static bundle at
Leaked secrets and API keys: how to hunt it
Where to look
- JavaScript bundles, source maps and mobile apps that ship keys.
- Public repositories, gists and CI logs of the company and its developers.
- Exposed configuration files, environment dumps and debug endpoints.
- Each key’s provider and scope, checked with the least intrusive read-only call.
What proves it
Show which service and identity the key belongs to with one read-only request, say where you found it, keep the full key out of anything public, and never use it on real data.
Read further
Writeups on Leaked secrets and API keys, by hunters and researchers, most with a short summary.
Related classes