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