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

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: 490a004630440220242fb362fee296565790b302917129c1678ec9c544ecc46026db250da5070d2d022029f9c5ec848542ec030712fcced41845a4c9f288be7e1963336599a25d89878d:922c64590222798bb761d5b6d8e72950