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

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: 4b0a00483046022100b267d930152d13d0ac2fa6f5c2300deaad30e152062a10c1f03bffb0c44b24b70221008416c98ab6b126d3d6d6a311eb43172fb7ec2cee304184f56e91c62edca7b298:922c64590222798bb761d5b6d8e72950