August 4, 2026
Finding Exposed Cloud Keys & Secrets
Hey everyone! Nitin here ๐

By Nitin yadav
2 min read
Cloud access keys are the master keys to a company's cloud kingdom. And developers leak them ALL the time โ in code, in JS files, in configs, in public repos. Finding a live one can be a straight-up critical. Let me show you where they hide and how to handle them responsibly.
What Are We Hunting?
Cloud credentials come in a few flavors:
- AWS access keys โ look like
AKIA...followed by a secret key - Google Cloud keys โ JSON service account files
- Azure credentials โ connection strings, client secrets
- API tokens for various services (often just as damaging)
With a live cloud key, depending on its permissions, you might access storage, databases, compute, or the whole account. That's why they're gold โ and why companies pay well when you responsibly report a leaked one.
Where They Leak
Developers scatter secrets everywhere:
- Front-end JavaScript files โ keys hardcoded in client-side code (read your JS! โ post 4)
- Public GitHub repos โ committed to code or config, often still in commit history (post 20)
.envand config files โ exposed on the server (/.env)- Error messages & debug pages โ stack traces leaking config
- Mobile apps โ decompile the APK and secrets are often right there
- Public S3 buckets โ config files with keys inside (post 25)
- Paste sites & docs โ accidentally shared publicly
The Tools
- TruffleHog โ scans repos, files, and history for secret patterns
- gitleaks โ excellent for git repos
- SecretFinder โ pulls secrets out of JavaScript files
- Nuclei โ has templates for exposed
.env, config files, and common secret exposures - Cloud-specific: tools that validate whether an AWS key is live and what it can do
The Critical Ethical Rule (Read This Twice)
This is where hunters get into REAL legal trouble if they're reckless. Finding a leaked key is fine. But using it to access and explore the company's cloud can be a serious crime โ even on a bug bounty target, even "just to check."
The responsible approach:
- Verify the key is LIVE with the most minimal, non-intrusive check possible (often just confirming it authenticates, e.g. a harmless identity check like
aws sts get-caller-identity) - Do NOT list, read, download, or modify actual data
- Report the exposure immediately with the minimal proof
- Let the company confirm the impact on their end
Minimal verification protects the users, protects the company, and protects YOU. We hack for good.
How To Frame Impact
Not every key is critical. A dead test token = nothing. A live production key with broad permissions = critical. In your report, note the key type, that you verified it's live (minimally), and what it POTENTIALLY grants โ without having actually exercised that access. That's the professional, paid way to report a secret.