Datatypes

Microsoft Entra ID client secret

ID azure_entra_client_secret

DatatypeNot PIIidentifierDraft

This record is a draft: it has not been reviewed yet and may be incomplete or wrong. Do not rely on it for compliance decisions. Help improve it (see CONTRIBUTING.md).

Client secret of a Microsoft Entra ID (Azure AD) application registration, used by a service principal to obtain tokens. Microsoft Purview describes the secret as up to 40 letters, digits and the characters - _ . ~. Secrets generated in the current format carry the marker Q~ after four characters; the regexp follows the gitleaks rule for this format and does not match older secrets.

Parent datatype
API key or client secret api_key
Categories
Secrets and credentials (passwords, keys, tokens)
Countries
Global (not tied to a country)
Languages
Common to most languages
Microsoft Purview
Microsoft Entra client secret, Azure AD client secret
Quality
80/100 · missing: examples, translation
Metacrafter rules
no detection rule yet
Supported by tools
Cloudflare DLP, Datadog Sensitive Data Scanner, GitGuardian, GitHub secret scanning, Gitleaks, Microsoft Purview Data Loss Prevention

Regular expression

^[A-Za-z0-9_~.]{3}[0-9]Q~[A-Za-z0-9_~.-]{31,34}$

Python re syntax.

Examples

ValueDescription
Bb2Cc~3Dd4.-Ee5Ff6Gg7Hh8Ii9Jj0_Kk1Ll2Mm3 invalidPattern example from the Purview definition, without the Q~ marker

Sources

Use this record