Skip to content
Analyzers

Scanner deep dive

Digitalocean Analyzer

Open source

What 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 DigitalOcean, one permission at a time. Access method details · Source (digitalocean.go:167–187)
What can I look up?
Explore the permissions and resource types named in the code.

Built on 2 detectors

The detector finds and verifies the key. This analyzer maps it.

  1. 1 · Detector finds

    Candidates near “digitalocean”, 1 pattern.

    DigitalOcean Tokendigitaloceantoken.go:29 (opens TruffleHog source on GitHub)

  2. 2 · Detector verifies

    GET https://api.digitalocean.com/v2/account

    200 means verified.

    How it verifiesdigitaloceantoken.go:68 (opens TruffleHog source on GitHub)digitaloceantoken.go:81 (opens TruffleHog source on GitHub)

  3. 3 · This analyzer maps

    98 permission names on each User.

    Tests each permission

  1. 1 · Detector finds

    Candidates near “dop_v1_”, “doo_v1_”, “dor_v1_”, 1 pattern.

    DigitalOcean V2digitaloceanv2.go:34 (opens TruffleHog source on GitHub)

  2. 2 · Detector verifies

    POST https://cloud.digitalocean.com/v1/oauth/token?grant_type=refresh_token&refresh_token=

    200 means verified.

    How it verifiesdigitaloceanv2.go:91 (opens TruffleHog source on GitHub)digitaloceanv2.go:108 (opens TruffleHog source on GitHub)

  3. 3 · This analyzer maps

    98 permission names on each User.

    Tests each permission

Access model · AI-assisted classification · No credential tested

How Digitalocean 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 in scopes.json.

    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 analyzers

Parsed source walkthrough · No credential tested

Follow Digitalocean 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
2
Go implementation files scanned
2
Configured JSON definitions
98

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. 1 of 2 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 2 request sites
  • Method unresolved · Dynamic address — inspect source

    Inspect source · digitalocean.go:111

    This identifies a request definition. No response rule, granted permission, or resource binding is inferred from its method or address.

  • GET · https://api.digitalocean.com/v2/account

    Inspect source · digitalocean.go:220

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

Showing 1–10 of 98 matching definitions · 98 in this configuration

one_click:readGET

GET https://api.digitalocean.com/v2/1-clicks

Granted when
200
Denied when
403

See this definitionSee how responses are read

one_click:createPOST

POST https://api.digitalocean.com/v2/1-clicks/kubernetes

Granted when
422
Denied when
403

See this definitionSee how responses are read

action:readGET

GET https://api.digitalocean.com/v2/actions

Granted when
200
Denied when
403

See this definitionSee how responses are read

app:readGET

GET https://api.digitalocean.com/v2/apps

Granted when
200
Denied when
403

See this definitionSee how responses are read

app:createPOST

POST https://api.digitalocean.com/v2/apps

Granted when
422
Denied when
403

See this definitionSee how responses are read

app:updatePUT

PUT https://api.digitalocean.com/v2/apps/`nowaythisidcanexist

Granted when
400
Denied when
403

See this definitionSee how responses are read

app:deleteDELETE

DELETE https://api.digitalocean.com/v2/apps/`nowaythisidcanexist

Granted when
400
Denied when
403

See this definitionSee how responses are read

billing:readGET

GET https://api.digitalocean.com/v2/customers/my/balance

Granted when
200
Denied when
403

See this definitionSee how responses are read

block_storage:readGET

GET https://api.digitalocean.com/v2/volumes

Granted when
200
Denied when
403

See this definitionSee how responses are read

block_storage:createPOST

POST https://api.digitalocean.com/v2/volumes

Granted when
422
Denied when
403

See this definitionSee how responses are read

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.

Continue to permissions and resources

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, the resources it reaches, and the permissions recorded on each.

1 key

A verified DigitalOcean key

From the detector

Resource types

  • User

Filled in only when a key is analyzed

98 permission names on each

  • one_click:read
  • one_click:create
  • action:read
  • app:read
  • app:create
  • app:update
  • app:delete
  • billing:read
  • block_storage:read
  • block_storage:create
  • block_storage:delete
  • cdn_endpoint:read
  • +86 more in the list below

98 permission names · 1 resource types · 99/99 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 99 of 99 capability names

Where the explanations come from

  • Provider docs (90): official provider documentation
  • Atlas wording (9): Atlas wording, not the provider’s text (written with AI, not yet reviewed)

Inspect analyzer source

Resource types

Showing 1 of 1 matching resource types.

  • UserExplanation available

    The DigitalOcean account the token belongs to.

    Atlas wording

Permissions

Grouped by name prefix for easier browsing. These display groups are not official provider categories or permission-to-resource bindings.

Name prefix “vpc” 8 names
Name prefix “domain” 7 names
  • domain_record:readExplanation available

    Read DNS records.

    Atlas wording

  • domain_record:createExplanation available

    Create DNS records.

    Atlas wording

  • domain_record:updateExplanation available

    Change DNS records.

    Atlas wording

  • domain_record:deleteExplanation available

    Delete DNS records.

    Atlas wording

  • domain:readExplanation available

    View domains and domain records

    Provider docs

  • domain:createExplanation available

    Create domains and domain records

    Provider docs

  • domain:deleteExplanation available

    Delete domains and domain records

    Provider docs

