DigitalOcean Personal Access Token
Detects DigitalOcean personal access tokens (dop_v1_ prefix). These tokens authenticate to the DigitalOcean API and can manage droplets, databases, DNS and billing; a leak enables full account control.
- Type
- regex
- Engine
- universal
- Confidence
- high
- Confidence justification
- High confidence: the distinctive dop_v1_ prefix with a fixed 64-character hex body makes false positives extremely unlikely.
- Jurisdictions
- global
- Regulations
- Criminal Code Act 1995 (Cth), Computer Fraud and Abuse Act, Computer Misuse Act 1990
- Frameworks
- CIS Controls, ISO 27001, NIST CSF, SOC 2
- Data categories
- credentials, security
- Scope
- narrow
- Risk rating
- 8
- Platform compatibility
- Purview: Compatible, GCP DLP: Unsupported, Macie: Unsupported, Zscaler: Compatible, Palo Alto: Unsupported, Netskope: Unsupported
Pattern
(?<![A-Za-z0-9_])dop_v1_[a-f0-9]{64}(?![A-Za-z0-9])
Corroborative evidence keywords
digitalocean, digital ocean, doctl, api.digitalocean.com, personal access token, droplet
Proximity: 300 characters
Should match
dop_v1_0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef— Exact 65 probe - distinctive token structure without provider contextDigitalOcean droplet API credential dop_v1_abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789— Exact 75 probe - token corroborated by a DigitalOcean resource contextDigitalOcean API credential DIGITALOCEAN_TOKEN=dop_v1_deadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef— Exact 85 probe - provider context plus canonical secret assignment
Should not match
dop_v1_0123456789abcdef— Too short to be a DigitalOcean PATdoo_v1_0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef— OAuth token prefix (doo_v1_), not a personal access tokenGITHUB_TOKEN=dop_v1_0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef— Sibling provider label does not corroborate a DigitalOcean tokenDocumentation example: DigitalOcean API DIGITALOCEAN_TOKEN=dop_v1_0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef— Documentation example with a valid-shaped token is excludedcreate a digitalocean personal access token in the API settings— Prose mention without a token value
Known false positives
- 64-char hex digests accidentally prefixed with dop_v1_ in documentation. Mitigation: Require corroborative DigitalOcean keywords and exclude placeholder markers.