Snowflake Token
Detects Snowflake OAuth access and refresh tokens, which carry the recognizable ver:1-hint: / ver:2-hint: prefix used by Snowflake authentication. These tokens (and programmatic access tokens used in their place) grant query and data access to a Snowflake account.
- Type
- regex
- Engine
- universal
- Confidence
- high
- Confidence justification
- High confidence: the literal ver:N-hint: structure is specific to Snowflake OAuth tokens and does not occur in ordinary text; corroborative Snowflake keywords further reduce false positives.
- Jurisdictions
- global
- Regulations
- Criminal Code Act 1995 (Cth)
- Frameworks
- CIS Controls, ISO 27001, NIST CSF, SOC 2
- Data categories
- credentials, security
- Scope
- narrow
- Risk rating
- 8
- Platform compatibility
- Purview: Compatible, GCP DLP: Unsupported, Macie: Unsupported, Zscaler: Compatible, Palo Alto: Unsupported, Netskope: Unsupported
Pattern
(?<![A-Za-z0-9])ver:[12]-hint:[0-9]{6,}(?:-did:[0-9]{1,6})?(?:-ET[A-Za-z0-9+/_-]{16,}={0,2})?
Corroborative evidence keywords
snowflake, snowflakecomputing, programmatic access token, oauth, access token, refresh token, connection string
Proximity: 300 characters
Should match
ver:1-hint:836412345— Exact 65 probe - service-specific hint structure without independent Snowflake contextSnowflake OAuth access credential ver:1-hint:8364123456789— Exact 75 probe - structured token with Snowflake OAuth contextSnowflake OAuth refresh credential SNOWFLAKE_TOKEN=ver:2-hint:8001830917-did:1014-ETMsDgAAAYclXmkuAxABCDEFGHpsGXxUdaJKZlySzA==— Exact 85 probe - refresh structure, provider context, and canonical assignment
Should not match
ver:3-hint:836412345— Wrong version (only 1 or 2 are valid Snowflake token versions)ver:1-hint:1234— Hint segment too short to be a valid Snowflake tokenOIDC_TOKEN=eyJhbGciOiJSUzI1NiJ9.eyJzdWIiOiJ1c2VyIn0.signaturevalue— Sibling OAuth token structure is not a Snowflake hint tokenver:2-hint:8001830917-did:-ETshort— Malformed refresh token has empty device id and a short ET bodyDocumentation example: Snowflake OAuth refresh SNOWFLAKE_TOKEN=ver:2-hint:8001830917-did:1014-ETMsDgAAAYclXmkuAxABCDEFGHpsGXxUdaJKZlySzA==— Documentation example containing a complete refresh-token shape is excludedsee the snowflake oauth token documentation for the connection string format— Prose mention without a token value
Known false positives
- Documentation or examples showing placeholder ver:1-hint: strings. Mitigation: Require corroborative Snowflake keywords and check for placeholder markers (example, xxxx).