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,vuln

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

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