Secret sprawl is the uncontrolled spread of API keys, tokens and passwords across code, config files, chat, CI systems and laptops.
Secret sprawl happens when the same credentials end up in many places nobody tracks: a .env file on a laptop, a CI variable, a pasted snippet in chat, a screenshot in a ticket, a shell history, a container image layer, a Terraform state file. Each copy is another way to leak, and every copy must be found and updated when the secret is rotated. Sprawl grows with the number of services, developers and, now, AI coding agents, which read files and run commands in a project directory and may echo what they find into logs or transcripts. Public repositories are a particular risk: automated scanners find newly pushed keys within minutes, which is why GitHub runs secret scanning and partners with providers to revoke exposed tokens. The OWASP Secrets Management Cheat Sheet lists centralisation, automation of rotation, auditing and least privilege as the main controls. The fix is not just a tool but a pattern: one source of truth for each secret, short-lived access for consumers, and detection for anything that escapes. A password manager or secrets manager supplies the source of truth. BotPassword reduces sprawl by letting tools and agents use credentials through approved intents rather than copying values into files.