id: newrelic-license

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

file:
  - extensions:
      - all

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