How AI gets attackedLesson 041 min
What happens when an API key lands on GitHub?
An API key is a password for software, letting a program use a paid service in your name. When one is pushed to a public repository, anyone can read it, and automated tools search public code for this. GitGuardian counted over twenty-eight million new secrets in public GitHub commits in 2025. Over six in ten keys that worked in 2022 still worked in January 2026.
Remember
Revoke an exposed key at once, then keep keys out of your code.
