Skip to content

Secret scanner

Free, no sign-up Runs in your browser

Paste code, a log or a diff and find leaked secrets: AWS keys, GitHub and Slack tokens, Stripe keys, private keys, database URLs. Scanned in your browser.

Scanned in your browser as you type. Nothing you paste is sent anywhere.

Everything you type here stays in your browser. Nothing is sent to HardenKit or to anyone else.

How to use the secret scanner

  1. Paste the text: a file, a diff, a log, an .env, a config. Or press Load an example.
  2. Read the findings, the most urgent first. Each names the line and the kind of secret.
  3. For every real one, revoke it where it was issued and create a replacement.
  4. Move the new secret to an environment variable or a secret manager, then scan the text again.

About this tool

Most leaked credentials are not stolen, they are published: pasted into a commit, a support ticket, a chat message or a public log. Service providers give their keys recognizable shapes for exactly this reason. A GitHub token starts with ghp_, an AWS access key ID with AKIA, a Stripe live key with sk_live_, so a scanner can find them with little doubt. This tool looks for those documented formats in whatever you paste.

It also finds private key blocks, JSON Web Tokens, database URLs that carry a password, and values assigned to names such as password, secret or token when the value looks generated. To keep false alarms down it skips placeholders and references: ${API_KEY}, <your-key>, changeme, file paths and names such as SECRET_NAME. Each finding shows the line, the kind, and the first few characters only. The full secret is never repeated on the page.

Use it before you commit, post or share something. A clean result is not proof: a password with no telling name or shape looks like any other text. When it does find something real, deleting the line is not enough, because the secret stays in git history and in every copy. Revoke it and issue a new one. HardenKit Scan applies the same formats to MCP configs, Kubernetes manifests and GitHub Actions workflows, not to the rest of your source.

Sources

Questions

Is it safe to paste secrets into this scanner?

The scan runs in your browser with regular expressions; the page sends nothing you paste to any server and stores nothing. You can verify that in the network tab or by going offline first. If a secret is real and has already been shared or committed, treat it as leaked regardless and rotate it.

I committed a secret. Is removing it in a new commit enough?

No. The old commit still holds it, and so does every clone, fork and cache. Revoke the secret first, which is the only step that makes the leaked copy useless. Rewriting history afterwards is optional cleanup, not a fix.

Which secrets can it detect?

By format: AWS access key IDs and the secret keys beside them, and GitHub, GitLab, Slack, Stripe, Google, npm, PyPI, SendGrid, Twilio, OpenAI, Anthropic and Hugging Face credentials. By structure: Slack webhooks, PEM private keys, JWTs and database URLs with passwords. By name: generated-looking values assigned to names such as password, secret or token.

Why did it miss my password?

A scanner can only find what has a recognizable shape or a telling name. A short or word-like password, a secret in a variable called x, or a key from a provider with no fixed format will pass unnoticed. That is why secrets belong in a secret manager from the start, not in files that need scanning.

Why is a JWT reported at a lower level?

A JSON Web Token is a credential only until it expires, and many found in logs or docs are long expired or are examples. It is still worth a look: a valid token grants access, and its payload can be read by anyone. Decode it to check the exp claim.

Related tools