Publicly Accessible Cloud Storage Bucket Containing Sensitive Data
Illustrative example. ACME Financial is an invented company and every detail below is made up. The layout is the one our reports use.
Impact
Any person on the internet could list and download the contents of an ACME Financial storage bucket. The bucket held nightly backups of the core banking database, a monthly export of customer statements, and an application configuration file containing the address, user name and password of the production database. No account, password or foothold in the bank’s network was required.
A threat actor who downloaded the backups would hold customers’ banking records in bulk. The credentials in the configuration file could support further access to the bank’s systems. Within an attack chain, this finding provides collection of sensitive data and credential access with no prior access. Strafe assesses the likelihood as high and the impact as critical.
Technical details
During reconnaissance, Strafe found a storage bucket named in the source of a public ACME Financial web page, which loaded images from it. A second bucket followed the same naming pattern, acme-financial-example-backups. Strafe sent an unauthenticated request for a listing of that bucket, and the storage service returned its contents:
2026-10-12 16:40:18 1.2 KiB config/app.env 2026-11-29 02:13:52 2.1 GiB db/acme_core_2026-11-29.sql.gz 2026-11-30 02:14:07 2.1 GiB db/acme_core_2026-11-30.sql.gz 2026-11-01 04:02:31 148.0 MiB exports/customer_statements_2026-10.csv

To confirm that the objects could be read and not only listed, Strafe retrieved the smallest file, the configuration file, with a second unauthenticated request. It contained the connection details of the production database:
# ACME core banking, production DB_HOST=db01.corp.acme-financial.example DB_NAME=acme_core DB_USER=app_core DB_PASSWORD=[redacted] STATEMENTS_API_KEY=[redacted]

Testing stopped there. Strafe did not download the database backups or the statement export, and did not use the credentials. ACME Financial’s point of contact was notified the same day.
Remediation
- Remove the statement in the bucket’s policy that grants listing and reading to everyone, and turn on the storage service’s account-wide block on public access, so that no bucket in the account can be made public by its own policy.
- Treat the contents as exposed. Change the database password and the API key found in the configuration file, and review the bucket’s access logs to establish who retrieved which objects and when.
- Keep credentials out of storage buckets. Hold them in a secrets manager, and give the application access to them through its own role.
- Encrypt backups with a key the bank controls, so that reading an object also requires permission to use the key.
- Review every bucket in the account for the same policy, and add a continuous check that reports any bucket readable by an anonymous request.
Renaming the bucket or removing the links to it would not correct the flaw. The policy is the control.
Retest
After the policy was corrected and public access was blocked for the account, Strafe repeated both unauthenticated requests. The storage service answered each with "Access Denied".

References
- MITRE ATT&CK, T1530: Data from Cloud Storage
- CWE-732: Incorrect Permission Assignment for Critical Resource
- Amazon S3 documentation, Blocking public access to your Amazon S3 storage