# Secret detection rules

The built-in rules of kind secrets: hand-written rules with their own pages, and the catalog-generated rules grouped by provider category.

1092 built-in rules have kind `secrets`. They are evaluated by `vulnetix secrets` and by `vulnetix scan`; `vulnetix sast` does not run them. Secret rules declare no languages, so every one reads every text file.

## Hand-written rules

82 rules with their own page, listed in the [rules index](/sast/rules.md) with kind `secrets`. They cover the common providers with context checks (an SDK reference near the key, documented example keys excluded) that a catalog entry cannot express.

## Catalog rules by category

1010 rules generated by `go run ./internal/sast/secretsgen` (`just gen-secrets`) from `internal/sast/secretsgen/catalog.json`.

| Category | Rules | Covers |
|---|---|---|
| [Cloud Providers](/sast/rules/secrets/cloud.md) | 83 | AWS, Azure, GCP, Alibaba, Oracle, DigitalOcean, IBM and other cloud-provider credential detection rules. |
| [Source Control & CI/CD](/sast/rules/secrets/source-control.md) | 70 | GitHub, GitLab, Bitbucket, Azure DevOps tokens and CI/CD pipeline credentials. |
| [AI / LLM Providers](/sast/rules/secrets/ai.md) | 72 | OpenAI, Anthropic, Google Gemini, Hugging Face, Cohere, Mistral and other AI provider keys. |
| [Payment Processors](/sast/rules/secrets/payment.md) | 82 | Stripe, PayPal, Square, Braintree, Adyen and other payment-platform credentials. |
| [Communication & Messaging](/sast/rules/secrets/communication.md) | 79 | Slack, Twilio, Discord, Telegram, SendGrid, Mailgun and other messaging credentials. |
| [Package Registries](/sast/rules/secrets/package-registries.md) | 1 | npm, PyPI, RubyGems, NuGet, Artifactory, Crates and other registry tokens. |
| [Monitoring & Observability](/sast/rules/secrets/monitoring.md) | 45 | Datadog, New Relic, Sentry, Grafana, PagerDuty and other observability keys. |
| [SaaS & Developer APIs](/sast/rules/secrets/saas.md) | 433 | Atlassian, Notion, Linear, Airtable, Shopify, Figma, Vercel, Netlify and other SaaS tokens. |
| [Database Credentials](/sast/rules/secrets/database.md) | 49 | PostgreSQL, MySQL, MongoDB, Redis and other connection strings with embedded credentials. |
| [Private Keys & Certificates](/sast/rules/secrets/private-keys.md) | 14 | RSA, EC, OpenSSH, PGP, WireGuard, age and other private-key material. |
| [Crypto & Blockchain](/sast/rules/secrets/crypto-blockchain.md) | 78 | Ethereum, Bitcoin and other blockchain private keys and wallet credentials. |
| [Webhooks & Signed URLs](/sast/rules/secrets/webhooks.md) | 4 | Slack/Teams/Discord webhook URLs and signed URLs with embedded secrets. |
