Cloud assets
- Noise
- Light active
- Reads
js/files/urls/clean.txthttp/httpx.jsonosint/- Writes
cloud/references.txtcloud/candidates.txtcloud/findings.md
Scope checkActive phase. Check the program policy first. Send traffic only to in-scope assets, at the rate the program allows.
Companies keep files in S3, Azure Blob Storage and Google Cloud Storage. A bucket that allows public listing or, worse, public writes is a high-impact finding. This phase finds bucket names that belong to the target and checks how they are configured.
Requests go to the cloud provider’s API, not the target’s servers. They are still active checks against storage the target owns, so the scope rules apply.
| Tool | Noise | Role | Status |
|---|---|---|---|
| cloud_enum | Light active | Guesses AWS, Azure and GCP resource names from keywords and checks them | Maintained |
| S3Scanner | Light active | Checks bucket permissions across S3-compatible providers | Maintained |
| GrayhatWarfare | Passive | Searchable index of open buckets and their files | Online service, limited free tier |
| ScoutSuite | n/a | Multi-cloud config audit. Needs credentials for the account | Maintained, internal use |
| Prowler | n/a | AWS, Azure and GCP security audit. Needs credentials | Maintained, internal use |
Why ScoutSuite and Prowler are not bug bounty tools
Section titled “Why ScoutSuite and Prowler are not bug bounty tools”Both log in to a cloud account with credentials and audit its configuration from the inside. In an internal pentest or a cloud review, the client gives you a read-only role and these tools are the right choice. In bug bounty you never have those credentials. If you find credentials, using them to run an audit is far beyond what any program allows.
Validating a leaked AWS key
Section titled “Validating a leaked AWS key”If phase 14 turned up an AWS access key, the one call that proves it is live without touching any resource is sts get-caller-identity. It returns only the account ID, user ID and ARN of the caller, which is exactly the minimal proof a report needs.
# Confirm a leaked key is live and see whose it is; reads nothing elseAWS_ACCESS_KEY_ID=AKIA... AWS_SECRET_ACCESS_KEY=... aws sts get-caller-identityStop there. Listing buckets, reading objects or enumerating identity and access management (IAM) with the key goes past the minimal read-only check and into the account, which no program allows. Report the key with the ARN as proof and let the program revoke it.
What a bucket check proves
Section titled “What a bucket check proves”Public listing
Section titled “Public listing”example-customer-exports.s3.amazonaws.comPublic listing: yesWrite: noObjects: 142Anonymous ListBucket worked, and the tool counted 142 keys. Listing and object read are different permissions. Write is off in this record. A listing is not a download, and it is not a write finding. Read one small object only after you have evidence the target owns the bucket.
Name exists, access denied
Section titled “Name exists, access denied”https://storage.googleapis.com/example-data-warehouse 403 AccessDeniedThe bucket name exists and refuses anonymous access. That is not a finding. Keep the name in your notes so you can match it if the target’s site references it later.
Azure container of site files
Section titled “Azure container of site files”https://exampledevstorage.blob.core.windows.net/public-webBlobs: logo.svg, bundle.js, styles.cssAnonymous read is on for public-web. It does not mean every other container on exampledevstorage is open. If the blobs are the website’s logo and CSS, this is the public asset bucket in the mistakes list below.
Convincing duds
Section titled “Convincing duds”Static media bucket
Section titled “Static media bucket”example-static-media lists favicon.ico, hero-banner.png, vendor.bundle.js, and site.css. The marketing site links those files. A throwaway upload in your handle’s name is denied. Public logos are not a bug. Write access would be.
Keyword collision
Section titled “Keyword collision”example-backups is open, and every object belongs to a different company that happens to use the same word. The name matched your keyword list. Ownership did not. Do not report it.
Trade-offs
Section titled “Trade-offs”GrayhatWarfare can show you the target’s files without a guess, and the index lags. A bucket it listed last month may be private now. Confirm with S3Scanner or aws s3 ls --no-sign-request before you report.
Every anonymous request can land in the owner’s access logs. Keep the candidate list to names you can justify from the brand, the JS, and the suffix list in the steps.
Step by step
Section titled “Step by step”-
Collect references you already have. Bucket names leak through JS, HTML, Content Security Policy (CSP) headers and archived URLs.
Terminal window # Storage URLs in downloaded JS and collected URLsgrep -Ehos "[a-z0-9.-]+\.s3[.-]([a-z0-9-]+\.)?amazonaws\.com|s3[.-]([a-z0-9-]+\.)?amazonaws\.com/[a-z0-9._-]+|[a-z0-9]+\.blob\.core\.windows\.net|storage\.googleapis\.com/[a-z0-9._-]+|[a-z0-9._-]+\.storage\.googleapis\.com|[a-z0-9.-]+\.digitaloceanspaces\.com|[a-z0-9.-]+\.firebaseio\.com" \js/files/*.js urls/clean.txt | sort -u > cloud/references.txt -
Search GrayhatWarfare for the company name and domain. It indexes files in open buckets, so you may find the target’s data without guessing names at all.
-
Generate name candidates. Combine the company’s names with common suffixes.
Terminal window # Simple candidate list from a few keywords and suffixesfor k in example examplecorp example-inc; dofor s in "" -backup -backups -dev -staging -prod -assets -static -media -uploads -logs -data -public -private; doecho "$k$s"donedone > cloud/candidates.txt -
Run cloud_enum with your keywords. It checks S3, Azure storage accounts and containers, and GCP buckets and Firebase databases.
Terminal window # Check generated names across AWS, Azure and GCP, log to a filepython3 cloud_enum.py -k example -k examplecorp -l cloud/cloud_enum.log -
Check S3 permissions with S3Scanner for names you found or guessed.
Terminal window # Check each candidate bucket for existence and public permissionss3scanner -bucket-file cloud/candidates.txtTerminal window # List one bucket anonymously with the AWS CLIaws s3 ls s3://example-backups --no-sign-request -
Check the other providers. cloud_enum covers these, but a direct read confirms a candidate the index missed.
Terminal window # Azure: list a container anonymously through the REST listing (public containers only)curl -s "https://exampledevstorage.blob.core.windows.net/public-web?restype=container&comp=list"Terminal window # Azure with the CLI, when you have a key; public containers also work with --auth-mode loginaz storage blob list --account-name exampledevstorage --container-name public-web --output tableTerminal window # Google Cloud Storage: list a bucket anonymouslygcloud storage ls gs://example-data-warehousegsutil ls gs://example-data-warehouseTerminal window # DigitalOcean Spaces are S3-compatible; point the AWS CLI at the region endpointaws s3 ls s3://example-space --no-sign-request --endpoint-url https://nyc3.digitaloceanspaces.comTerminal window # Firebase Realtime Database: an open database returns data for /.json with no authcurl -s "https://example-default-rtdb.firebaseio.com/.json"A Firebase database that returns JSON instead of
{"error":"Permission denied"}is readable by anyone. Read only enough to prove it, then report. -
Confirm ownership before you report. A bucket named
example-backupscould belong to anyone. Look for the target’s file names, domains or branding inside it, or for a reference to it from the target’s own site. -
Record findings in
cloud/findings.md: bucket, provider, what is public (list, read, write), sample file names, and the evidence of ownership.
How the output feeds the next phase
Section titled “How the output feeds the next phase”- Bucket hostnames that serve web content go into
subs/all.txtif they sit on the target’s domain, such asassets.example.comas a CNAME to S3. - Unclaimed bucket names referenced by the target’s site are takeover candidates for phase 7.
- Files in open buckets often contain hostnames and keys, which go to phase 14 style analysis.
Common mistakes
Section titled “Common mistakes”- Reporting a public bucket without proving the target owns it.
- Reporting buckets that are meant to be public, such as a static asset bucket for the website. Public read of logos is not a bug.
- Downloading everything “to check”.
- Running ScoutSuite or Prowler with leaked credentials.
- Buckets with names like
backup,logs,db,export,private,internal - Listing enabled on a bucket that serves user uploads
- Write access on any bucket
- JS that references a bucket which returns
NoSuchBucket, a possible takeover - Firebase databases that answer
/.jsonwithout auth
Next, confirm blind bugs with callbacks in phase 16.
Open local graph around this page
Recon AtlasFor authorized testing only. Your scope is the map edge.