Secret committed to a repository or built into an image
A developer or agent writes a secret into code, configuration, a prompt, an MCP or IDE configuration file, or an image, and it is pushed or built.
Before and after controls.
With controls is rated as if every control below works as designed.
Where it comes from.
This risk to secret arises from:
Also known as.
OWASP LLM Top 10 2025LLM02
Other risks to secret.
- Exposed secret not revoked in timeLow
- Secret readable by another installation's principalLow
- Static provider key used where workload identity is possibleLow
- Missing or expired secret stops an installationLow
- Secret pasted into an AI tool, chat, ticket or record outside the secret storeMedium
- Secret repeated in an agent's responseLow
See the whole picture.
Every AI risk on one matrix, before and after controls.