An API key identifies or authenticates a client seeking access to an API. In GenAI systems, a leaked key can expose powerful models, internal data, or substantial spending limits—not just one application. section 4.3.5
Keys can be exposed or misused through several paths:
- Developers may commit keys to public repositories; attackers have scraped working OpenAI keys from public Replit projects. section 4.3.5
- AI code assistants may suggest hardcoded credentials, and repositories using them showed a higher secret-leak rate than the general baseline. section 4.3.5
- Stolen Azure OpenAI credentials were allegedly used to bypass safety guardrails and resell access. section 4.3.5













