redact-secret · Report · Detector
Notion tokens
Format evidence
- Provider documentation 2024-09 Public API token prefix migration · observed 2026-09-23 · the provider documents secret_ as the still-working legacy Public API token prefix and ntn_ as the prefix for newly generated tokens; the 43-character body and alphabet remain tool-corroborated
- trufflehog 3.97.4
This contract covers only the legacy secret_ family. Notion says the token should be treated as opaque, warns that its format may change, and advises against regex validation. The current ntn_ family is distinct and remains outside this contract; the pinned gitleaks rule targets ntn_, while TruffleHog corroborates secret_.
What the run recorded, by group
Detector views overlap, so their groups are never summed across detectors. Other scanners are reference values on the same inputs, in run order.
| Group | Fixtures | Leaked or false alarms | Near-twins | Outcomes | Other scanners, same cell |
|---|---|---|---|---|---|
| Must not flag · Tool-corroborated | 13 | False alarmsat most 22.8%0 of 13 controls flagged | 13 quiet · 0 flagged |
| |
| Must not flag · Project policy | 4 | False alarmsinsufficient-evidence0 of 4 controls flagged | 4 quiet · 0 flagged |
| |
| Must redact · Provider-documented | 12 | Secret spans left readableat most 24.3%0 of 12 spans | Near-twins told apartat least 70.1%9 of 9 pairs | 12 redacted · 0 too much · 0 partly exposed · 0 missed |
|
- Fixtures
- 29
- Left readable
- 0
- Redacted too much
- 0
- False alarms
- 0
Fixtures for this detector
29 fixtures. Choose "Every scanner" to see each scanner's outcome for the same rows.
| Fixture | Kind and evidence | redact-secret |
|---|---|---|
notion-token-bearer-headernotion · documented-format-literal | Must redactT1 · Provider-documented | Redacted |
notion-token-shape-1-barenotion · documented-format-literal | Must redactT1 · Provider-documented | Redacted |
notion-token-shape-1-quotednotion · documented-format-literal | Must redactT1 · Provider-documented | Redacted |
notion-token-shape-1-unicode-crlfnotion · documented-format-literal | Must redactT1 · Provider-documented | Redacted |
notion-token-bearer-header-separator-twinnotion · boundary-violation | Must not flagT2 · Tool-corroborated · twin | Quiet |
notion-token-compose-envnotion · documented-format-literal | Must redactT1 · Provider-documented | Redacted |
notion-token-curl-bearernotion · documented-format-literal | Must redactT1 · Provider-documented | Redacted |
notion-token-database-and-page-ids-public-idnotion · public-identifier | Must not flagT2 · Tool-corroborated | Quiet |
notion-token-debug-client-lognotion · documented-format-literal | Must redactT1 · Provider-documented | Redacted |
notion-token-env-api-keynotion · documented-format-literal | Must redactT1 · Provider-documented | Redacted |
notion-token-env-api-key-length-twinnotion · wrong-length | Must not flagT2 · Tool-corroborated · twin | Quiet |
notion-token-github-actions-envnotion · documented-format-literal | Must redactT1 · Provider-documented | Redacted |
notion-token-label-prosenotion · benign-lookalike | Must not flagT3 · Project policy | Quiet |
notion-token-masknotion · benign-lookalike | Must not flagT3 · Project policy | Quiet |
notion-token-mcp-server-envnotion · documented-format-literal | Must redactT1 · Provider-documented | Redacted |
notion-token-prefix-onlynotion · benign-lookalike | Must not flagT2 · Tool-corroborated | Quiet |
notion-token-referencenotion · benign-lookalike | Must not flagT3 · Project policy | Quiet |
notion-token-sdk-clientnotion · documented-format-literal | Must redactT1 · Provider-documented | Redacted |
notion-token-sdk-client-prefix-case-twinnotion · prefix-near-miss | Must not flagT2 · Tool-corroborated · twin | Quiet |
notion-token-shape-1-bare-twinnotion · wrong-length | Must not flagT2 · Tool-corroborated · twin | Quiet |
notion-token-shape-1-prefix-bare-twinnotion · prefix-near-miss | Must not flagT2 · Tool-corroborated · twin | Quiet |
notion-token-shape-1-prefix-quoted-twinnotion · prefix-near-miss | Must not flagT2 · Tool-corroborated · twin | Quiet |
notion-token-shape-1-prefix-unicode-crlf-twinnotion · prefix-near-miss | Must not flagT2 · Tool-corroborated · twin | Quiet |
notion-token-shape-1-quoted-twinnotion · wrong-length | Must not flagT2 · Tool-corroborated · twin | Quiet |
notion-token-shape-1-unicode-crlf-twinnotion · wrong-length | Must not flagT2 · Tool-corroborated · twin | Quiet |
notion-token-shell-export-tokennotion · documented-format-literal | Must redactT1 · Provider-documented | Redacted |
notion-token-short-bodynotion · benign-lookalike | Must not flagT2 · Tool-corroborated | Quiet |
notion-token-snake-case-identifier-near-missnotion · format-near-miss | Must not flagT2 · Tool-corroborated | Quiet |
notion-token-vault-note-prosenotion · prose-mention | Must not flagT3 · Project policy | Quiet |