id: newrelic-license-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
  tags: newrelic,keys,file

file:
  - extensions:
      - all

    extractors:
      - type: regex
        part: body
        regex:
          - (?i)associated\ with\ your\ New\ Relic\ account\.\s+license_key:\s*([a-f0-9]{40})\b
# digest: 490a0046304402201c1137b27f08d0f96b4e0891d74ea00c438cdf14e7d033bde5d8bb2c478a83c502202208b5621c320f0c8faedb92baa052663913494baae1a0c75ad0b8f02780f11c:922c64590222798bb761d5b6d8e72950