id: newrelic-pixie-api-key

info:
  name: New Relic Pixie API Key
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/praetorian-inc/noseyparker/blob/main/crates/noseyparker/data/default/builtin/rules/newrelic.yml
    - https://docs.px.dev/reference/admin/api-keys/
  metadata:
    verified: true
    max-request: 1
  tags: newrelic,pixie,token,exposure,vuln

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

    extractors:
      - type: regex
        part: body
        regex:
          - "(px-api-[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})"
# digest: 4a0a00473045022100ae72bce5e087fb759351a9eacbaca3dc75053fdb9513b34cd6a2c9e61b1dec61022068d4fc744025482cd8c25b7b3df0cc776793d87123b80ad6ceeb0bce3263c4b4:922c64590222798bb761d5b6d8e72950