On this page
- Why storage is so often exposed
- Mistake 1: Public access that should not be public
- Mistake 2: Overly broad permissions
- Mistake 3: Missing encryption
- Mistake 4: Credentials in the wrong places
- Mistake 5: No logging or monitoring
- Mistake 6: Forgotten and abandoned resources
- Mistake 7: No versioning or backup protection
- Mistake 8: Weak controls on sharing links
- A short audit routine
- Frequently Asked Questions
Cloud object storage is convenient. You create a container, upload files and reach them from anywhere. That ease is also the danger. A single wrong setting can turn a private container of customer records into something anyone on the internet can read.
Headlines about leaked data often trace back not to a clever attack, but to a misconfiguration: a permission that was too wide, a setting left at its default, a test resource that was never removed. The good news is that these mistakes are predictable, and so are the fixes.
Why storage is so often exposed
Storage services must support many uses, from private backups to public website assets. Because of that flexibility, they offer multiple layers of access control, and each layer is a place to make an error. Teams also move quickly. Someone opens a container to share a file with a partner, intends to close it afterward, and forgets.
Remember that automated scanners continuously search the internet for open containers. An exposed resource is often found far faster than owners expect.
Mistake 1: Public access that should not be public
The most famous error is a storage container whose contents can be listed or downloaded by anyone. This often happens when a permission is granted to "everyone" or "any authenticated user", a phrase that sometimes means any account at all with that provider, not only members of your organization.
How to avoid it:
- Block public access at the account or organization level by default, then make narrow exceptions for resources that truly must be public.
- For public websites, serve files through a content delivery service with controlled access rather than opening the storage itself.
- Treat any "allow everyone" rule as something needing written justification.
Mistake 2: Overly broad permissions
Policies that grant full control over all storage to every developer, or wildcard permissions on every resource, are easy to write and hard to undo. If any one of those accounts is compromised, the attacker inherits everything.
How to avoid it:
- Apply least privilege. Give each person or application access to only the specific containers and actions needed.
- Separate read, write and delete rights. Many applications need to write files but never delete them.
- Review policies on a schedule, and remove permissions that nobody uses.
Mistake 3: Missing encryption
Data that is not encrypted at rest is easier to misuse if someone gets access to the underlying storage. Data sent without encryption can be read in transit.
How to avoid it:
- Turn on default encryption for all containers, so new objects are protected automatically.
- Require encrypted connections and reject plain, unencrypted requests.
- For especially sensitive data, manage your own encryption keys and restrict who may use them.
Mistake 4: Credentials in the wrong places
Access keys embedded in application code, configuration files or public repositories give attackers a direct way in, regardless of how well the storage itself is set up.
How to avoid it:
- Use temporary credentials or role-based access for applications running in the cloud, so no long-term key needs to exist.
- Keep secrets in a dedicated secrets manager.
- Scan code and repositories for exposed keys, and rotate any that leak.
- Disable or delete keys you no longer use.
Mistake 5: No logging or monitoring
If access to your storage is not recorded, you will not know about a leak until someone else tells you. Teams frequently learn about exposure from outsiders.
How to avoid it:
- Enable access logs and activity audit trails for storage, and store them in a protected location.
- Set alerts for unusual events, such as large downloads, policy changes or access from unexpected locations.
- Check logs regularly so that alerts do not become background noise.
Mistake 6: Forgotten and abandoned resources
Test containers, old backups, migration leftovers and resources created by departed employees often hold real data, with weaker controls than production systems. Nobody watches them, so nobody notices when they are exposed.
How to avoid it:
- Tag every resource with an owner and a purpose.
- Maintain an inventory and review it for items without owners.
- Set expiry or lifecycle rules so temporary data is removed automatically.
- Avoid copying real production data into test environments.
Mistake 7: No versioning or backup protection
Storage that overwrites or deletes freely turns one mistake or one malicious act into permanent loss.
How to avoid it:
- Enable versioning, so earlier copies of an object can be restored.
- Consider locking features that prevent deletion for a set period for critical data.
- Keep a copy of important data in a separate account or location.
Mistake 8: Weak controls on sharing links
Temporary shareable links are handy, but long-lived links circulate by email and chat and can outlast their purpose.
How to avoid it:
- Make links expire quickly, in minutes or hours rather than months.
- Limit what each link can do, such as read-only access to one object.
- Track and review which links are active.
A short audit routine
You can run a basic check each month.
- List all storage containers and identify the owner of each.
- Check each container's public access settings.
- Review who and what can read, write and delete.
- Confirm that encryption and versioning are on.
- Verify that logs are being collected.
- Remove anything that is unowned or no longer needed.
Many cloud platforms include built-in tools that flag risky settings, and open-source scanners can check configurations as well. Automating these checks, and running them whenever infrastructure changes, catches errors before they are exploited.
Frequently Asked Questions
Is a private container always safe?
Not necessarily. A container can be marked private yet still be reachable through overly broad role permissions, shared keys or links that never expire. Safety depends on the whole combination of settings, so review the policies as well as the visibility flag.
How can I tell if my storage is currently exposed?
Use your provider's built-in access analysis tools, which highlight resources reachable from outside your account, and review public access settings for each container. You can also test from a separate, unauthenticated session to see whether an object can be listed or downloaded.
What should I do if I find an exposed container?
Close the access immediately, then examine the logs to find out whether anyone downloaded the data and for how long it was open. Rotate any credentials that were stored there, assess whether you must notify affected people under applicable rules, and record the cause to prevent a repeat.