id: newrelic-api-service

info:
  name: New Relic API Service 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/#user-key
  metadata:
    verified: true
  tags: newrelic,keys,file

file:
  - extensions:
      - all

    extractors:
      - type: regex
        part: body
        regex:
          - (?i)\b(nrak-[a-z0-9]{27})\b
# digest: 4a0a0047304502200d3353ea761ab784527890d0e7bd10348b53d46f2c50ed08edf033ed0e6c4a4d0221009bc52519a754f2b83b7264cacb8b2ed841c82e806bd784e06155a3d07da42f93:922c64590222798bb761d5b6d8e72950