Exposed Passwords and API Keys
Passwords, access keys and connection details are left in shared documents, scripts, code repositories or emails, where attackers can find and use them.

Layer 7: Application High risk
How it works
Systems talk to each other using secrets: database passwords, API keys for payment or email services, cloud access keys and service account logins. These often end up written down in convenient places, such as a spreadsheet on the shared drive, a script on a server, a configuration file in a public code repository, an old email to a contractor or a note in a ticketing system. Over time, nobody remembers they are there or how many copies exist.
Attackers who get into an email account or file share search for words like password and key, and automated tools scan public code sites for leaked keys within minutes of them appearing. A single exposed cloud key can be used to run up huge computing bills, read databases or send spam through your accounts. Because the access looks legitimate, it can go unnoticed until the invoice arrives or customers start complaining.
Warning signs
- Password spreadsheets or text files stored on shared drives
- Contractors sending credentials by email or chat
- Unexpected charges or usage spikes on cloud or software accounts
- Alerts from code hosting or cloud providers about exposed keys
- Service accounts whose passwords have not changed in years
How to defend against it
- Store passwords and keys in a business password manager or secrets vault
- Search shared drives and email for stored passwords and clean them up
- Give each system and contractor its own key with only the access it needs
- Rotate keys and service account passwords regularly and when people leave
- Set spending alerts and limits on cloud accounts
- Make code repositories private and scan them for secrets
If it happens to you
- Revoke the exposed key or change the password immediately
- Review logs for what the key was used to access
- Dispute fraudulent cloud charges with the provider
- Check for other copies of the same secret and replace them all
If you think this is happening right now, call our incident line at 1-800-716-8955. We answer 24 hours a day, whether or not you are a client. What to do while you wait.