
Passive API key and secret discovery browser extension for Chrome and Firefox. 80+ detection patterns, zero config.
Passive API key and secret discovery for Chrome and Firefox
KeyFinder is a browser extension for Chrome and Firefox that passively scans every page you visit for leaked API keys, tokens, secrets, and credentials. It runs silently in the background with zero configuration required.
KeyFinder ships with 80+ detection patterns covering secrets from:
KeyFinder scans 10 different attack surfaces on every page:
src URLs - Checks all script source URLs for keywords and tokens in query parameters<script> tag contents for secret patterns<meta> tags for leaked API keys and tokens<input type="hidden"> valuesdata-* attributes for sensitive valuesAdditionally, Shannon entropy analysis is applied to detect random high-entropy strings that may be undocumented secret formats.
/ focuses, Esc clears)git clone https://github.com/momenbasel/keyFinder.git
Chrome:
chrome://extensionskeyFinder folderFirefox:
about:debugging > "This Firefox"manifest.firefox.json from the keyFinder folder/ to searchClick the extension icon, type a keyword in the input field, and click Add. The keyword will be used to scan script URLs, inline code, and key-value assignments on every page you visit.
Default keywords: key, api_key, apikey, api-key, secret, token, access_token, auth, credential, password, client_id, client_secret
keyFinder/
manifest.json # Chrome MV3 manifest
manifest.firefox.json # Firefox MV3 manifest
popup.html # Extension popup UI
results.html # Findings dashboard
js/
background.js # Service worker - storage and message handling
patterns.js # 80+ secret detection regex patterns
content.js # ISOLATED-world page scanner - DOM, scripts, network
interceptor-loader.js # ISOLATED loader - sets nonce, injects MAIN-world interceptor
interceptor.js # MAIN-world XHR/Fetch hooks + window global scanning
popup.js # Popup logic
results.js # Dashboard logic with filtering and export
css/
popup.css # Popup styles
results.css # Dashboard styles
icons/
icon16.png
icon48.png
icon128.png
scripts/
build.sh # Build Chrome and Firefox zip packages
See SECURITY.md for the threat model, disclosure policy, and known limitations. Release notes are in CHANGELOG.md.
This tool is intended for security research and authorized testing only. Use it to identify leaked secrets on your own applications or during authorized penetration tests. You are responsible for your own actions.
keyFinder is built and maintained by GreyCore Labs, a US-incorporated offensive security firm. Want the same eye on your own product?
MIT
| Category | Providers |
|---|
| Cloud | AWS (Access Keys, Secret Keys, Session Tokens, Cognito), Google Cloud (API Keys, OAuth, Service Accounts), Azure (Storage Keys, SAS Tokens, Connection Strings) |
| Source Control | GitHub (PATs, OAuth, Fine-grained tokens), GitLab (PATs, Pipeline, Runner tokens), Bitbucket |
| Payments | Stripe (Secret, Publishable, Restricted, Webhook), PayPal Braintree, Square |
| Communication | Slack (Bot, User, App tokens, Webhooks), Discord (Bot tokens, Webhooks), Telegram, Twilio, SendGrid |
| AI / ML | OpenAI, Anthropic, HuggingFace, Replicate |
| Databases | MongoDB, PostgreSQL, MySQL, Redis connection strings |
| SaaS | Shopify, Sentry, New Relic, PlanetScale, Linear, Notion, Datadog, Algolia, Mapbox |
| Infrastructure | HashiCorp Vault, Terraform, Docker Hub, NPM, Cloudflare, DigitalOcean, Doppler, Pulumi, Grafana |
| Crypto | RSA, EC, OpenSSH, PGP, DSA private keys |
| Generic | JWTs, Bearer tokens, Basic Auth, API key assignments, credential URLs, high-entropy strings |