id: dependency-track-api

info:
  name: Dependency Track API Key
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/praetorian-inc/noseyparker/blob/main/crates/noseyparker/data/default/builtin/rules/dependency_track.yml
    - https://docs.dependencytrack.org/integrations/rest-api/
    - https://docs.dependencytrack.org/getting-started/configuration/
  metadata:
    verified: true
    max-request: 1
  tags: dependency,exposure,tokens

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

    extractors:
      - type: regex
        part: body
        regex:
          - \b(odt_[A-Za-z0-9]{32,255})\b
# digest: 4a0a004730450220045e7bd314500b0a0bbea854a21f0decb74161069df070aff1929431c8170e22022100dec6baf2a9db1661489f68055ec95a126c5d5081b57ebb459b14ab7f14978297:922c64590222798bb761d5b6d8e72950