id: newrelic-api-service-key

info:
  name: New Relic API Service Key
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/praetorian-inc/noseyparker/blob/main/crates/noseyparker/data/default/builtin/rules/newrelic.yml
    - https://docs.newrelic.com/docs/apis/intro-apis/new-relic-api-keys
    - https://docs.newrelic.com/docs/apis/intro-apis/new-relic-api-keys/#user-key
  metadata:
    verified: true
    max-request: 1
  tags: newrelic,exposure,tokens

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

    extractors:
      - type: regex
        part: body
        regex:
          - (?i)\b(nrak-[a-z0-9]{27})\b
# digest: 4a0a00473045022100bc21e6cae885b79382d90e7835a7f4fe5a7a5c39b0e950d1cebadccf8258c0a3022072ce59261dfd4aedd2b19c93847e885dd592db625580b745e79cd760a5e26e37:922c64590222798bb761d5b6d8e72950