secret_scan
Scan text or code for leaked secrets: API keys (AWS, GCP, Azure, OpenAI, Anthropic, Stripe, GitHub, GitLab, Slack, Twilio, SendGrid, HuggingFace), private keys (RSA/EC/PGP), JWTs, database connection strings, Bearer tokens, and Basic auth headers. Returns a list of findings with type, severity, line number, and a redacted preview. Use before committing code, sharing logs, or sending text to an LLM. 100% regex-based, zero network calls.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | Text or code to scan for secrets | |
| types | No | Comma-separated families to scan (default: all): aws, gcp, azure, openai, anthropic, huggingface, github, gitlab, stripe, slack, twilio, sendgrid, jwt, private_key, connection_string, bearer, basic_auth, generic. Individual pattern names (e.g. "aws_access_key", "github_fine") are also accepted. An unknown value is rejected with an error — a scoped scan never silently returns "clean". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| summary | No | ||
| findings | No | ||
| risk_level | No | ||
| input_lines | No | ||
| scanned_types | No | ||
| secrets_found | No | ||
| findings_count | No |