id: digitalocean-personal-access

info:
  name: DigitalOcean Personal Access Token
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/praetorian-inc/noseyparker/blob/main/crates/noseyparker/data/default/rules/digitalocean.yml
    - https://docs.digitalocean.com/reference/api/
  metadata:
    verified: true
  tags: file,keys,digitalocean,token

file:
  - extensions:
      - all

    extractors:
      - type: regex
        part: body
        regex:
          - (?i)\b(dop_v1_[a-f0-9]{64})\b
# digest: 4a0a0047304502206b70cf70b3750ef09ef9c10aed0fe19ad53ebcf58ea9288991b3f5074140e39c0221008b61ec0267a7963686a8132d1d7bc04fc2165945980db9e90c96081a970476e9:922c64590222798bb761d5b6d8e72950