id: dynatrace-api-token

info:
  name: Dynatrace API Token
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/praetorian-inc/noseyparker/blob/main/data/default/rules/dynatrace.yml
  metadata:
    verified: true
    max-request: 1
  tags: dynatrace,token,exposure

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

    extractors:
      - type: regex
        part: body
        regex:
          - '\b(dt0[a-zA-Z]{1}[0-9]{2}\.[A-Z0-9]{24}\.[A-Z0-9]{64})\b'
# digest: 4a0a00473045022100dadd8ee3e44467467e9f86d4a10707d1514401266abda38eec60a2e11b000979022004bb92908e4da0f45ebe5217b7a6742830c7ed1cc37489e8f5ec692e4c04b893:922c64590222798bb761d5b6d8e72950