id: digital-ocean-personal-token

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
    max-request: 1
  tags: digitalocean,exposure,token

http:
  - method: GET
    path:
      - "{{BaseURL}}"

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