id: openai-key

info:
  name: OpenAI API Key
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/praetorian-inc/noseyparker/blob/main/crates/noseyparker/data/default/builtin/rules/openai.yml
    - https://platform.openai.com/docs/api-reference
    - https://platform.openai.com/docs/api-reference/authentication
  metadata:
    verified: true
  tags: file,keys,openai,token
file:
  - extensions:
      - all

    extractors:
      - type: regex
        part: body
        regex:
          - \b(sk-[a-zA-Z0-9]{48})\b
# digest: 490a00463044022047fbe1f467958413dac9a9e838efe576e6c7b306a121bfd820b770aa9b4805d802206cd9b201aa06f72910d7edb1553b1ea9e319a03a6a9d8527467689d0f0401147:922c64590222798bb761d5b6d8e72950