Gitleaks
ID gitleaks
detector
Open-source (MIT) secret scanner that finds hard-coded credentials, such as API keys, access tokens and private keys, in git history, directories and standard input. Its rules combine regular expressions with keywords and entropy checks. The list of supported types covers only the registry datatypes that match a gitleaks rule.
- Website
- https://github.com/gitleaks/gitleaks
- Supported types
- 77
Supported semantic types
| ID | Name | Categories | Countries | Description |
|---|---|---|---|---|
| age_secret_key | age secret key (X25519 identity) | secrets, cryptography | global | Secret key (identity) of the age file encryption format and tool, which decrypts files encrypted to the matching age1... public key. It... |
| airtable_personal_access_token | Airtable personal access token | secrets | global | Personal access token of the Airtable Web API, which replaced the deprecated API keys in February 2024. Airtable does not publish the... |
| anthropic_api_key | Anthropic API key | secrets | global | Secret key of the Anthropic (Claude) API, sent in the x-api-key header. Standard keys start with sk-ant-api03- and Admin API keys, which... |
| atlassian_api_token | Atlassian API token | secrets | global | API token of an Atlassian account (Jira, Confluence and other Atlassian cloud products). Current tokens start with ATATT3; secret... |
| aws_access_key_id | AWS access key ID | secrets | global | Public half of an Amazon Web Services access key pair, sent with every signed API request together with the secret access key. It has 20... |
| azure_entra_client_secret | Microsoft Entra ID client secret | secrets | global | Client secret of a Microsoft Entra ID (Azure AD) application registration, used by a service principal to obtain tokens. Microsoft... |
| clojars_deploy_token | Clojars deploy token | secrets | global | Token with which a build tool deploys artifacts to the Clojars repository instead of a password. Deploy tokens start with CLOJARS_, as... |
| cloudflare_origin_ca_key | Cloudflare Origin CA key | secrets | global | Key for the Cloudflare Origin CA certificates API, often sent in the X-Auth-User-Service-Key header and also used by the Keyless SSL key... |
| databricks_access_token | Databricks personal access token | secrets | global | Personal access token of Databricks, used to authenticate to a Databricks workspace. It starts with dapi followed by 32 hexadecimal... |
| digitalocean_token | DigitalOcean API token | secrets | global | API token of DigitalOcean. The prefix tells the token type: dop_v1_ for a personal access token, doo_v1_ for an OAuth access token and... |
| doppler_token | Doppler token | secrets | global | Access token of the Doppler secrets manager. Doppler documents one format per token type, each starting with dp. and a type code: dp.pt.... |
| dropbox_short_lived_token | Dropbox short-lived access token | secrets | global | Short-lived OAuth access token of the Dropbox API. Dropbox staff state that these tokens start with sl., while the deprecated long-lived... |
| dynatrace_token | Dynatrace token | secrets | global | Access token of Dynatrace in the format used since Dynatrace version 1.210: a prefix that names the token type (dt0 followed by a letter... |
| facebook_access_token | Meta (Facebook) Graph API access token | secrets | global | User, page or system user access token of the Meta (Facebook) Graph API. These tokens start with EAA followed by a long string of... |
| facebook_app_access_token | Facebook app access token | secrets | global | App access token of the Meta (Facebook) Graph API written as the app ID, a vertical bar and the app secret. Meta allows this form in... |
| flutterwave_secret_key | Flutterwave secret key | secrets | global | Secret API key of the Flutterwave payments API. Flutterwave documents that secret keys start with FLWSECK and that test keys add _TEST... |
| github_fine_grained_pat | GitHub fine-grained personal access token | secrets | global | Fine-grained personal access token of GitHub, limited to selected repositories and permissions: github_pat_ followed by 82 letters,... |
| github_token | GitHub token | secrets | global | Token issued by GitHub, such as a personal access token. It starts with a prefix that names the token type (ghp_, gho_, ghu_, ghs_ or... |
| gitlab_agent_token | GitLab agent for Kubernetes token | secrets | global | Token with which the GitLab agent for Kubernetes, running in a cluster, authenticates to GitLab. GitLab gives these tokens the prefix... |
| gitlab_cicd_job_token | GitLab CI/CD job token | secrets | global | Short-lived token that GitLab creates for each CI/CD job (CI_JOB_TOKEN) to call the API and fetch artifacts and packages during the job.... |
| gitlab_deploy_token | GitLab deploy token | secrets | global | Token that gives read or write access to the repositories, container registry or package registry of one GitLab project or group,... |
| gitlab_feature_flags_client_token | GitLab feature flags client token | secrets | global | Token with which applications fetch the feature flags of a GitLab project through its Unleash-compatible API. GitLab gives these tokens... |
| gitlab_feed_token | GitLab feed token | secrets | global | Token in the URLs of GitLab RSS and Atom feeds and calendar feeds; it gives read access to the activity of the user. GitLab gives these... |
| gitlab_incoming_mail_token | GitLab incoming mail token | secrets | global | Token in the email address to which a user sends mail to create issues or merge requests in a GitLab project. GitLab gives these tokens... |
| gitlab_oauth_app_secret | GitLab OAuth application secret | secrets | global | Client secret of an OAuth application registered in GitLab. GitLab gives these tokens the prefix gloas-, which cannot be configured.... |
| gitlab_pat | GitLab personal access token | secrets | global | Personal access token of GitLab, which authenticates a user to the GitLab API and to Git over HTTPS. GitLab gives these tokens the... |
| gitlab_runner_token | GitLab runner authentication token | secrets | global | Token with which a GitLab Runner authenticates to a GitLab instance to pick up CI/CD jobs. GitLab gives these tokens the prefix glrt-... |
| gitlab_scim_token | GitLab SCIM token | secrets | global | Token with which an identity provider provisions and deprovisions GitLab users and group members through the SCIM API. GitLab gives... |
| gitlab_session_cookie | GitLab session cookie | secrets | global | Session cookie of the GitLab web interface, written as _gitlab_session=<value>. Whoever has the cookie is signed in as the user until... |
| gitlab_trigger_token | GitLab pipeline trigger token | secrets | global | Token that starts a CI/CD pipeline of a GitLab project through the pipeline triggers API. GitLab gives these tokens the prefix glptt-,... |
| google_api_key | Google API key | secrets | global | API key for Google Cloud and Google Maps APIs: the prefix AIza followed by 35 letters, digits, hyphens or underscores. |
| grafana_cloud_token | Grafana Cloud access policy token | secrets | global | Token of a Grafana Cloud access policy, used by agents and API clients to send and query telemetry. Grafana documents that these tokens... |
| grafana_service_account_token | Grafana service account token | secrets | global | Token of a Grafana service account, sent as a bearer token to the Grafana HTTP API: glsa_ followed by 32 letters and digits, an... |
| hashicorp_vault_token | HashiCorp Vault token | secrets | global | Token that authenticates a client to HashiCorp Vault. Since Vault 1.10 the prefix names the token type - hvs. for service tokens, hvb.... |
| heroku_oauth_token | Heroku API OAuth access token | secrets | global | OAuth access token of the Heroku Platform API, which the Heroku CLI also uses. Tokens granted from April 2024 start with HRKU-: until... |
| huggingface_access_token | Hugging Face access token | secrets | global | User access token of the Hugging Face Hub, used in place of a password for git, as a bearer token for Inference Providers and in the... |
| jfrog_api_key | JFrog Artifactory API key | secrets | global | Deprecated API key of JFrog Artifactory: the prefix AKCp followed by 69 letters and digits (the format that the gitleaks secret scanner... |
| jfrog_reference_token | JFrog reference token | secrets | global | Short token of the JFrog Platform (Artifactory) that refers to a full JWT access token. It has 64 characters: the prefix cmVmd followed... |
| jwt | JSON Web Token (JWT) | secrets | global | Compact JSON Web Token (RFC 7519) signed with JWS: three Base64url parts (header, claims and signature) separated by dots. The header... |
| linear_api_key | Linear API key | secrets | global | Personal API key of Linear, the issue tracking service: lin_api_ followed by 40 letters and digits. |
| mailchimp_api_key | Mailchimp API key | secrets | global | API key of the Mailchimp Marketing API: 32 hexadecimal digits, a hyphen and the data center of the account (for example us6), which is... |
| mailgun_api_key | Mailgun API key | secrets | global | Private API key of Mailgun, the password of HTTP Basic authentication with the user name api. The regexp covers the older form key-... |
| mapbox_access_token | Mapbox access token | secrets | global | Access token of the Mapbox APIs. Mapbox documents three kinds by prefix: public tokens (pk), meant to be embedded in client... |
| new_relic_insights_key | New Relic Insights insert or query key | secrets | global | Older New Relic key for the Insights event insert API (insert key) or the Insights query API (query key). New Relic does not publish the... |
| new_relic_user_api_key | New Relic user key | secrets | global | User key of New Relic, a personal API key that NerdGraph, New Relic's GraphQL API, requires for querying data and changing... |
| notion_integration_token | Notion integration token | secrets | global | API token of a Notion integration. Tokens generated since 25 September 2024 start with ntn_; older tokens start with secret_ and keep... |
| npm_access_token | npm access token | secrets | global | Access token of the npm package registry in the format introduced in 2021: the prefix npm_ followed by 36 letters and digits, the last... |
| onepassword_service_account_token | 1Password service account token | secrets | global | Token of a 1Password service account. 1Password gives it the prefix ops_ so that code analyzers can find it; the rest is a... |
| openai_api_key | OpenAI API key | secrets | global | Secret key of the OpenAI API. Keys start with sk-; project, service account and admin keys start with sk-proj-, sk-svcacct- or... |
| openssh_private_key | OpenSSH private key | secrets, cryptography | global | Private key in the OpenSSH key format (openssh-key-v1): a Base64 block between the lines -----BEGIN OPENSSH PRIVATE KEY----- and... |
| pgp_private_key_block | OpenPGP private key block | secrets, cryptography | global | OpenPGP secret key in ASCII armor: Radix-64 text between the lines -----BEGIN PGP PRIVATE KEY BLOCK----- and -----END PGP PRIVATE KEY... |
| planetscale_password | PlanetScale database password | secrets | global | Password of a PlanetScale database: pscale_pw_ followed by 32 to 64 letters, digits and the characters _ = . -. |
| planetscale_token | PlanetScale API token | secrets | global | Token for the PlanetScale API and CLI: a service token starts with pscale_tkn_ and an OAuth token with pscale_oauth_. Secret scanners... |
| postman_api_key | Postman API key | secrets | global | API key of the Postman API, sent in the X-API-Key header: PMAK- followed by 24 hexadecimal digits, a hyphen and 34 more hexadecimal digits. |
| prefect_api_key | Prefect Cloud API key | secrets | global | API key of Prefect Cloud, used by workers and the Prefect client. Prefect does not publish the format; the regexp follows the gitleaks... |
| pulumi_access_token | Pulumi access token | secrets | global | Access token of Pulumi Cloud (a personal, organization or team token): pul- followed by 40 hexadecimal digits. |
| pypi_token | PyPI API token | secrets | global | API token of the Python Package Index, used to upload packages. It is a serialized macaroon with the prefix pypi-; PyPI documents that... |
| rubygems_api_key | RubyGems API key | secrets | global | API key of RubyGems.org, used by the gem CLI to push and manage gems, for example through the GEM_HOST_API_KEY environment variable:... |
| sendgrid_api_key | SendGrid API key | secrets | global | API key of Twilio SendGrid, also used as the SMTP password. Keys are always 69 characters long and start with SG. followed by letters,... |
| sendinblue_api_key | Sendinblue API key | secrets | global | API key of the Sendinblue email marketing service: xkeysib- followed by 64 hexadecimal digits, a hyphen and 16 letters and digits. |
| sentry_auth_token | Sentry auth token | secrets | global | Auth token of Sentry, the error monitoring service. Personal (user) tokens are sntryu_ followed by 64 hexadecimal digits. Organization... |
| shippo_api_token | Shippo API token | secrets | global | API token of the Shippo shipping API. Shippo documents that live tokens start with shippo_live_ and test tokens with shippo_test_; the... |
| shopify_access_token | Shopify access token | secrets | global | Access token of a Shopify app. The prefix tells the kind of token: shpat_ for an app access token, shpca_ for a custom app and shppa_... |
| shopify_shared_secret | Shopify app shared secret | secrets | global | Shared secret of a Shopify app: the prefix shpss_ followed by 32 hexadecimal digits. |
| slack_token | Slack token | secrets | global | Access token of the Slack API. The prefix names the token type, for example xoxb- for bot tokens and xoxp- for user tokens. |
| slack_webhook_url | Slack incoming webhook URL | secrets | global | URL of a Slack incoming webhook or workflow trigger on hooks.slack.com. Anyone who knows the URL can post messages to the channel, so... |
| sonarqube_token | SonarQube token | secrets | global | Token of SonarQube Server used to run an analysis or call the web API instead of a login and password. Current tokens start with one of... |
| square_access_token | Square access token | secrets | global | Personal or OAuth access token of the Square APIs. Square does not document the format; secret scanners such as gitleaks recognize it by... |
| stripe_api_key | Stripe secret or restricted API key | secrets | global | Server-side API key of Stripe. Secret keys start with sk_ and restricted keys with rk_, followed by test_ for a sandbox or live_ for... |
| telegram_bot_token | Telegram bot token | secrets | global | Token that authorizes a bot in the Telegram Bot API: the numeric bot ID, a colon and a secret that starts with A. Telegram documents the... |
| terraform_cloud_api_token | HashiCorp Terraform Cloud API token | secrets | global | User or organization API token of HashiCorp Terraform Cloud: 14 letters and digits, the marker .atlasv1. and 60 to 70 more letters,... |
| twilio_api_key_sid | Twilio API key SID | secrets | global | String identifier (SID) of a Twilio API key: SK followed by 32 hexadecimal digits. The SID is used together with the API key secret as... |
| twitter_bearer_token | X (Twitter) API bearer token | secrets | global | App-only bearer token of the X (Twitter) API. X describes the token as a byte array of unspecified format; the regexp follows the... |
| typeform_personal_access_token | Typeform personal access token | secrets | global | Personal access token of the Typeform API. The Typeform documentation shows a sample token that starts with tfp_ followed by 40... |
| x509_private_key | X.509 certificate private key | secrets, cryptography | global | Private key of an X.509 certificate, usually written as a PEM block that starts with -----BEGIN PRIVATE KEY----- (or RSA PRIVATE KEY, EC... |
| yandex_cloud_api_key | Yandex Cloud API key | secrets | global | API key of a Yandex Cloud service account. Yandex does not publish the format; the masked key in the Yandex Cloud documentation and the... |
| yandex_cloud_iam_token | Yandex Cloud IAM token | secrets | global | Short-lived IAM token of Yandex Cloud, sent in the Authorization: Bearer header. The regexp is the one that the Yandex Cloud... |
Use this record
- JSON: API v1 · legacy shape
- Improve it: edit
data/tools/detectors/gitleaks.yamlon GitHub