Name prefix “droplet” 7 names
  • droplet:readExplanation available

    View Droplets

    Provider docs

  • droplet:createExplanation available

    Create Droplets

    Provider docs

  • droplet:deleteExplanation available

    Delete Droplets

    Provider docs

  • droplet_autoscale_pool:readExplanation available

    Read Droplet autoscale pools.

    Atlas wording

  • droplet_autoscale_pool:createExplanation available

    Create Droplet autoscale pools.

    Atlas wording

  • droplet_autoscale_pool:updateExplanation available

    Change Droplet autoscale pools.

    Atlas wording

  • droplet_autoscale_pool:deleteExplanation available

    Delete Droplet autoscale pools.

    Atlas wording

Name prefix “app” 4 names
Name prefix “cdn” 4 names
Name prefix “database” 4 names
Name prefix “firewall” 4 names
Name prefix “genai” 4 names
Name prefix “image” 4 names
Name prefix “kubernetes” 4 names
Name prefix “load” 4 names
Name prefix “monitoring” 4 names
Name prefix “project” 4 names
Name prefix “ssh” 4 names
Name prefix “uptime” 4 names
Name prefix “block” 3 names
Name prefix “certificate” 3 names
Name prefix “floating” 3 names
Name prefix “namespace” 3 names
Name prefix “reserved” 3 names
Name prefix “tag” 3 names
Name prefix “container” 2 names
Name prefix “one” 2 names
Name prefix “snapshot” 2 names
Other names 4 names
Under the hoodSource facts, registration, field evidence and source changes

Start with the detector. Add the analyzer next.

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

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

    • DigitalOcean Token · Verification parsed

      The normalized parser found verification logic at this record’s revision. No credential was tested.

      GET https://api.digitalocean.com/v2/account

    • DigitalOcean V2 · Verification parsed

      The normalized parser found verification logic at this record’s revision. No credential was tested.

      POST https://cloud.digitalocean.com/v1/oauth/token?grant_type=refresh_token&refresh_token=

  3. 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 capabilities
  4. Step 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 walkthrough

    Detailed 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 Digitalocean Analyzer can check

Counts below describe names found in analyzer source. They do not confirm access for a particular credential.

Permission names
98
Unique names recorded in this analyzer
Resource types
1
Kinds of objects, not a count of objects found
Names needing explanation
0
Names without a catalog summary

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

Yes

Self-discovery

Related detectors

2

98

1

trufflesecurity/trufflehog
pkg/analyzer/analyzers/digitalocean/digitalocean.go
2921dcc

Last commit that changed this folder’s code. Test-only changes don’t count.

Active

Nov 25, 2026

This folder was still in the catalog at this ingest.

Nov 25, 2026

No queued diffs

What this analyzer does

Analyze() exists in source. 98 permission names are enumerated in source. Resource types in source: User.

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.

  • digitalocean

Parsed from analyzer registration

Related detectors and validation evidence

  • DigitalOcean Token

    pkg/detectors/digitaloceantoken·Verification parsed

    Enriches after verify. Joined by an explicit credential-type map. The analyzer does not verify the secret.

  • DigitalOcean V2

    pkg/detectors/digitaloceanv2·Verification parsed

    Enriches after verify. Joined by an explicit credential-type map. The analyzer does not verify the secret.

Roles

No role map extracted from this analyzer’s Go.

Package files

  • digitalocean.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. 98 permission names are enumerated in source. Resource types in source: User.

    Derived from parser flags. This sentence is not a source comment.

  • keyTypes · Unknown · unknown

    None extracted

  • permissions · Extracted · high

    one_click:read, one_click:create, action:read, app:read, app:create, app:update, app:delete, billing:read, block_storage:read, block_storage:create, block_storage:delete, cdn_endpoint:read, cdn_endpoint:create, cdn_endpoint:update, cdn_endpoint:delete, certificate:read, certificate:create, certificate:delete, container_registry:read, container_registry:create, database:read, database:create, database:update, database:delete, domain_record:read, domain_record:create, domain_record:update, domain_record:delete, domain:read, domain:create, domain:delete, droplet:read, droplet:create, droplet:delete, droplet_autoscale_pool:read, droplet_autoscale_pool:create, droplet_autoscale_pool:update, droplet_autoscale_pool:delete, firewall:read, firewall:create, firewall:update, firewall:delete, floating_ip:read, floating_ip:create, floating_ip:delete, namespace:read, namespace:create, namespace:delete, genai_agent:read, genai_agent:create, genai_agent:update, genai_agent:delete, image:read, image:create, image:update, image:delete, kubernetes:read, kubernetes:create, kubernetes:update, kubernetes:delete, load_balancer:read, load_balancer:create, load_balancer:update, load_balancer:delete, monitoring:read, monitoring:create, monitoring:update, monitoring:delete, project:read, project:create, project:update, project:delete, region:read, reserved_ip:read, reserved_ip:create, reserved_ip:delete, size:read, snapshot:read, snapshot:delete, ssh_key:read, ssh_key:create, ssh_key:update, ssh_key:delete, tag:read, tag:create, tag:delete, uptime:read, uptime:create, uptime:update, uptime:delete, vpc_peering:read, vpc_peering:create, vpc_peering:update, vpc_peering:delete, vpc:read, vpc:create, vpc:update, vpc:delete

  • resources · Extracted · high

    User

  • roles · Unknown · unknown

    None extracted

  • files · Extracted · high

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