id: newrelic-license-key-non

info:
  name: New Relic License Key (non-suffixed)
  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)associated\ with\ your\ New\ Relic\ account\.\s+license_key:\s*([a-f0-9]{40})\b
# digest: 4a0a00473045022100c9868f17ea11a2c47367f43ad7a380f9c3b746a161378185edfe4886d93e2d7202202664618ab5327aa9a02e9cac60f33228b8056f6d4fc300698b91cfa82c7bb606:922c64590222798bb761d5b6d8e72950