Scanner deep dive
Notion Analyzer
Open sourceWhat does this analyzer do?
- Purpose
- It helps explain what a credential may be able to do. Atlas describes the analyzer’s code and hasn’t tested a credential here.
- How does it assess access?
- The analyzer tests the key against Notion, one permission at a time. Access method details · Source (notion.go:179)
- What can I look up?
- Explore the permissions named in the code.
Built on the Notion detector
The detector finds and verifies the key. This analyzer maps it.
1 · Detector finds
Candidates near “notion”, 1 pattern.
2 · Detector verifies
GET https://api.notion.com/v1/users
2xx, 403 means verified.
How it verifiesnotion.go:49 (opens TruffleHog source on GitHub)notion.go:58 (opens TruffleHog source on GitHub)
3 · This analyzer maps
7 permission names.
Tests each permission
Access model · AI-assisted classification · No credential tested
How Notion Analyzer decides what a key can do
This describes how TruffleHog’s code assigns permissions. It is not a statement of what the provider actually grants a particular key.
Runs the HTTP test for each scope listed in scopes.json.
Reviewed classification: Runs the HTTP test defined for each scope.
Tries each permission against the provider and records whether it was allowed or denied.
Pinned revision db665f0c24c6 · Confidence high · Classified 2026-11-16
Compare all 44 analyzersParsed source walkthrough · No credential tested
Follow Notion Analyzer from inputs to evidence
After a related detector successfully validates a candidate, this analyzer is an optional next layer. The steps below explain code found in this package. They do not run it or establish the access of a credential.
- Input field names
- 1
- Direct HTTP request sites
- 3
- Go implementation files scanned
- 2
- Configured JSON definitions
- 5
1. Understand the inputs
These names are read from the analyzer’s credential-info map. A name can be required, optional, or conditional; this inventory does not resolve that control flow. Field values are never shown.
2. Inspect the request definitions
A request site is a Go request-construction call, not an individual permission check. One helper may build many requests. 2 of 3 sites have a directly written address; dynamic addresses remain unresolved. Use the configured-check reader below for the normalized JSON response rules; other response interpretation still needs source review.
Browse 3 request sites
Method unresolved · Dynamic address — inspect source
Inspect source · notion.go:129This identifies a request definition. No response rule, granted permission, or resource binding is inferred from its method or address.
GET · https://api.notion.com/v1/users/me
Inspect source · notion.go:317This identifies a request definition. No response rule, granted permission, or resource binding is inferred from its method or address.
GET · https://api.notion.com/v1/users
Inspect source · notion.go:355This identifies a request definition. No response rule, granted permission, or resource binding is inferred from its method or address.
This package also contains 2 JSON/YAML configuration files. Their definitions are not counted as Go request sites. Use the configured-check reader below.
Explore configured checks
Each check below is a request defined in this analyzer’s embedded JSON, with the response codes it treats as access granted or denied. Nothing on this page sends a request.
- A check is labelled with a permission name, but one check is not proof that a key has that permission.
- The runner checks the “granted” codes first, then the “denied” codes. Any other code is reported as an error, not as a result.
- Payload values are not shown. The HTTP method alone doesn’t say whether a request changes anything.
Filters update results immediately. Counts show matches with the other filters applied.
5 matching results
Showing 1–5 of 5 matching definitions · 5 in this configuration
read_contentGET
GET https://api.notion.com/v1/pages/`nowaythiscanexist
- Granted when
- 400
- Denied when
- 403
update_contentPATCH
PATCH https://api.notion.com/v1/pages/`nowaythiscanexist
- Granted when
- 400
- Denied when
- 403
insert_contentPOST
POST https://api.notion.com/v1/pages
- Granted when
- 400
- Denied when
- 403
read_commentsGET
GET https://api.notion.com/v1/comments
- Granted when
- 400
- Denied when
- 403
insert_commentsPOST
POST https://api.notion.com/v1/comments
- Granted when
- 400
- Denied when
- 403
Pinned revision 23255461ddf3.
3. Read the result and its limits
Explore the permission names and resource types below. They are independent source lists. This walkthrough does not connect every request to a permission or resource, and does not infer access from an HTTP success.
Inspect 1 binding construction sites
These links point to Binding literals or BindAllPermissions helper calls. The permission-to-resource relationships and conditions have not been normalized.
Pinned revision 23255461ddf3 · analyzer-workflow-sites-v1. Comments, string contents, tests and testdata are excluded from code-site matching. SDK resolution, call order, response rules, required inputs and permission/resource bindings remain outside this parser.
Permissions and resources
How the result is built: one key and the permissions recorded.
1 key
A verified Notion key
From the detector
7 permission names
- read_content
- update_content
- insert_content
- read_comments
- insert_comments
- read_users_with_email
- read_users_without_email
7 permission names · 0 resource types · 7/7 names explained
Permission names describe actions or scopes checked by this analyzer. Resource types describe the kinds of objects it can report. They are separate source lists; a permission-to-resource binding has not been extracted. Available access depends on the credential and provider response.
Showing 7 of 7 capability names
Where the explanations come from
- Atlas wording (7): Atlas wording, not the provider’s text (written with AI, not yet reviewed)
Permissions
Grouped by name prefix for easier browsing. These display groups are not official provider categories or permission-to-resource bindings.
Name prefix “read” 4 names
read_contentExplanation available
Read pages and databases.
Atlas wording
read_commentsExplanation available
Read comments.
Atlas wording
read_users_with_emailExplanation available
Read workspace users, including email addresses.
Atlas wording
read_users_without_emailExplanation available
Read workspace users, without email addresses.
Atlas wording
Name prefix “insert” 2 names
insert_contentExplanation available
Create new pages and content.
Atlas wording
insert_commentsExplanation available
Add comments.
Atlas wording
Name prefix “update” 1 name
update_contentExplanation available
Change existing pages and databases.
Atlas wording
Under the hoodSource facts, registration, field evidence and source changes
Built on the Notion detector
Step 1: Detect
Related detectors find credential candidates. A match alone does not establish that the credential works. Open the detector first to learn its matching and verification rules.
Step 2: Verify
The detector checks the candidate under its verification rules. Successful verification establishes the condition accepted by that detector; it does not establish every permission. The status below is extraction evidence, not a live result.
Notion · Verification parsed
The normalized parser found verification logic at this record’s revision. No credential was tested.
GET https://api.notion.com/v1/users
Step 3: Analyze
After successful detector verification, analysis is an additional layer for gathering access context. The source contains an Analyze function; its results depend on the credential, the checks that run and their outcomes.
Explore access capabilitiesStep 4: Interpret the evidence
Open an individual check to learn what it attempts and how its result is interpreted. Follow the source evidence before concluding what access it establishes. Missing permission or resource relationships remain unknown.
Next: follow the source walkthroughDetailed check definitions are not connected to this page yet. The walkthrough identifies input and request sites; response rules and permission/resource bindings still need source review.
This is a source-based workflow, not a live validation result. The catalog has not executed these detectors or analyzers. Related packages are linked by the catalog’s recorded relationship evidence.
Source overview · No credential tested
Understand what Notion Analyzer can check
Counts below describe names found in analyzer source. They do not confirm access for a particular credential.
- Permission names
- 7
- Unique names recorded in this analyzer
- Resource types
- 0
- Kinds of objects, not a count of objects found
- Names needing explanation
- 0
- Names without a catalog summary
7 of 7 names have a summary. A summary is not proof of access or a review approval.
How should I read these results?
- Recorded in source
- The parser found a name or behavior in code. It has not tested your credential.
- Explained in the catalog
- A summary describes a recorded name. Check its source label and reference before relying on the interpretation.
- Confirmed by a test
- This would require a recorded run and its responses. No such result is shown on this page. An HTTP success alone does not establish every permission.
- Whether this analyzer package contains an Analyze function.
Yes
- Self-discovery means the package runs after verify to list identity or permissions. Other means no Analyze function was extracted.
Self-discovery
- Related detectors
1
- Permission or scope strings declared in the analyzer Go. These are not a live grant.
7
- Resource names the analyzer source says it can list. These are not a live inventory.
0
- The GitHub repository this catalog was parsed from. This app reads trufflesecurity/trufflehog.
- trufflesecurity/trufflehog
- The Go file the parser read for this page. The link opens that file at the pinned catalog commit.
- pkg/analyzer/analyzers/notion/notion.go
- The last commit that changed this folder’s code (tests don’t count), when GitHub history was fetched. Otherwise it is the ingest commit that reparsed the folder. It can be older than the catalog pin.
- 2921dcc
Last commit that changed this folder’s code. Test-only changes don’t count.
- Active means this folder was still in the latest ingest. A folder that disappeared is dropped from the catalog.
Active
- The date of the ingest that still contained this folder. This is not the day the Go file was edited.
Nov 25, 2026
This folder was still in the catalog at this ingest.
- The date of the newest queued diff for this record. With no diff, this falls back to the ingest time.
Nov 25, 2026
- Whether a human still needs to look at a queued diff or an uncertain extracted field.
No queued diffs
What this analyzer does
Analyze() exists in source. 7 permission names are enumerated in source.
An Analyze function was found in the source. The entries below describe the access context recorded for this package.
Description generated from parsed flags
Registration
Named in pkg/analyzer/cli.go. A detector joins from this file only when its folder matches one of these keys.
- notion
Parsed from analyzer registration
Related detectors and validation evidence
- Notion
pkg/detectors/notion·Verification parsed
Enriches after verify. pkg/analyzer/cli.go registers this detector key to the analyzer package.
Roles
No role map extracted from this analyzer’s Go.
Package files
- notion.go
- permissions.go
- permissions.yaml
Field evidence
Parsed fields keep a provenance row beside the value. Extracted rows stay visible. Needs review means a heuristic verify flag or a URL whose host is still a template. Unknown means the parser did not find that field — never a negative capability claim.
description · Needs review · medium
Analyze() exists in source. 7 permission names are enumerated in source.
Derived from parser flags. This sentence is not a source comment.
keyTypes · Unknown · unknown
None extracted
permissions · Extracted · high
read_content, update_content, insert_content, read_comments, insert_comments, read_users_with_email, read_users_without_email
resources · Unknown · unknown
None extracted
roles · Unknown · unknown
None extracted
files · Extracted · high
notion.go, permissions.go, permissions.yaml
hasAnalyze · Extracted · high
Yes
hasRoleField · Unknown · unknown
No
analyzerType · Extracted · high
self_discovery
What changed in the source
Stored source differences and their review status. No stored difference does not establish that upstream is unchanged.
No stored diffs for this analyzer yet.
Change log
What changed in this analyzer
No changes recorded since Nov 11, 2026, when the change log starts.