id: newrelic-license-key

info:
  name: New Relic License 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/#license-key
  metadata:
    verified: true
    max-request: 1
  tags: newrelic,exposure,tokens

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

    extractors:
      - type: regex
        part: body
        regex:
          - (?i)\b([a-z0-9]{6}[a-f0-9]{30}nral)\b
# digest: 490a00463044022100d3ded3d71ac4262138feae5a906a1ce0b0ed5817ead982d2b0abdf79eaa77375021f45635430e30bc00f99e76858f52e07c19bc7a10443e33a36dbd5ef08008e0e:922c64590222798bb761d5b6d8e72950