id: newrelic-pixie-deploy-key

info:
  name: New Relic Pixie Deploy 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/deploy-keys/
  metadata:
    verified: true
    max-request: 1
  tags: newrelic,pixie,token,exposure

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

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