Notion Token

Detects Notion integration tokens in both live formats: the current ntn_ prefix (issued to all new integrations since 25 September 2024) and, when labelled with Notion context, the legacy secret_ prefix (existing tokens remain valid indefinitely). A leaked integration token grants API access to every page and database the integration has been connected to.

Type
regex
Engine
universal
Confidence
high
Confidence justification
High confidence: the ntn_ format is multiply attested -- Notion's own developer changelog announced the prefix change (25 September 2024, explicitly for secret-scanner compatibility), Notion is a GitHub secret-scanning partner with push protection enabled, and gitleaks and Kingfisher independently pin the identical body structure (11 digits + 35 alphanumerics). The legacy secret_ format is pinned at 43 alphanumerics by TruffleHog and confirmed by GitGuardian's v1/v2 detector split; it is deliberately context-gated because its prefix is a generic English word that appears inside longer identifiers. Notion itself warns that token formats may change and recommends treating tokens as opaque -- reflected in the bounded, evidence-pinned regexes and the corroborative keyword requirement at the recommended confidence tier.
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_-])ntn_[0-9]{11}[A-Za-z0-9]{35}(?![A-Za-z0-9_-])

Corroborative evidence keywords

notion, notion.so, NOTION_TOKEN, NOTION_API_KEY, integration token, api key, api_key, apikey, access key, access token, auth token, authorization, bearer, conn str, connection string, connectionstring, cookie, credential, database, host (+38 more)

Proximity: 300 characters

Should match

Should not match

Known false positives

References