# Bare token prefixes that the vendored rulesets (betterleaks, detect-secrets) do not know yet.
# One rule per line, the whole match is the secret. The short form names the literal prefix (4 characters or more):
#   <id>  <PREFIX>  <REST>
# maisecrets adds the edges: no token character before the prefix and none after REST. The long form
#   <id>  <regex>
# writes them itself, for a token with no literal prefix or other edges.
# Add a line by pull request when a real token of a service went through undetected. Keep the
# tail length at the service's minimum so a short look-alike is not a hit. No test values here.
gitlab-runner-token          glrt-[0-9A-Za-z_.-]{20,}
gitlab-deploy-token-any      gldt-[0-9A-Za-z_-]{20,}
webhook-signing-secret       whsec_[A-Za-z0-9+/=_-]{24,}
cloudflare-user-api-token    cfut_[A-Za-z0-9_-]{30,}
# 0.6.19, from a survey of other detectors. Each format is a fact from the vendor's documentation where it has one
# (Tailscale key prefixes, Cloudflare token formats, Doppler token formats, Square OAuth, Mapbox sk/pk, SonarQube
# Cloud sqco_, the PyPI token and the warehouse source); the rest are formats other detectors know (trufflehog,
# detect-secrets), each regex written here. A client id (Salesforce 3MVG9, Square sq0idp) is public and has no line.
google-oauth-access-token    ya29\.[0-9A-Za-z_-]{30,2048}
tailscale-key                tskey-(?:(?:api|auth|client|scim|webhook)-[0-9A-Za-z]{4,40}-|k[0-9A-Za-z]{4,16}CNTRL-)[0-9A-Za-z]{16,64}
discord-webhook-url          https://(?:ptb\.|canary\.)?discord(?:app)?\.com/api/(?:v[0-9]{1,2}/)?webhooks/[0-9]{17,20}/[0-9A-Za-z_-]{60,80}
salesforce-refresh-token     5(?i:aep861)[0-9A-Za-z._=]{80,400}
cloudflare-api-token         (?:cfk|cfat)_[0-9A-Za-z]{40,64}
hubspot-private-app-token    pat-(?:na|eu|ap)[0-9]-[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}
new-relic-user-key           NRAK-[0-9A-Z]{27}
new-relic-insert-key         NRII-[0-9A-Za-z_-]{32}
new-relic-rest-api-key       NRRA-[0-9a-fA-F]{42}
new-relic-admin-key          NRAA-[0-9a-fA-F]{27}
new-relic-query-key          NRIQ-[0-9A-Za-z_-]{32}
new-relic-pixie-api-key      px-api-[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}
anthropic-oauth-token        sk-ant-o(?:at|rt)01-[0-9A-Za-z_-]{40,}
flutterwave-secret-key       FLWSECK(?:_TEST)?-[0-9A-Za-z]{20,40}-X
doppler-token                dp\.(?:ct|pt|sa|said|scim|audit|st)\.(?:[a-z0-9_-]{2,35}\.)?[0-9A-Za-z]{40,44}
square-oauth-secret          (?:sandbox-)?sq0csp-[0-9A-Za-z_-]{43}
contentful-personal-token    CFPAT-[0-9A-Za-z_-]{43}
mapbox-secret-token          sk\.eyJ[0-9A-Za-z_-]{20,}\.[0-9A-Za-z_-]{20,}
kong-konnect-token           (?:kpat|spat)_[0-9A-Za-z]{40,60}
sonarcloud-org-token         sqco_[0-9A-Za-z]{40,64}
adafruit-io-key              (?<![0-9A-Za-z_])aio_(?=[A-Za-z]*[0-9])[0-9A-Za-z]{28}
pypi-test-upload-token       pypi-AgENdGVzdC5weXBp[L]m9yZw[0-9A-Za-z_-]{50,1000}
# 0.6.20, from a coverage measurement against other secret catalogs. Each regex is written here from the vendor's
# documentation (GitHub's ghs_<app id>_<JWT> installation token, Heroku's HRKU- token) or from a catalog under the
# Apache or MIT license: GitLab's secret detection rules (MIT), Kingfisher and Nosey Parker (Apache-2.0).
google-oauth-client-secret   GOCSPX-(?:(?<![A-Za-z0-9_-]GOCSPX-)|(?<=\\[nrt]GOCSPX-))[A-Za-z0-9_-]{28}(?![A-Za-z0-9_-])
sonarqube-token              squ_(?:(?<![A-Za-z0-9_]squ_)|(?<=\\[nrt]squ_))[0-9a-f]{40}(?![A-Za-z0-9_])
dynatrace-platform-token     dt0s(?:(?<![A-Za-z0-9]dt0s)|(?<=\\[nrt]dt0s))[0-9]{2}\.[A-Z0-9]{8}\.[A-Z0-9]{64}(?![A-Za-z0-9])
postman-collection-token     PMAT-(?:(?<![A-Za-z0-9]PMAT-)|(?<=\\[nrt]PMAT-))[0-9A-Z]{26}(?![A-Za-z0-9])
shopify-partner-api-token    prtapi_(?:(?<![A-Za-z0-9_]prtapi_)|(?<=\\[nrt]prtapi_))[a-f0-9]{32}(?![A-Za-z0-9_])
planetscale-app-secret       pscale_app_[s]ecret_(?:(?<![A-Za-z0-9_-]pscale_app_[s]ecret_)|(?<=\\[nrt]pscale_app_[s]ecret_))[0-9A-Za-z_-]{43}(?![0-9A-Za-z_-])
intercom-access-token        dG9rO(?:(?<![A-Za-z0-9+/]dG9rO)|(?<=\\[nrt]dG9rO))(?:[0-9A-Za-z]{55}(?![0-9A-Za-z+/=])|[0-9A-Za-z]{54}=|[0-9A-Za-z]{53}==)
netlify-personal-token       nfp_(?:(?<![A-Za-z0-9_]nfp_)|(?<=\\[nrt]nfp_))(?=[0-9a-f]{0,47}[g-zA-Z])[A-Za-z0-9]{40,48}(?![A-Za-z0-9_])
teamcity-access-token        eyJ0eXAi[O]iAiVENWMiJ9\.(?:(?<![A-Za-z0-9_.-]eyJ0eXAi[O]iAiVENWMiJ9\.)|(?<=\\[nrt]eyJ0eXAi[O]iAiVENWMiJ9\.))[A-Za-z0-9_-]{36}\.[A-Za-z0-9_-]{48}(?![A-Za-z0-9_-])
dependency-track-api-key     odt_(?:(?<![A-Za-z0-9_]odt_)|(?<=\\[nrt]odt_))(?=[0-9a-f]{0,254}[g-zA-Z])(?=[A-Za-z]{0,254}[0-9])[A-Za-z0-9]{32,255}(?![A-Za-z0-9_])(?!\.[A-Za-z0-9])
tavily-api-key               tvly-(?:(?<![A-Za-z0-9_-]tvly-)|(?<=\\[nrt]tvly-))(?:dev-)?[A-Za-z0-9]{32}(?![A-Za-z0-9_-])
jina-api-key                 jina_(?:(?<![A-Za-z0-9_]jina_)|(?<=\\[nrt]jina_))(?=[A-Za-z]{0,59}[0-9])[A-Za-z0-9]{60}(?![A-Za-z0-9_])
aws-appsync-api-key          da2-(?:(?<![A-Za-z0-9_-]da2-)|(?<=\\[nrt]da2-))(?=[a-z]{0,25}[0-9])[a-z0-9]{26}(?![A-Za-z0-9_-])
stackhawk-api-key            hawk\.(?:(?<![A-Za-z0-9_.-]hawk\.)|(?<=\\[nrt]hawk\.))[0-9A-Za-z_-]{20}\.[0-9A-Za-z_-]{20}(?![0-9A-Za-z_-])(?!\.[0-9A-Za-z_-])
heroku-api-key-uuid          HRKU-(?:(?<![A-Za-z0-9_-]HRKU-)|(?<=\\[nrt]HRKU-))[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}(?![0-9A-Za-z_-])
github-app-installation-jwt  ghs_(?:(?<![A-Za-z0-9_]ghs_)|(?<=\\[nrt]ghs_))[0-9]{1,20}_[A-Za-z0-9_-]{10,2048}\.[A-Za-z0-9_-]{10,2048}\.[A-Za-z0-9_-]{10,2048}(?![A-Za-z0-9_-])(?!\.[A-Za-z0-9_-])
# GitLab's pipeline trigger and CI job tokens in their newer forms (routable, or a JWT after glcbt-); the vendored rules
# take glptt- and 40 hex digits, glcbt- with a partition prefix, and claimed the first part of a longer token
gitlab-pipeline-trigger-token-any glptt-(?:(?<![A-Za-z0-9_-]glptt-)|(?<=\\[nrt]glptt-))[0-9A-Za-z_-]{20,400}(?:\.[0-9a-z]{2}\.[0-9a-z]{9})?(?![0-9A-Za-z_-])
gitlab-ci-job-token-any      glcbt-(?:(?<![A-Za-z0-9_-]glcbt-)|(?<=\\[nrt]glcbt-))[0-9A-Za-z_-]{20,2048}(?:\.[0-9A-Za-z_-]{2,2048}){0,2}(?![0-9A-Za-z_-])(?!\.[0-9A-Za-z_-])
# 0.6.39: the legacy Office 365 connector URL of Microsoft Teams; the whole URL posts to the channel (#11)
microsoft-teams-webhook-legacy  https(?:(?<![A-Za-z0-9]https)|(?<=\\[nrt]https))://outlook\.office(?:365)?\.com/webhook/[0-9A-Fa-f]{8}-(?:[0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}@[0-9A-Fa-f]{8}-(?:[0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}/IncomingWebhook/[0-9A-Fa-f]{32}/[0-9A-Fa-f]{8}-(?:[0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(?:/[0-9A-Za-z_-]{20,})?(?![0-9A-Za-z_-])
# 0.7.9: a Storyblok personal access token (sb_pat_ and 43 characters), a format newer than every vendored catalog
# (trufflehog knows only the older Storyblok token, and only after the word storyblok). Field report, 2026-10-22
storyblok-personal-access-token sb_pat_(?:(?<![A-Za-z0-9_]sb_pat_)|(?<=\\[nrt]sb_pat_))[0-9A-Za-z_]{40,64}(?![0-9A-Za-z_-])
# 0.7.9: 97 token formats with a fixed prefix that the catalogs know and maisecrets missed without a label
# (kingfisher, noseyparker, gitleaks, betterleaks, GitLab; measured 2026-10-22 with scripts/measure_catalog_coverage.py).
# Each regex is the catalog's own secret pattern after its prefix, with the boundaries of this file, and finds
# every example of its catalog rule whole. Left out: short generic prefixes (sk_, key_, pk_), public ids and
# publishable keys, and connection strings. An id that a vendored rule already has ends in -bare
1password-recovery-key                      1PRK  (?:\-[A-Z0-9]{4}){13}
age-identity-mlkem768-x25519-secret-key     AGE-SECRET-KEY-PQ-1  [0-9A-Z]{58}
ai71-api-key                                ai71-api-  [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}
akamai-api-client-token                     akab-  [A-Za-z0-9_\-]{18,28}
alibaba-sts-access-key-id                   STS.  [A-Za-z0-9]{16,64}
alibaba-sts-security-token                  CAIS  [A-Za-z0-9+/_=\-]{20,1024}
arcjet-api-key                              ajkey_  [a-z0-9]{26}
astral-pyx-user-key-v1                      sk-pyx-  [A-Za-z0-9]{64}
astral-pyx-user-key-v2                      sk-pyx-2  [A-Za-z]{45}
atlassian-connect-shared-secret             ATCO  [A-Za-z0-9_+/=\-]{20,396}
axiom-api-token                             xaat-  [a-f0-9]{8}\-[a-f0-9]{4}\-[a-f0-9]{4}\-[a-f0-9]{4}\-[a-f0-9]{12}
axiom-personal-access-token                 xapt-  [a-f0-9]{8}\-[a-f0-9]{4}\-[a-f0-9]{4}\-[a-f0-9]{4}\-[a-f0-9]{12}
bitbucket-app-password                      ATBB  [a-zA-Z0-9]{32}
block-protocol-api-key                      b10ck5.  [a-zA-Z0-9]{32}\.[a-zA-Z0-9]{36}
branch-io-live-key                          key_live_  [a-zA-Z0-9]{16,40}
branch-io-test-key                          key_test_  [a-zA-Z0-9]{16,40}
builder-io-private-api-key                  bpk-  [a-f0-9]{32}
buildkite-agent-registration-token          bkar_  [A-Za-z0-9_\-]{32,128}
buildkite-cluster-agent-token               bkct_  [A-Za-z0-9_\-]{32,128}
cfx-re-fivem-server-key                     cfxk_  [a-zA-Z0-9_\-]{20,100}
checkout-com-sandbox-secret-key             sk_test_  [a-f0-9]{8}\-[a-f0-9]{4}\-[a-f0-9]{4}\-[a-f0-9]{4}\-[a-f0-9]{12}
circleci-api-project-token-prefixed         CCIPRJ_  [A-Za-z0-9]{22}_[0-9a-f]{40}
confluent-api-secret-updated-format         cflt  (?:[A-Za-z0-9+/]{54})(?:[A-Za-z0-9+/]{6})
databricks-oauth-client-secret              dose  [A-Za-z0-9_.\-]{32}
defined-networking-api-token-bare           dnkey-  [A-Z0-9]{26}\-[A-Z0-9]{52}
deno-organization-token                     ddo_  [A-Za-z0-9]{36}
discord-mfa-token                           mfa.  [A-Za-z0-9_\-]{20,100}
dryrun-security-api-key                     dryrunsec_  [A-Za-z0-9]{32}
dub-co-api-key                              dub_  [A-Za-z0-9]{24}
e2b-api-key                                 e2b_  [a-f0-9]{40}
endor-labs-api-key                          endr\+(?:(?<![A-Za-z0-9_-]endr\+)|(?<=\\[nrt]endr\+))[A-Za-z0-9\-]{16}(?![A-Za-z0-9_-])
fleetbase-api-key                           flb_  (?:live|test)_[0-9a-zA-Z]{20,64}
flutterwave-encrypted-key                   FLWSECK_TEST  [a-h0-9]{12}
friendli-ai-api-key                         flp_  [A-Za-z0-9]{46}
gitlab-oauth-application-secret             gloas-  [0-9a-zA-Z_\-]{64}
guardsquare-appsweep-api-key                gs_appsweep_  [a-zA-Z0-9_\-]{24,48}
hack-club-ai-api-key                        sk-hc-v1-  [a-f0-9]{64}
hashicorp-vault-recovery-token-v1-10        hvr.  [A-Za-z0-9]{24,130}
hashicorp-vault-service-token-v1-10         hvs.  [A-Za-z0-9]{24,130}
heartland-portico-api-key                   skapi_cert_  [A-Za-z0-9]{34,42}
hop-personal-access-token                   hop_pat_  [a-zA-Z0-9_\-]{20,50}
hop-project-token                           ptk_  [a-zA-Z0-9_\-]{40,80}
inngest-signing-key                         signkey-  [a-z0-9_\-]+\-[a-f0-9]{64}
instagram-graph-api-access-token            IGQVJ  [A-Za-z0-9_\-]{50,256}
iterative-dvc-studio-access-token           isat_  [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}
mappedin-api-key                            mik_  [a-zA-Z0-9]{25}
mappedin-api-secret                         mis_  [a-zA-Z0-9]{51}
mercado-pago-access-token                   APP_USR-  [A-Za-z0-9]{6,20}(?:\-[A-Za-z0-9]{4,64}){2,4}
mercury-non-production-api-token            mercury_sandbox_  [a-z]{3,6}_[a-zA-Z0-9]{40,50}_yrucrem
midtrans-production-server-client-key-bare  Mid-  (?:server|client)\-[A-Za-z0-9_]{10,20}
midtrans-sandbox-server-client-key          SB-Mid-  (?:server|client)\-[A-Za-z0-9_]{10,20}
minimax-api-key-bare                        MINIMAX-  [A-Z0-9]{8}\-[A-Z0-9]{8}\-[A-Z0-9]{8}\-[A-Z0-9]{8}
mintlify-api-key                            mint_  (?:dsc_)?[A-Za-z0-9]{24,44}
new-relic-browser-api-token-bare            NRJS-  [0-9A-Fa-f]{19}
new-relic-pixie-deploy-key                  px-dep-  [a-f0-9]{8}\-[a-f0-9]{4}\-[a-f0-9]{4}\-[a-f0-9]{4}\-[a-f0-9]{12}
openai-api-key-short-prefixed               sk-None-  [A-Za-z0-9]{48}
openvsx-access-token                        ovsx  (?:at|p)_[a-f0-9]{8}(?:\-[a-f0-9]{4}){3}\-[a-f0-9]{12}
ory-api-key                                 ory_  (?:pat|apikey|wak)_[A-Za-z0-9_\-]{24,48}
ory-session-token                           ory_st_  [A-Za-z0-9_\-]{24,48}
packagist-api-key                           packagist_ack_  [0-9A-Fa-f]{28,32}
packagist-api-secret                        packagist_acs_  [0-9A-Fa-f]{64,96}
packagist-conductor-update-token            packagist_cut_  [0-9A-Fa-f]{68}
packagist-organization-read-token           packagist_ort_  [0-9A-Fa-f]{68}
packagist-organization-update-token         packagist_out_  [0-9A-Fa-f]{68}
packagist-user-update-token                 packagist_uut_  [0-9A-Fa-f]{68}
pangea-service-token                        pts_  [a-z0-9]{30,36}
permit-io-api-key                           permit_key_  [0-9A-Za-z]{85,86}
pinterest-refresh-token                     pinr_  [a-zA-Z0-9._\-]{19,299}[a-zA-Z0-9_\-]
plaid-access-token-production               access-production-  [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}
plaid-access-token-sandbox                  access-sandbox-  [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}
portainer-api-token                         ptr_  [A-Za-z0-9/+_=\-]{32,52}
posthog-feature-flags-secure-api-key        phs_  [A-Za-z0-9]{44,48}
posthog-oauth-access-token                  pha_  [A-Za-z0-9]{40,43}
posthog-oauth-refresh-token                 phr_  [A-Za-z0-9]{40,43}
ramp-application-signup-token               ramp_business_tok_  [a-zA-Z0-9]{42}
riot-games-api-key                          RGAPI-  [a-zA-Z0-9_\-]{36}
robinhood-crypto-api-key                    rh-api-  [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}
saladcloud-user-api-key                     salad_cloud_user_  [0-9A-Za-z]{49}
scale-callback-auth-key                     live_auth_  [0-9a-f]{32}
seam-api-key                                seam_  (?:test2|live)[a-zA-Z0-9]{1,8}_[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{20,32}
shortcut-api-token                          sct_  (?:r(?:s|wa)?|w)_[a-z0-9]+(?:\-[a-z0-9]+)*_[A-Za-z0-9_\-]{142}
slack-app-token-bare                        xapp-  [0-9]{12}\-[a-zA-Z0-9/+]{24}
testkube-api-key                            tkcapi_  [A-Za-z0-9]{30,64}
tigris-access-key-id                        tid_  [A-Za-z0-9_]{50}
tigris-secret-access-key                    tsec_  [A-Za-z0-9_+\-]{70}
tinybird-static-token                       p.eyJ1I  [A-Za-z0-9_\-]{80,260}\.[A-Za-z0-9_\-]{43}
tolgee-personal-access-token                tgpat_  [a-z0-9]{48,64}
tolgee-project-api-key                      tgpak_  [a-z0-9]{45,64}
trend-micro-cloud-one-api-key               tmc1  [A-Za-z0-9]{26,32}:[A-Za-z0-9]{60,70}
trigger-dev-personal-access-token           tr_pat_  [A-Za-z0-9]{20}
ubidots-api-key                             BBUS-  [A-Za-z0-9]{28,40}
vkontakte-access-token                      vk1.a.  [A-Za-z0-9_\-]{100,200}
voiceflow-api-key                           VF.DM.  [0-9A-Fa-f]{24}\.[A-Za-z0-9]{16}
warpstream-api-key-secret                   aks_  [a-f0-9]{64}
workato-api-token                           wrka  (?:[a-z]{2})?\-eyJ[A-Za-z0-9_\-]{8,}\.[A-Za-z0-9_\-]{16,}\.[A-Za-z0-9_\-]{64,}
workos-api-key                              sk_live_a2V5Xz  [A-Za-z0-9+/]{69}={0,2}
xata-api-key                                xau_  [A-Za-z0-9]{30,40}
# 0.7.9, researched: token formats of the providers that GitHub secret scanning names, from each provider's
# documentation (Sentry, Polar, Sourcegraph, Yandex Cloud, Vercel, Cloudflare, Buildkite, Datadog, ...) or, where
# the provider documents none, from a public scanner. Each rule finds a token generated from the researched
# pattern; public ids, connection strings and prefixes of fewer than four characters stay out
1password-service-account-token-bare        ops_eyJ  [A-Za-z0-9+/_\-]{250,}={0,3}
asaas-production-key                                       \$aact_prod_(?:(?<![A-Za-z0-9_-]\$aact_prod_)|(?<=\\[nrt]\$aact_prod_))[A-Za-z0-9_\-+/=:$]{19,199}[A-Za-z0-9_\-+/=$](?![A-Za-z0-9_-])
asaas-sandbox-key                                          \$aact_hmlg_(?:(?<![A-Za-z0-9_-]\$aact_hmlg_)|(?<=\\[nrt]\$aact_hmlg_))[A-Za-z0-9_\-+/=:$]{19,199}[A-Za-z0-9_\-+/=$](?![A-Za-z0-9_-])
atlassian-org-admin-scoped-api-key-sibling  ATCTT3xFfG  [A-Za-z0-9+/=_\-]{1,1024}=[A-Za-z0-9]{8}
aws-bedrock-short-term-api-key              bedrock-api-key-  [A-Za-z0-9+/]+={0,2}
baidu-qianfan-api-key-bce-v3                               bce\-v3\/ALTAK\-(?:(?<![A-Za-z0-9_-]bce\-v3\/ALTAK\-)|(?<=\\[nrt]bce\-v3\/ALTAK\-))[A-Za-z0-9]{10,}\/[A-Za-z0-9]{20,}(?![A-Za-z0-9_-])
bitbucket-data-center-http-access-token     BBDC-  [A-Za-z0-9+/@_\-]{40,50}
brevo-smtp-key-standard                     xsmtpsib-  [a-f0-9]{64}\-[A-Za-z0-9]{16}
buildkite-portal-token-long-lived-ephemeral-user-invoked   bkpat_(?:(?<![A-Za-z0-9_-]bkpat_)|(?<=\\[nrt]bkpat_))[A-Za-z0-9_\-]{54}(?![A-Za-z0-9_-])
canadian-digital-service-gc-notify-api-key  gcntfy-  [a-z0-9_]+\-[0-9a-f]{8}\-[0-9a-f]{4}\-[0-9a-f]{4}\-[0-9a-f]{4}\-[0-9a-f]{12}\-[0-9a-f]{8}\-[0-9a-f]{4}\-[0-9a-f]{4}\-[0-9a-f]{4}\-[0-9a-f]{12}
cashfree-secret-key-production              cfsk_ma_prod_  [A-Za-z0-9_]{20,}
cashfree-secret-key-sandbox                 cfsk_ma_test_  [A-Za-z0-9_]{20,}
checkout-com-sandbox-secret-key-current     sk_sbox_  [a-z0-9]{27}
cloudflare-access-service-token-client-secret-sibling      cfast_(?:(?<![A-Za-z0-9_-]cfast_)|(?<=\\[nrt]cfast_))[A-Za-z0-9]{40}[A-Za-z0-9]{8}(?![A-Za-z0-9_-])
coveo-api-key-rotation-secret-sibling       coveo_apikey_rotation_v1_  [A-Za-z0-9]{10}\-[A-Za-z0-9]{4}\-[A-Za-z0-9]{4}\-[A-Za-z0-9]{4}\-[A-Za-z0-9]{12}_[A-Za-z0-9]{8}
databricks-dkea-token                       dkea  [a-f0-9]{32}
databricks-dosa-token                       dosa  [a-f0-9]{32}
datadog-personal-access-token               ddpat_  [A-Za-z0-9]{16,24}_[A-Za-z0-9]{40,56}
datadog-service-access-token                ddsat_  [A-Za-z0-9]{20,24}_[A-Za-z0-9]{40,52}
datastax-astra-application-token-bare       AstraCS:  [A-Za-z0-9]{24}:[a-f0-9]{64}
ebay-production-cert-id                     PRD-  [a-f0-9]{8}\-[a-f0-9]{4}\-[a-f0-9]{4}\-[a-f0-9]{4}\-[a-f0-9]{4,12}
firebase-fcm-legacy-server-key              AAAA  [A-Za-z0-9_\-]{7}:[A-Za-z0-9_\-]{140}
fullstory-api-key-eu1-data-center           eu1.  [A-Za-z0-9+/]{100}={0,2}
fullstory-api-key-na1-data-center           na1.  [A-Za-z0-9+/]{100}={0,2}
gocardless-live-access-token                live_  [A-Za-z0-9_=\-]{40}
google-oauth-access-token-bare              ya29.  [0-9A-Za-z_\-]{20,1024}
grafana-cloud-access-policy-token           glc_  [A-Za-z0-9+/]{32,400}={0,3}
guardsquare-appsweep-api-key-bare           gs_appsweep_  [A-Za-z0-9_\-]{16,}
hashicorp-vault-batch-token-1-10            hvb.  [A-Za-z0-9_\-]{24,300}
hashicorp-vault-root-token-service-token-with-root-policy  hvs\.(?:(?<![A-Za-z0-9_-]hvs\.)|(?<=\\[nrt]hvs\.))[A-Za-z0-9_\-]{24,}(?![A-Za-z0-9_-])
highnote-secret-key-test                    sk_test_a2V5Xz  [A-Za-z0-9+/]{69}={0,2}
hop-personal-access-token-bare              pat_  [A-Za-z0-9]{16,64}
hop-project-token-bare                      ptk_  [A-Za-z0-9]{16,64}
hop-user-bearer-token                       bearer_  [A-Za-z0-9]{16,64}
intercom-access-token-bare                  dG9rOj  [A-Za-z0-9+/]{53}=
iterative-dvc-studio-client-access-token    isat_  [A-Za-z0-9_\-]{20,}
jfrog-jwt-access-token                      eyJ2ZXIiOiIyIiwidHlwIjoiSldUIi  [A-Za-z0-9_\-]*\.[A-Za-z0-9_\-]+\.[A-Za-z0-9_\-]+
launchdarkly-api-access-token               api-  [a-z0-9]{8}\-[a-z0-9]{4}\-4[a-z0-9]{3}\-[a-z0-9]{4}\-[a-z0-9]{12}
launchdarkly-server-sdk-key                 sdk-  [a-z0-9]{8}\-[a-z0-9]{4}\-4[a-z0-9]{3}\-[a-z0-9]{4}\-[a-z0-9]{12}
lichess-oauth-access-token                  lio_  [A-Za-z0-9]{32}
linear-oauth-access-token                   lin_oauth_  [A-Za-z0-9]{32,64}
linkedin-client-secret-current              WPL_AP1.  [A-Za-z0-9]{16}\.[A-Za-z0-9+/]{6}==
lob-live-secret-api-key                     live_  [a-f0-9]{35}
lob-test-secret-api-key                     test_  [a-f0-9]{35}
logicmonitor-bearer-token                   lmb_  [A-Za-z0-9+/=_\-]{20,}
lovable-labs-workspace-api-key              lov_  [A-Za-z0-9_\-]{20,}
mailgun-private-api-key-legacy-key-format   key-  [0-9a-f]{32}
mapbox-temporary-token                      tk.eyJ1Ijoi  [A-Za-z0-9_\-]{20,400}\.[A-Za-z0-9_\-]{22}
notion-legacy-internal-integration-token    secret_  [A-Za-z0-9]{43}
octopus-deploy-api-key-bare                 API-  [A-Z0-9]{26,34}
onfido-sandbox-all-regions                  api_sandbox  (?:_(?:us|ca))?\.[A-Za-z0-9_\-]{20,80}
openvsx-personal-access-token-open-vsx-org  ovsxat_  [A-Za-z0-9\-]{36,43}
openvsx-publish-only-token-sibling          ovsxap_  [A-Za-z0-9]{43}
paddle-sandbox                              pdl_sdbx_apikey_  [a-z0-9]{26}_[A-Za-z0-9]{22}_[A-Za-z0-9]{3}
pangea-service-access-token                 pts_  [a-z0-9]{20,64}
persona-identities-sandbox                  persona_sandbox_  [a-z0-9_\-]{20,80}
pinterest-client-credentials-access-token   pinc  [._][A-Za-z0-9_.\-]{19,199}[A-Za-z0-9_\-]
polar-customer-session-token                polar_cst_  [A-Za-z0-9]{43}
polar-member-session-token-sibling          polar_mst_  [A-Za-z0-9]{43}
polar-oauth-authorization-code              polar_ac_  [A-Za-z0-9]{43}
polar-oauth-client-registration-token       polar_crt_  [A-Za-z0-9]{43}
polar-oauth-client-secret                   polar_cs_  [A-Za-z0-9]{43}
polar-oauth-refresh-token-user-org-subject  polar_rt_  (?:[uo]_)?[A-Za-z0-9]{43}
polar-user-session-token                    polar_us_  [A-Za-z0-9]{43}
posthog-oauth-refresh-token-bare            phr_  [A-Za-z0-9_\-]{43,48}
posthog-project-secret-api-key              phs_  [A-Za-z0-9_\-]{43,50}
pydantic-services-inc-write-api-token       pylf_v  [0-9]+_[a-z]+_(?:[0-9a-f]{8}\-[0-9a-f]{4}\-[0-9a-f]{4}\-[0-9a-f]{4}\-[0-9a-f]{12}_)?[A-Za-z0-9]{20,}
pypi-test-pypi-org-upload-token-sibling     pypi-AgENdGVzdC5weXBpLm9yZ  [A-Za-z0-9_\-]{50,1000}
rainforest-pay-production                   apikey_  [a-f0-9]{64}
rainforest-pay-sandbox                      sbx_apikey_  [a-f0-9]{64}
sentry-integration-token                    sntryi_  [a-f0-9]{64}
sentry-organization-auth-token              sntrys_eyJpYXQiO  [A-Za-z0-9+/]{10,200}(?:LCJyZWdpb25fdXJs|InJlZ2lvbl91cmwi|cmVnaW9uX3VybCI6)[A-Za-z0-9+/]{10,200}={0,2}_[A-Za-z0-9+/]{43}
sentry-user-app-auth-token                  sntrya_  [a-f0-9]{64}
shopify-partner-api-client-access-token     prtapi_  [A-Za-z0-9]{32}
slack-workflow-token                        xwfp-  [A-Za-z0-9\-]{20,}
slack-workflow-trigger-url                                 https:\/\/hooks\.slack\.com\/triggers\/T(?:(?<![A-Za-z0-9_-]https:\/\/hooks\.slack\.com\/triggers\/T)|(?<=\\[nrt]https:\/\/hooks\.slack\.com\/triggers\/T))[A-Z0-9]+\/[0-9]+\/[a-f0-9]{32}(?![A-Za-z0-9_-])
slack-workflow-webhook-url-legacy-workflow-builder         https:\/\/hooks\.slack\.com\/workflows\/T(?:(?<![A-Za-z0-9_-]https:\/\/hooks\.slack\.com\/workflows\/T)|(?<=\\[nrt]https:\/\/hooks\.slack\.com\/workflows\/T))[A-Z0-9]+\/A[A-Z0-9]+\/[0-9]{17,19}\/[A-Za-z0-9]{23,25}(?![A-Za-z0-9_-])
sourcegraph-dotcom-user-gateway-access-token               sgd_(?:(?<![A-Za-z0-9_-]sgd_)|(?<=\\[nrt]sgd_))[a-fA-F0-9]{64}(?![A-Za-z0-9_-])
sourcegraph-license-key-token               slk_  [a-fA-F0-9]{64}
sourcegraph-product-enterprise-subscription-token          sgs_(?:(?<![A-Za-z0-9_-]sgs_)|(?<=\\[nrt]sgs_))[a-fA-F0-9]{64}(?![A-Za-z0-9_-])
square-access-token-current                 EAAA  [A-Za-z0-9_\-+=]{60}
square-sandbox-application-secret           sandbox-sq0cs  [bp]\-[A-Za-z0-9_\-]{43}
stripe-organization-api-key                 sk_org_  [A-Za-z0-9_]{24,247}
tencent-cloud-secretid                      AKID  [A-Za-z0-9]{32}
typeform-personal-access-token              tfp_  [A-Za-z0-9_\-=.]{59}
wakatime-oauth-access-token                 waka_tok_  [A-Za-z0-9]{20,}
wave-mobile-money-inc-production-api-key    wave_  [a-z]{2}_prod_[A-Za-z0-9_\-]{20,}
yandex-cloud-api-key                        AQVN  [A-Za-z0-9_\-]{35,38}
yandex-refresh-token-sibling                rt1.  [A-Z0-9a-z_\-]+={0,2}\.[A-Z0-9a-z_\-]{86}={0,2}
yandex-smartcaptcha-server-key              ysc2_  [a-zA-Z0-9]{40}[0-9a-f]{8}
yandex-translate-api-key-legacy-v1-5        trnsl.1.1.  [0-9]{8}T[0-9]{6}Z\.[a-f0-9]{16}\.[a-f0-9]{40}
# 0.7.10, more sources: prefixed formats that Trivy (Apache-2.0), Google OSV-SCALIBR Veles (Apache-2.0),
# nuclei-templates (MIT) and titus (Apache-2.0) know and no rule above takes
amazon-mws-auth-token                       amzn.mws.  [0-9a-f]{8}\-[0-9a-f]{4}\-[0-9a-f]{4}\-[0-9a-f]{4}\-[0-9a-f]{12}
atlassian-api-token-bare                    ATATT3xFfGF0  [a-zA-Z0-9_\-]{20,200}=[0-9A-F]{8}
facebook-graph-explorer-access-token        EAACEdEose0cBA  [a-zA-Z0-9]+
new-relic-synthetics-private-location-key   NRSP-  [a-z]{2}[0-9]{2}[a-f0-9]{31}
notion-refresh-token                        nrt_  [A-Z0-9_]{40,55}
openai-service-api-key-legacy               sk-service-  [A-Za-z0-9\-]+\-[A-Za-z0-9]{20}T3BlbkFJ[A-Za-z0-9]{20}
retool-workflow-api-key                     retool_wk_  [0-9a-f]{32}
slack-app-configuration-access-token        xoxe.xoxp-  [\d]{1,10}\-[a-zA-Z0-9]{166}
# 0.7.10, provider code: prefixed formats read from the providers' own published code (SDKs, servers,
# token libraries) and documentation that no rule above takes
akamai-edgegrid-client-token-access-token              akab\-(?:(?<![A-Za-z0-9_-]akab\-)|(?<=\\[nrt]akab\-))[a-z0-9]{16}\-[a-z0-9]{16}(?![A-Za-z0-9_-])(?!\.[A-Za-z0-9])
baseten-api-key-2026-format                 b10_  [A-Za-z0-9]{8}\.[A-Za-z0-9]{32}
browserbase-api-key                         bb_live_  [A-Za-z0-9_\-]{20,}
buildkite-agent-access-token                bkaa_  [A-Za-z0-9_.\-]{37,2047}[A-Za-z0-9_\-]
buildkite-agent-job-acquisition-token-jwt   bkjat_  [A-Za-z0-9_.\-]{37,2047}[A-Za-z0-9_\-]
buildkite-agent-job-token                   bkaj_  [A-Za-z0-9_.\-]{37,2047}[A-Za-z0-9_\-]
buildkite-api-access-token                  bkua_  [A-Za-z0-9_.\-]{37,2047}[A-Za-z0-9_\-]
buildkite-cluster-queue-token               bkcqt_  [A-Za-z0-9_.\-]{37,2047}[A-Za-z0-9_\-]
buildkite-oauth-refresh-token               bkur_  [A-Za-z0-9_.\-]{37,2047}[A-Za-z0-9_\-]
buildkite-packages-registry-token           bkrt_  [A-Za-z0-9_.\-]{37,2047}[A-Za-z0-9_\-]
buildkite-packages-temporary-token          bkpt_  [A-Za-z0-9_.\-]{37,2047}[A-Za-z0-9_\-]
buildkite-pipeline-access-token             bkat_  [A-Za-z0-9_.\-]{37,2047}[A-Za-z0-9_\-]
buildkite-pipeline-trigger-token            bktr_  [A-Za-z0-9_.\-]{37,2047}[A-Za-z0-9_\-]
buildkite-portal-secret                     bkps_  [A-Za-z0-9_.\-]{37,2047}[A-Za-z0-9_\-]
buildkite-portal-token                      bkpat_  [A-Za-z0-9_.\-]{37,2047}[A-Za-z0-9_\-]
buildkite-token-exchange                    bktx_  [A-Za-z0-9_.\-]{37,2047}[A-Za-z0-9_\-]
cartesia-admin-api-key                      sk_car_admin_  [A-Za-z0-9]{20,64}
cartesia-api-key                            sk_car_  (?!admin_)[A-Za-z0-9]{20,64}
circleci-personal-api-token                 CCIPAT_  [A-Za-z0-9]{22}_[A-Za-z0-9]{40}
circleci-project-api-token                  CCIPRJ_  [A-Za-z0-9]{22}_[A-Za-z0-9]{40}
cloudflare-account-api-token-2026-scannable cfat_  [A-Za-z0-9_\-]{40}[A-Za-z0-9_\-]{6,8}
cloudflare-oauth-access-token-user          cfoat_  [A-Za-z0-9_\-]{40,60}
context7-upstash-api-key                    ctx7sk-  [A-Za-z0-9_\-]{20,}
datadog-application-key-new-format          ddapp_  [A-Za-z0-9]{16,24}_[A-Za-z0-9]{40,56}
datadog-service-access-token-bare           ddsat_  [A-Za-z0-9]{16,24}_[A-Za-z0-9]{40,56}
depot-ci-job-token                          depot_cijob_  [A-Za-z0-9]{32,64}
depot-organization-token                    depot_org_  [A-Za-z0-9]{32,64}
e2b-access-token-legacy-dropped-2026-08     sk_e2b_  [0-9a-f]{40}
elastic-cloud-serverless-uiam-credential-api-key       essu_(?:(?<![A-Za-z0-9_-]essu_)|(?<=\\[nrt]essu_))[A-Za-z0-9_=\-]{30,}(?![A-Za-z0-9_-])
fly-io-macaroon-token-v2                    fm2_  (?<!FlyV1 fm2_)(?<!,fm2_)[A-Za-z0-9+/_\-]{100,}={0,3}
hashicorp-vault-recovery-token              hvr.  [A-Za-z0-9_\-]{24,}
kaggle-api-token-2025-access-token          KGAT_  [0-9a-f]{32}
launchdarkly-server-side-sdk-key            sdk-  [0-9a-f]{8}\-[0-9a-f]{4}\-[0-9a-f]{4}\-[0-9a-f]{4}\-[0-9a-f]{12}
letta-api-key                               sk-let-  [A-Za-z0-9_\-]{20,}
mongodb-atlas-service-account-client-secret mdb_sa_sk_  [A-Za-z0-9_\-]{24,80}
neon-api-key-bare                           napi_  [A-Za-z0-9]{40,80}
netbird-personal-access-token               nbp_  [A-Za-z0-9]{36}
netbird-proxy-access-token                  nbx_  [A-Za-z0-9]{36}
netbird-user-invite-token                   nbi_  [A-Za-z0-9]{36}
netlify-personal-access-token               nfp_  (?=[0-9a-f]{0,39}[g-zA-Z])[A-Za-z0-9]{36,40}
notion-dev-environment-pat                  development_ntn_  [0-9]{11}[A-Za-z0-9]{35}
onesignal-app-api-key-v2                    os_v2_app_  [a-z0-9]{100,120}
onesignal-organization-api-key-v2           os_v2_org_  [a-z0-9]{100,120}
openpipe-api-key                            opk_  [0-9a-f]{42}
openstack-keystone-rust-scim-api-key        kscim_  [A-Za-z0-9]{43}_[0-9a-f]{8}
polar-checkout-checkout-link-client-secret  polar_c  l?_[A-Za-z0-9]{43}
posthog-heatmap-screenshot-secret           phh_  [A-Za-z0-9_\-]{20,26}
prefect-cloud-service-account-bot-api-key   pnb_  [A-Za-z0-9]{36}
pydantic-ai-gateway-gateway-api-key         pylf_v  [0-9]+_[a-z]+_[A-Za-z0-9_\-]{20,}
render-api-key-bare                         rnd_  [A-Za-z0-9]{32}
runpod-api-key                              rpa_  [A-Za-z0-9]{16,}
sentry-org-auth-token                       sntrys_eyJ  [A-Za-z0-9+/=]{20,}_[A-Za-z0-9+/]{43}
socket-dev-api-token                        sktsec_  [A-Za-z0-9_]{30,}
statsig-server-secret-key                   secret-  [A-Za-z0-9]{40,46}
stytch-project-workspace-secret             secret-  (?:test|live)\-[A-Za-z0-9_=\-]{36,44}
supabase-oauth-access-token                 sbp_oauth_  [0-9a-f]{40}
supabase-pat-supabase-pat-variant           supabase_pat_  [A-Za-z0-9]{31,}
tavily-api-key-bare                         tvly-  (?:dev\-|prod\-)?[A-Za-z0-9_\-]{20,}
together-ai-api-key-v1-format               tgp_v1_  [A-Za-z0-9_\-]{40,50}
trigger-dev-organization-access-token       tr_oat_  [A-Za-z0-9]{20,64}
trigger-dev-personal-access-token-bare      tr_pat_  [1-9a-km-z]{40}
umami-api-key                               umami_  [A-Za-z0-9]{32}
upstash-box-api-key                         box_  [A-Za-z0-9_\-]{24,}
vercel-api-key                              vck_  [A-Za-z0-9]{24,60}
vercel-app-access-token-bare                vca_  [A-Za-z0-9]{24,60}
vercel-app-refresh-token-bare               vcr_  [A-Za-z0-9]{24,60}
vercel-integration-token-bare               vci_  [A-Za-z0-9]{24,60}
vercel-personal-product-token-vcp           vcp_  [A-Za-z0-9]{24,60}
wagtail-api-token                           wagtail_  [A-Za-z0-9]{33}
weights-biases-api-key-v1-format            wandb_v1_  [A-Za-z0-9_]{70,90}
zuplo-api-key-consumer                      zpka_  [A-Za-z0-9]{32,}_[A-Za-z0-9]{6,8}
# 0.7.11, provider code, round 2: more prefixed formats read from the providers' own code and documentation
# (the providers that GitHub secret scanning and trufflehog name) that no rule above takes
apify-proxy-password                        apify_proxy_  [A-Za-z0-9]{36}
braintree-oauth-access-token-production     access_token\$production\$(?:(?<![A-Za-z0-9_-]access_token\$production\$)|(?<=\\[nrt]access_token\$production\$))[A-Za-z0-9_]{1,64}\$[0-9a-f]{8,64}(?![A-Za-z0-9_-])
braintree-oauth-access-token-sandbox        access_token\$sandbox\$(?:(?<![A-Za-z0-9_-]access_token\$sandbox\$)|(?<=\\[nrt]access_token\$sandbox\$))[A-Za-z0-9_]{1,64}\$[0-9a-f]{8,64}(?![A-Za-z0-9_-])
braintree-oauth-client-secret-production    client_secret\$production\$(?:(?<![A-Za-z0-9_-]client_secret\$production\$)|(?<=\\[nrt]client_secret\$production\$))[A-Za-z0-9_]{8,64}(?![A-Za-z0-9_-])
braintree-oauth-client-secret-sandbox       client_secret\$sandbox\$(?:(?<![A-Za-z0-9_-]client_secret\$sandbox\$)|(?<=\\[nrt]client_secret\$sandbox\$))[A-Za-z0-9_]{8,64}(?![A-Za-z0-9_-])
byteplus-access-key-id                      AKLT  [a-zA-Z0-9_\-]{16,28}
canva-connect-apps-oauth-client-secret      cnvca  [A-Za-z0-9_\-]{20,}
checkout-com-sandbox-secret-key-abc         sk_test_  [A-Za-z0-9_]{8}\-[A-Za-z0-9_]{4}\-[A-Za-z0-9_]{4}\-[A-Za-z0-9_]{4}\-[A-Za-z0-9_]{12}
chief-tools-oauth-access-token              cto_  [A-Za-z0-9]{36,248}
chief-tools-oauth-refresh-token             ctr_  [A-Za-z0-9]{36,248}
chief-tools-personal-access-token           ctp_  [A-Za-z0-9]{36,248}
chief-tools-team-access-token               ctt_  [A-Za-z0-9]{36,248}
crates-io-trusted-publishing-token          cio_tp_  [A-Za-z0-9]{32}
databricks-oauth-u2m-refresh-token          doau  [a-zA-Z0-9]{32,40}
duffel-test-access-token                    duffel_test_  [A-Za-z0-9_\-]{20,128}
fieldguide-user-api-token                   fg_us_  [0-9a-f]{32}
gitlab-runner-registration-auth-token       glrtr-  (?:(?:t[0-9a-f]+_)?[A-Za-z0-9_\-]{20}|[A-Za-z0-9_\-]{27,600}\.01\.[0-9a-z]{9})
gitlab-session-cookie-bare                  _gitlab_session=(?:(?<![A-Za-z0-9_-]_gitlab_session=)|(?<=\\[nrt]_gitlab_session=))[A-Za-z0-9%_\-]{32,}(?![A-Za-z0-9_-])
gitlab-workspace-token-gitlab-18-2          glwt-  [A-Za-z0-9_\-]{27,600}\.01\.[0-9a-z]{9}
google-api-key-bound-to-service-account     AQ.Ab8R  [a-zA-Z0-9_\-]{46}
google-cloud-storage-hmac-key-access-id     GOOG  (?:[A-Z0-9]{57}|[A-Z0-9]{20})
hex-api-key-hex-pm                          hex_  [0-9a-f]{40}
huggingface-organization-api-token-legacy   api_org_  [A-Za-z0-9]{34}
jumpcloud-admin-api-key                     jca_  [A-Za-z0-9]{36}
klarna-live-api-key                         klarna_live_api_  [A-Za-z0-9]{20,256}
klarna-test-playground-api-key              klarna_test_api_  [A-Za-z0-9]{20,256}
limbar-limrun-organization-api-key          lim_  [A-Za-z0-9]{20,64}
limbar-limrun-scoped-signed-registry-token  lim_st_  [A-Za-z0-9_\-]{10,}\.[A-Za-z0-9_\-]{10,}\.[A-Za-z0-9_\-]{10,}
nylas-v3-api-key                            nyk_v0  [A-Za-z0-9_]{20,}
persona-production-api-key-bare             persona_production_  [A-Za-z0-9_\-]{20,128}
persona-sandbox-api-key                     persona_sandbox_  [A-Za-z0-9_\-]{20,128}
plaid-assets-token-production               assets-production-  [0-9a-f]{8}\-[0-9a-f]{4}\-[0-9a-f]{4}\-[0-9a-f]{4}\-[0-9a-f]{12}
plaid-assets-token-sandbox                  assets-sandbox-  [0-9a-f]{8}\-[0-9a-f]{4}\-[0-9a-f]{4}\-[0-9a-f]{4}\-[0-9a-f]{12}
plaid-processor-token-production            processor-production-  [0-9a-f]{8}\-[0-9a-f]{4}\-[0-9a-f]{4}\-[0-9a-f]{4}\-[0-9a-f]{12}
plaid-processor-token-sandbox               processor-sandbox-  [0-9a-f]{8}\-[0-9a-f]{4}\-[0-9a-f]{4}\-[0-9a-f]{4}\-[0-9a-f]{12}
plaid-user-token-production                 user-production-  [0-9a-f]{8}\-[0-9a-f]{4}\-[0-9a-f]{4}\-[0-9a-f]{4}\-[0-9a-f]{12}
plaid-user-token-sandbox                    user-sandbox-  [0-9a-f]{8}\-[0-9a-f]{4}\-[0-9a-f]{4}\-[0-9a-f]{4}\-[0-9a-f]{12}
pubnub-secret-key                           sec-c-  [A-Za-z0-9+/]{48}
shippo-live-api-token                       shippo_live_  [0-9a-f]{32,40}
shippo-test-api-token                       shippo_test_  [0-9a-f]{32,40}
slack-rotating-access-token                 xoxe.x  (?:oxb|oxp|app)\-1\-[A-Za-z0-9\-]{20,}
square-oauth-refresh-token                  EQAA  [A-Za-z0-9_\-]{60}
stripe-claimable-sandbox-restricted-key     rkcs_  [A-Za-z0-9_]{16,255}
stripe-organization-api-key-bare            sk_org_  [A-Za-z0-9_]{16,255}
wave-senegal-request-signing-secret         wave_sn_AKS_  [A-Za-z0-9]{20,256}
zapier-catch-hook-webhook-url               (?<![\w./-])(?:https?://)?hooks\.zapier\.com\/hooks\/catch\/(?:(?<![A-Za-z0-9_-]hooks\.zapier\.com\/hooks\/catch\/)|(?<=\\[nrt]hooks\.zapier\.com\/hooks\/catch\/))[0-9]+\/[A-Za-z0-9]+\/?(?![A-Za-z0-9_-])
# 0.8.3: Labelbox API keys (lbx_ and rma_, 43 characters, the last one of a fixed set), from the betterleaks rules on
# main of 2026-10-28, ahead of its next release
labelbox-api-key                            lbx_  [A-Za-z0-9_-]{42}[AEIMQUYcgkosw048]
labelbox-recursion-api-key                  rma_  [A-Za-z0-9_-]{42}[AEIMQUYcgkosw048]
# 0.8.5: Composio API keys (org oak_ with 20 characters, user uak_ with 43; Stripe OAK tokens start with oak_ too, so
# that line names no vendor), from the trufflehog detector of
# 2026-10-28. oak_ also needs a capital and a digit, so a short identifier is no hit. The project key ak_ has no line:
# its prefix is shorter than four characters.
oak-api-key                                 oak_  (?=[A-Za-z_-]{0,19}[0-9])(?=[a-z0-9_-]{0,19}[A-Z])[A-Za-z0-9_-]{20}
composio-user-api-key                       uak_  [A-Za-z0-9_-]{43}
# 0.9.6: a Bitbucket Cloud OAuth consumer secret (Atlassian's ATxx scheme, as ATATT and ATBB above). Atlassian
# documents no format; the line follows a secret of a new consumer: ATOA, a body of 64, an upper-case hex tail of 8.
# The consumer key beside it is public (the authorize URL carries it) and has no line.
bitbucket-oauth-consumer-secret             ATOA  [A-Za-z0-9_-]{60,68}[0-9A-F]{8}
# 0.9.6, a survey of the services an IT company commonly uses: formats that no vendored catalog takes when the token
# stands alone. Each regex is written here from the vendor's documentation or from the format a catalog under the
# Apache or MIT license names (Kingfisher); each had 0 hits in 182 MB of public code.
aws-sts-session-token                       IQoJb3JpZ2luX2Vj  [A-Za-z0-9+/=]{100,}
aws-sts-session-token-legacy                FwoGZXIvYXdzE  [A-Za-z0-9+/=]{100,}
google-oauth-refresh-token                  1//0  [A-Za-z0-9_-]{60,}
slack-refresh-token                         xoxe-1-  [A-Za-z0-9-]{140,}
paypal-rest-access-token                    A21AA  [A-Za-z0-9_-]{80,}
cloudflare-tunnel-token                     eyJhIjoi  [A-Za-z0-9+/]{100,}={0,2}
honeycomb-ingest-key                        hcaik_  [0-9a-z]{58}
honeycomb-ingest-key-x                      hcxik_  [0-9a-z]{58}
coralogix-api-key                           cxtp_  [A-Za-z0-9]{30}
coralogix-user-key                          cxup_  [A-Za-z0-9]{30}
# the same survey, two tokens whose literal start has other edges: written in the long form (four more, with no
# literal start of 4 characters, are own rules in maisecrets/detection/own_rules.py)
harbor-robot-account-secret                 robot\$[A-Za-z0-9_.-]+(?:\+[A-Za-z0-9_.-]+)?:[A-Za-z0-9]{32}(?![A-Za-z0-9])
make-webhook-url                            https://hook\.[a-z0-9]+\.make\.com/[a-z0-9]{32}(?![A-Za-z0-9])
# 0.9.6, a second survey (self-hosted tools, data platforms, key files): formats that no rule above takes alone.
# Gitpod's token from its source (gitpod-io/gitpod#14806), dbt Cloud's from its docs, Anyscale's from its SDK, the
# EC keys from their DER head (an SEC1 and a PKCS#8 key of P-256 as one base64 line, without a PEM header). Each had
# 0 hits in 570 MB of public code
gitpod-personal-access-token                gitpod_pat_  [A-Za-z0-9_-]{30,}\.[A-Za-z0-9_-]{30,}
dbt-cloud-service-token                     dbtc_  [A-Za-z0-9_-]{40,}
dbt-cloud-user-token                        dbtu_  [A-Za-z0-9_-]{40,}
anyscale-api-key                            esecret_  [a-z0-9]{26}
ec-private-key-der-base64                   MHcCAQEEI  [A-Za-z0-9+/]{140,}={0,2}
ec-pkcs8-key-der-base64                     MIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQg  [A-Za-z0-9+/]{120,}={0,2}
# 0.9.7, from the format watch (trufflehog pkg/detectors/serval): a Serval secret key, svl_secret_ with pk, wk or
# mk, then 43 characters and a 6-character check part
serval-secret-key                           svl_secret_  (?:pk|wk|mk)_[0-9A-Za-z]{49}
