Cloud external exposure and unauthenticated enumeration across AWS, Azure and GCP (Tier 1) — public storage buckets, leaked keys, exposed services, and metadata/credential theft via SSRF or foothold. Granular entry under the cloud-pentest hub. Use when the target runs on or exposes cloud infrastructure, or when SSRF/compromise yields a metadata endpoint. Dispatch to cloud-pivot-finder once credentials are obtained.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Cloud?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/anandjogawade-cloud)
---
name: cloud
description: Cloud external exposure and unauthenticated enumeration across AWS, Azure and GCP (Tier 1) — public storage buckets, leaked keys, exposed services, and metadata/credential theft via SSRF or foothold. Granular entry under the cloud-pentest hub. Use when the target runs on or exposes cloud infrastructure, or when SSRF/compromise yields a metadata endpoint. Dispatch to cloud-pivot-finder once credentials are obtained.
---
# Cloud Exposure & Enumeration (AWS / Azure / GCP)
Most cloud compromises begin with public storage, a leaked key, or SSRF-to-metadata. This skill covers external exposure discovery and credential acquisition; post-credential IAM work lives in `cloud-pivot-finder`. Stay strictly inside the authorized account/subscription/project.
## Trigger phrases
`cloud, aws, azure, gcp, s3 bucket, blob, gcs, metadata, imds, 169.254.169.254, access key, serverless, cloud enum`
## Method
1. **Fingerprint provider**: resolve target IPs/CNAMEs (`*.amazonaws.com`, `*.blob.core.windows.net`, `*.cloudfront.net`, `*.azurewebsites.net`, `*.run.app`, `*.storage.googleapis.com`), ASN lookup, TLS SAN/cert names.
2. **Storage enumeration** (per `${CLAUDE_PLUGIN_ROOT}/payloads/INJECTION-POINTS.md` names + org wordlists):
- AWS S3: `aws s3 ls s3://<bucket> --no-sign-request`; brute names with `s3scanner`/`cloud_enum`; test `READ`/`WRITE`/`READ_ACP`/`WRITE_ACP` ACLs. Public write = supply-chain/defacement.
- Azure Blob: `cloud_enum`, `MicroBurst` (`Invoke-EnumerateAzureBlobs`); container `?restype=container&comp=list`.
- GCS: `gsutil ls -r gs://<bucket>`, test allUsers/allAuthenticatedUsers; `cloud_enum`.
3. **Leaked secrets**: `trufflehog`/`gitleaks` on public repos, JS bundles, mobile APK/IPA, CI logs, container image layers (`dive`/`trivy`), exposed `.git`/`.env`/Terraform state.
4. **Exposed services**: unauth Elasticsearch/Kibana (`:9200`), Redis (`:6379`), MongoDB, Docker API (`:2375`), management consoles, Lambda/Function URLs, public registries, RDS snapshots.
5. **Metadata/credential theft** (via SSRF → `web-ssrf`, or from a foothold):
- AWS: IMDSv1 `http://169.254.169.254/latest/meta-data/iam/security-credentials/<role>`; IMDSv2 PUT token first (`X-aws-ec2-metadata-token-ttl-seconds`).
- GCP: `http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/token` header `Metadata-Flavor: Google`.
- Azure IMDS: `http://169.254.169.254/metadata/identity/oauth2/token?...&resource=https://management.azure.com/` header `Metadata: true`.
6. **Validate identity**: `aws sts get-caller-identity`, `az account show`, `gcloud auth list`.
## Modern / rare techniques
- **[RARE] IMDSv2 SSRF with header control**: when the SSRF allows PUT + custom headers, two-step token→creds still works; flag IMDSv1-enabled or hop-limit >1 as the root cause.
- **[NEW] GCP service-account token via `cloud-run`/function metadata**: serverless containers expose the same metadata endpoint — SSRF in a Cloud Run app yields the SA token.
- **[RARE] Terraform state / `tfstate` in public buckets** leaks keys, DB passwords, and resource maps in cleartext.
- **[NEW] Azure Storage SAS-token leakage** in URLs/logs grants scoped blob access without creds.
## Escalation / chaining
Creds obtained → `cloud-pivot-finder` (IAM enum + privesc). K8s/registry exposure → `k8s-attacks` / `container-escape`. SSRF root cause → `web-ssrf`. Vulnerable exposed service version → `vulnerable-components`.
## Backend & tooling
Kali/WSL-Kali or HexStrike: `awscli`, `az`, `gcloud`, `cloud_enum`, `s3scanner`, `MicroBurst`, `trufflehog`, `trivy`, `nuclei` (cloud templates). Route web-sourced SSRF PoCs through Burp Repeater if a Burp MCP is present. See `zazy-orchestrator` for backend selection.
## Verification (background, before reporting)
Confirm each exposure from an independent vantage (second tool or clean session) and, for blind SSRF, require an OAST (interactsh/Collaborator) DNS+HTTP callback before asserting metadata reachability. Re-run `get-caller-identity` to prove live credentials. Report true positives only.
## Evidence
Public object listing/ACL output, redacted secret match + source, SSRF request/response proving metadata read, and `get-caller-identity` identity proof. Remediation: block public ACLs/Block Public Access, enforce IMDSv2 + hop-limit 1, rotate leaked keys, remove secrets from artifacts, private state backends with encryption.