id: openai-key

info:
  name: OpenAI API Key
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/praetorian-inc/noseyparker/blob/main/data/default/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: 4a0a004730450220203ca905dbfb0147f545a3a16e9a1305a9fea1448eb45384501d25070aac39e2022100d02344c226faf08b61ce8483f6739b44bbc44acb1092bb0ee295edacc9637163:922c64590222798bb761d5b6d8e72950