Cloud Providers
An AWS access key identifier that can be used with a secret key to authenticate API requests.
AKIA[0-9A-Z]{16}An AWS secret key paired with an access key ID for authenticating API calls.
aws(.{0,20})?(secret|access).{0,20}["'][0-9a-zA-Z/+]{40}["']Google API Key
A Google Cloud API key used to authenticate requests to Google services (Maps, Firebase, etc.).
AIza[0-9A-Za-z_\-]{35}A Google OAuth 2.0 client secret used for server-side authentication flows.
GOCSPX-[A-Za-z0-9_\-]{28}GCP Service Account Key
A Google Cloud service account JSON key file that grants programmatic access to GCP resources.
"type"\s*:\s*"service_account"Azure Storage Account Key
An Azure Storage account connection string with embedded access key for blob, queue, and table storage.
DefaultEndpointsProtocol=https;AccountName=[^;]+;AccountKey=[A-Za-z0-9+/=]{88}An Azure Active Directory app registration client secret used for OAuth authentication.
azure(.{0,20})?(client_secret|clientSecret).{0,10}["'][0-9a-zA-Z~._\-]{34,}["']AI / LLM
OpenAI API Key
An OpenAI API key (sk-...) that grants access to GPT models, DALL-E, embeddings, and other OpenAI services.
sk-[A-Za-z0-9]{48}An OpenAI project-scoped API key (sk-proj-...) with access limited to a specific project.
sk-proj-[A-Za-z0-9_\-]{40,}An Anthropic API key (sk-ant-...) that grants access to Claude models and the Messages API.
sk-ant-[A-Za-z0-9_\-]{40,}Source Control
A GitHub personal access token (classic) that grants API access to repositories and account actions.
(?:ghp|gho|ghu|ghs|ghr)_[0-9A-Za-z]{36}A GitHub fine-grained personal access token with specific repository and permission scoping.
github_pat_[0-9A-Za-z_]{50,255}GitLab Token
A GitLab personal access token (glpat-...) for API and Git operations.
glpat-[0-9A-Za-z_\-]{20,}A Bitbucket app password used for API authentication and Git operations over HTTPS.
ATBB[A-Za-z0-9]{32,}Messaging
Slack Token
A Slack API token (bot, user, or app) that grants access to workspace messaging and data.
xox[baprs]-[0-9A-Za-z-]{10,48}Slack Webhook
A Slack incoming webhook URL that allows posting messages to a specific channel.
https://hooks\.slack\.com/services/[A-Za-z0-9/]{20,}A Discord bot authentication token that grants full control of the bot account.
[MN][A-Za-z0-9]{23,}\.[A-Za-z0-9_-]{6}\.[A-Za-z0-9_-]{27,}Discord Webhook
A Discord webhook URL that allows posting messages to a specific channel.
https://discord(?:app)?\.com/api/webhooks/[0-9]+/[A-Za-z0-9_\-]+A Telegram Bot API token issued by BotFather for controlling a Telegram bot.
[0-9]{8,10}:[A-Za-z0-9_-]{35}Payments
Stripe Secret Key
A Stripe live-mode secret key (sk_live_) that authenticates server-side API requests.
sk_live_[0-9a-zA-Z]{24,}Stripe Publishable Key
A Stripe live-mode publishable key (pk_live_) used client-side for tokenizing payment info.
pk_live_[0-9a-zA-Z]{24,}A Stripe restricted key (rk_live_) with limited permissions for specific API operations.
rk_live_[0-9a-zA-Z]{24,}A Square access token (sq0atp-) for authenticating API calls to Square payment services.
sq0atp-[0-9A-Za-z_\-]{22,}A Square OAuth client secret (sq0csp-) used for server-side OAuth flows.
sq0csp-[0-9A-Za-z_\-]{40,}A PayPal REST API client secret used with a client ID for OAuth authentication.
paypal(.{0,20})?(secret|client).{0,10}["'][A-Za-z0-9_\-]{30,}["']E-Commerce
A Shopify Admin API access token (shpat_) for programmatic store management.
shpat_[A-Fa-f0-9]{32}A Shopify app shared secret (shpss_) used for verifying webhook signatures and OAuth.
shpss_[A-Fa-f0-9]{32}A Shopify custom app access token (shpca_) for store-specific integrations.
shpca_[A-Fa-f0-9]{32}A Shopify private app access token (shppa_) for legacy store integrations.
shppa_[A-Fa-f0-9]{32}Email / Comms
SendGrid API Key
A SendGrid API key (SG.) for sending transactional and marketing emails.
SG\.[A-Za-z0-9_\-]{22}\.[A-Za-z0-9_\-]{43}Mailgun API Key
A Mailgun API key (key-) for sending and tracking emails via the Mailgun service.
key-[0-9a-zA-Z]{32}A Mailchimp API key for managing audiences, campaigns, and email automations.
[0-9a-f]{32}-us[0-9]{1,2}Twilio API Key
A Twilio API key (SK...) for authenticating Twilio REST API requests.
SK[0-9a-fA-F]{32}Twilio Account SID
A Twilio Account SID (AC...) — the account identifier used alongside auth tokens.
AC[0-9a-fA-F]{32}DevOps / Infra
Heroku API Key
A Heroku API key (UUID format) for managing Heroku apps, add-ons, and deployments.
(?:heroku|HEROKU).{0,20}[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}Datadog API Key
A Datadog API or application key for submitting metrics, logs, and managing monitors.
dd(.{0,10})?(api|app).{0,10}["'][0-9a-f]{32,40}["']npm Token
An npm access token (npm_) for publishing packages and accessing private registries.
npm_[A-Za-z0-9]{36}PyPI Token
A PyPI API token (pypi-) for publishing Python packages to the Python Package Index.
pypi-[A-Za-z0-9_\-]{50,}NuGet API Key
A NuGet API key for publishing .NET packages to nuget.org.
oy2[a-z0-9]{43}Docker Hub Token
A Docker Hub personal access token (dckr_pat_) for pushing/pulling container images.
dckr_pat_[A-Za-z0-9_\-]{20,}Databases
Database Connection String
A database connection URI (MongoDB, PostgreSQL, MySQL, Redis, or AMQP) with embedded credentials.
(?:mongodb(?:\+srv)?|postgres(?:ql)?|mysql|redis|amqp)://[^\s"']{10,}Crypto / Keys
Private Key
A PEM-encoded private key (RSA, EC, DSA, OpenSSH, or PGP) used for encryption or authentication.
-----BEGIN (?:EC|RSA|OPENSSH|DSA|PGP) PRIVATE KEY-----Generic
A hardcoded password, secret, or token value assigned directly in source code.
\b(password|passwd|pwd|secret|token|api_key|apikey|api_secret|auth_token|access_token|secret_key)\b\s*[:=]\s*["'][^"'\n]{6,}["']Generic Bearer Token
An Authorization header with a Bearer token, typically used for API authentication.
(?:Authorization|authorization).{0,10}Bearer\s+[A-Za-z0-9_\-\.]{20,}JWT
A JSON Web Token containing encoded claims, typically used for authentication sessions.
eyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}