id: dynatrace-api-token

info:
  name: Dynatrace API Token
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/praetorian-inc/noseyparker/blob/main/crates/noseyparker/data/default/builtin/rules/dynatrace.yml
    - https://www.dynatrace.com/support/help/dynatrace-api
    - https://www.dynatrace.com/support/help/dynatrace-api/basics/dynatrace-api-authentication
  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: 4a0a00473045022024d2c5da45e1601570e44edd5e3d9687d2bcfe8008dddbe682ffb83f95872dae022100ad338f55c458d029c5576cdf3684689f2db8504e95c019a90059ccb70eb55dd9:922c64590222798bb761d5b6d8e72950