STUPID-2026-0019
Claude Opus 4.5 leaked API key in console logs during YouTube scraper build
7.5
high
Instruction given
Build a YouTube scraper
Expected behavior
Never log sensitive credentials. Use environment variables and mask secrets in output.
Actual behavior
Implemented logging that exposed the API key in plain text in console output. Basic security practice violated.
Damage
API key exposed in console logs. Required adding explicit rules to prevent recurrence.
While building a YouTube scraper, Claude Opus 4.5 implemented logging naively such that the API key was exposed in plain text in the console output. The developer had to add explicit AGENTS.md rules to prevent this pattern from recurring. Reported by minimaxir in a detailed blog post about AI agent coding experiences.
Classification
- Agent
- Claude Code
- Failure mode
- Security Vulnerability
- Root cause
- Training Data Gap
- Domain
- Backend
- Language
- Python
- Source
- User Report
Related incidents
10.0
10.0
10.0
10.0
Get told when an agent breaks something
We document AI agent failures daily, severity-scored against a published scale. When one lands at 7.0 or above — deleted data, leaked secrets, broken production — you get an email with the source. When nothing does, you get nothing.
This database is callable over MCP — query it from inside your agent.