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,ai
file:
  - extensions:
      - all

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