Openai Api Key

Description

The source code repository contains sensitive information: OpenAI API Key

Weakness:

009 - Sensitive information in source code

Category: Information Collection

Detection Strategy

    Matches OpenAI API Key patterns in source code and configuration files

Vulnerable code example

OPENAI_API_KEY=sk-abcdefghijklmnopqrstuvwxyzABCDEFT3BlbkFJabcdefghijklmnopqrstuvwxyz
sk-proj-abcdefghijklmnopqrstuvwxyz12345T3BlbkFJABCDEFGHIJKLMNOP