Scanner deep dive
How analyzers decide what a key can do
Each TruffleHog analyzer works out what a key can do in one of a few ways. Some analyzers use a different method for each key type, so the 43 analyzers shown use 47 methods in total. This shows how TruffleHog’s code works, not what a provider actually grants. No credential was tested.
AI-assisted classification · Pinned revision db665f0c24c6 · Classified 2026-11-16 · 1 withheld because their source changed or can’t be confirmed
Reports full access by assumption · 10 methods
Any valid key is treated as having every permission. Nothing is checked one by one. This is TruffleHog’s assumption; the provider may still limit the key.
Any valid key gets all 10 permissions on every project it lists. Code comment: “If the token exists, it has all permissions.” 27 other action names only appear in the CLI table, not in the result.
The analyzer assigns full access. The provider may grant less.
Show evidence
A valid key gets all 10 permissions in scope_order on every listed project. Comment: "If the token exists, it has all permissions." The 27 action names in scope_mapping are only printed by the CLI table and are not part of the result.
Access method detailsAlways full access. The key type (API or Admin) only changes which resources are listed. Code comment: “anthropic key has full access only.”
The analyzer assigns full access. The provider may grant less.
Show evidence
Key type (API or Admin) changes which resources are listed; permission is always full access. Comment: "anthropic key has full access only".
Access method detailsGives the user every permission once /users/me returns 200.
The analyzer assigns full access. The provider may grant less.
Show evidence
Gives full access on every resource it finds.
The analyzer assigns full access. The provider may grant less.
Show evidence
Gives the account every permission. The role is recorded but doesn’t limit permissions.
The analyzer assigns full access. The provider may grant less.
Show evidence
Binds every permission to the account. The role is recorded as metadata, not used to limit permissions.
Access method detailsGives full access on every domain it finds.
The analyzer assigns full access. The provider may grant less.
Show evidence
Gives full access on every resource. Code comment: “token always has full access.”
The analyzer assigns full access. The provider may grant less.
Show evidence
Each resource is bound with FullAccess. Comment: "token always has full access".
Access method detailsGives full access on every resource. Code comment: “no fine grain access.”
The analyzer assigns full access. The provider may grant less.
Show evidence
Each resource is bound with FullAccess. Comment: "no fine grain access".
Access method detailsGives full access. A code comment says what a key can reach depends on the account type, and free accounts get fewer resources.
The analyzer assigns full access. The provider may grant less.
Show evidence
Binds FullAccess. Comment says account type limits which resources exist.
Access method detailsIf /v1/organizations returns 200, the key is treated as an admin key with every permission.
The analyzer assigns full access. The provider may grant less.
Show evidence
Also: Tests each permission
Reads from provider · 17 methods
Asks the provider what the key can do, from a response header, a token-info endpoint, a claim inside the token or a grants query.
Reads the scopes from the user-info response.
Show evidence
Also: Tests each permission
Reads the x-credential-type and x-oauth-scopes headers from the response.
Show evidence
Reads the x-credential-type and x-oauth-scopes response headers.
Access method detailsReads permission levels from /api/2.0/permissions/authorization/tokens/permissionLevels and applies them to each resource.
Show evidence
Reads permission levels from /api/2.0/permissions/authorization/tokens/permissionLevels and binds them to each resource.
Access method detailsReads the scope from the login token (JWT) and applies the highest one to each repository.
Show evidence
Reads the scope claim from the login JWT and binds the highest-ranked one to each repository.
Access method detailsReads the scopes from /tokens/self.
Show evidence
Reads the X-OAuth-Scopes response header.
Show evidence
Also: Tests each permission
Reads the scopes from /api/v4/personal_access_tokens/self.
Show evidence
Reads the role or fine-grained permissions from /api/whoami-v2.
Show evidence
Reads the havePermission flags from the mypermissions endpoint and keeps the ones that are true.
Show evidence
Reads the token’s role, custom role IDs and inline role, then looks up each custom role.
Show evidence
Reads the token role, custom role IDs and inline role, then fetches each custom role.
Access method detailsRuns SHOW GRANTS.
Show evidence
Checks role attributes, such as superuser, and runs has_database_privilege() for each database.
Show evidence
Queries role attributes and has_database_privilege().
Access method detailsReads the scopes from /v3/scopes.
Show evidence
Reads /admin/oauth/access_scopes.json.
Show evidence
Reads the X-Oauth-Scopes response header.
Show evidence
Reads the scopes from POST /oauth2/token/status.
Show evidence
Reads access rules (ACLs) from the key-info response at /v1/api-key.
Show evidence
Maps a provider role · 3 methods
Reads the key’s role or product from the provider, then looks up its permissions in a fixed table.
Finds the key in its own API key list and looks up its permission from the key type in a fixed table. Team keys can't list API keys, so they get no permission.
Show evidence
Finds the key's own entry in GET /v1/api_keys by prefix and maps its key type through keyTypePermissions (PERSONAL to full_access, GRID and WORKSPACE_INVOKE to invoke, and so on). Team keys can't list API keys, so they get no permission binding.
Access method detailsReads the products on the item and maps each one to a set permission level.
Show evidence
Reads the item's products and maps each to a fixed permission level.
Access method detailsReads the user’s roles and looks up permissions in a fixed role table.
Show evidence
Reads the user's roles and maps them through a fixed role-to-permission table.
Access method details
Tests each permission · 14 methods
Tries each permission against the provider and records whether it was allowed or denied.
Calls a test endpoint for each scope.
Show evidence
Also: Reads from provider
Runs the HTTP test for each scope listed in scopes.json.
Show evidence
Also: Assumes a partial set
Runs the HTTP test for each scope listed in scopes.json.
Show evidence
Runs the HTTP test defined for each scope in scopes.json.
Access method detailsCalls a test endpoint for each permission and marks it allowed or denied. Some granted scopes also mark related scopes as granted.
Show evidence
Calls a test endpoint per permission and marks it granted or denied.
Access method detailsCalls read (GET) and delete (DELETE) endpoints for each permission and checks the status code.
Show evidence
Calls read and delete endpoints per permission and reads the status code.
Access method detailsCalls one endpoint per scope. On the first denial, it reads the granted scopes from the error message and stops.
Show evidence
Calls one endpoint per scope; on the first denial it reads the granted scopes from the error message and stops.
Access method detailsTests each permission on each repository with a dedicated check.
Show evidence
Tests each permission per repository through a dedicated check function.
Access method detailsAlso: Reads from provider
Runs each permission test listed in tests.json.
Show evidence
Runs the HTTP test for each scope listed in scopes.json.
Show evidence
Runs the tests for each scope.
Show evidence
Also: Assumes full access
Runs the HTTP test for each scope listed in scopes.json.
Show evidence
Runs HTTP tests for each scope, including branch and backup scopes.
Show evidence
Runs HTTP tests per scope, including branch and backup scopes.
Access method detailsFor each scope, runs its write test when one exists, otherwise its read test.
Show evidence
Runs the tests in restricted.yaml for every key type. The CLI shows “Full Access” for secret keys, but the result still comes from the tests.
Show evidence
Runs the restricted.yaml tests for every key type. The CLI prints "Full Access" for secret keys without listing; the result still comes from the tests.
Access method details
Picks a preset by testing · 2 methods
Makes a few test calls, then picks one of several preset permission lists based on the results.
Asks whether the current user is a site admin, then gives either full site-admin access or user read access.
Show evidence
Probes a site-admin query and assigns one of two fixed permission levels.
Access method detailsChecks the status code from the Accounts endpoint and picks a preset permission list: a full list for 200, a smaller one for 401.
Show evidence
Probes two endpoints and picks a fixed permission set by status code.
Access method details
Assumes a partial set · 1 method
Gives the key a set list of some permissions without checking them.
Gives the key the scopes that have no HTTP test. Code comment: “API key is not finely grained, so we assign some default permissions.”
Show evidence
Assigns the scopes that have no HTTP test. Comment: "API key is not finely grained, so we assign some default permissions".
Access method detailsAlso: Tests each permission
Withheld · 1
These analyzers’ source changed since they were classified, or this catalog can’t confirm it hasn’t. Their classification is not shown until it is re-checked.
Limits
Describes how TruffleHog assigns permissions, not what a provider actually grants. "assumes_full_access" is TruffleHog's model; providers may still limit a key by the owner's role.
An entry is shown only while its analyzer folder’s source hash matches the hash it was classified against.