
What Happens When an AI Agent Can See API Keys in a Console or Settings Page?
The key becomes a secret copied into the model's context, the transcript and every log, which means rotation. Check that console keys are masked on screen.
Research topic
Research on secrets sprawl: AI agent security, tokenization and checks for sensitive data access before allowing enterprise workflows to run.

The key becomes a secret copied into the model's context, the transcript and every log, which means rotation. Check that console keys are masked on screen.

Only partly: with sandboxing on and the token masked, shell commands see a sentinel and the value is injected only for api.github.com.