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
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
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.