Skip to content
Analyzers

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 details
  • Always 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 details
  • Gives the user every permission once /users/me returns 200.

    The analyzer assigns full access. The provider may grant less.

    Show evidence

    Binds every permission to the user once /users/me returns 200.

    Access method details
  • Gives full access on every resource it finds.

    The analyzer assigns full access. The provider may grant less.

    Show evidence

    Each resource found is bound with FullAccess.

    Access method details
  • 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 details
  • Gives full access on every domain it finds.

    The analyzer assigns full access. The provider may grant less.

    Show evidence

    Each domain is bound with FullAccess.

    Access method details
  • 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 details
  • Gives 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 details
  • Gives 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 details
  • If /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.

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.

Tests each permission · 14 methods

Tries each permission against the provider and records whether it was allowed or denied.

Picks a preset by testing · 2 methods

Makes a few test calls, then picks one of several preset permission lists based on the results.

Assumes a partial set · 1 method

Gives the key a set list of some permissions without checking them.

  • Datadog Analyzer

    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 details

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