# Recon Cloud Asset Enumeration

> Use when authorized recon must find an organization's cloud footprint beyond its main domains. Covers mapping cloud IP ranges and DNS to provider services, finding public storage, compute, and platform endpoints from DNS, certificates, and indexed data, distinguishing owned cloud assets from shared provider infrastructure, and recording each asset with its provider, region signal, and exposure so later testing starts from verified cloud inventory. Authorized targets only, only enumerate cloud assets you are permitted to test.

- Skill: `mizazhaider-ceh/recon-cloud-asset-enumeration` (Agent Skill)
- Install (CLI): `npx get-skill add mizazhaider-ceh/recon-cloud-asset-enumeration`
- Raw SKILL.md: https://api.skillmd.com/api/skills/mizazhaider-ceh/recon-cloud-asset-enumeration/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: DevOps & Infra
- Author: mizazhaider-ceh (https://skillmd.com/u/mizazhaider-ceh)
- Updated: 2026-11-22
- Page: https://skillmd.com/skills/mizazhaider-ceh/recon-cloud-asset-enumeration

---


Cloud assets rarely announce themselves as cloud assets. A subdomain may
resolve to a cloud load balancer, a storage endpoint, a platform app domain,
or a CDN edge, and the same IP range may host thousands of unrelated tenants.
This skill covers finding the cloud footprint that belongs to one
organization, naming the provider and service for each asset, and separating
owned assets from shared provider infrastructure that is not in scope. Only
enumerate cloud assets you are authorized to test, and never attempt to
access private cloud data, only to identify and characterize public endpoints.

## Quick Workflow

1. Confirm scope and record which cloud providers and account signals are in scope.
2. Collect the organization's known names, certificates, and IP ranges.
3. Map every resolved IP to a provider using published IP range data and ASN data.
4. Extract cloud service hostnames from DNS, certificates, and indexed data.
5. Probe each candidate endpoint once and record what it serves, without accessing private content.
6. Classify each asset as owned, shared provider infrastructure, or unknown, and record the evidence.
7. Hand owned cloud assets to the attack surface register with provider and service labels.

## 1. Start from names, not from provider consoles

Cloud enumeration in recon starts outside the cloud account. You do not get
console access, you get DNS, certificates, and indexed scans. Build the
candidate list from the organization's names first, then ask which of those
names point at cloud services.

```bash
mkdir -p cloud/example.com
cd cloud/example.com
cp ../../asm/example.com/subs-all.txt . 2>/dev/null || echo "example.com" > seeds.txt
cat > SCOPE.txt <<'EOF'
Client: Example Ltd
Authorized: example.com, *.example.com
Cloud scope: public endpoints only, no account access, no private data
Authorization ref: SOW-2026-041
EOF
# Resolve the known names and keep the IP map
dnsx -l subs-all.txt -silent -a -resp -o resolved.txt -t 50
head -20 resolved.txt
```

## 2. Map IPs to providers with published range data

Major providers publish their IP ranges as JSON. Downloading those files
lets you label an IP as belonging to a provider without guessing from
reverse DNS, and it gives you the service and region labels the provider
itself publishes.

```bash
# Published provider IP ranges (public files, no account needed)
curl -s https://ip-ranges.amazonaws.com/ip-ranges.json -o aws-ranges.json
curl -s https://www.gstatic.com/ipranges/cloud.json -o gcp-ranges.json
echo "Azure ranges - download the current Service Tags JSON from the Microsoft download page linked in Key references, then save it as azure-ranges.json"
ls -lh *-ranges.json
jq '.prefixes | length' aws-ranges.json
jq '.prefixes | length' gcp-ranges.json
```

If a provider range file fails to download, record the failure and fall back
to ASN and reverse DNS data from recon-asn-netblock. Never invent a range
file, and never label an IP by provider on reverse DNS alone when the range
data disagrees.

## 3. Label each resolved IP against the range files

A small script does the labeling repeatably. It reads the resolved list,
checks each IP against the downloaded ranges, and writes a labeled asset
list that a reviewer can re-run.

```python
import ipaddress, json, re

def load_ranges(path, key):
    try:
        data = json.load(open(path))
        nets = []
        for p in data.get(key, []):
            prefix = p.get("ip_prefix") or p.get("ipv4Prefix")
            if prefix:
                nets.append((ipaddress.ip_network(prefix), p))
        return nets
    except (FileNotFoundError, ValueError):
        return []

aws = load_ranges("aws-ranges.json", "prefixes")
gcp = load_ranges("gcp-ranges.json", "prefixes")

def label(ip):
    try:
        addr = ipaddress.ip_address(ip)
    except ValueError:
        return "invalid"
    for nets, provider in ((aws, "AWS"), (gcp, "GCP")):
        for net, meta in nets:
            if addr in net:
                service = meta.get("service", "unknown")
                region = meta.get("region", "unknown")
                return f"{provider} - {service} - {region}"
    return "not in downloaded ranges"

for line in open("resolved.txt"):
    m = re.match(r"(\S+)\s+\[([^\]]+)\]", line.strip())
    if not m:
        continue
    host, ips = m.group(1), m.group(2)
    for ip in ips.split(","):
        print(f"{host} {ip.strip()} {label(ip.strip())}")
```

Save this output as `cloud-labels.txt`. An IP labeled "not in downloaded
ranges" is not cleared, it is unclassified, and it needs ASN or reverse DNS
follow-up before it leaves the queue.

## 4. Extract cloud service hostnames from DNS and certificates

Cloud hostnames leak the service even when the IP does not. CNAME targets
naming storage, platform, or CDN domains, certificate names for platform app
domains, and TXT verification tokens naming providers are all signals.

```bash
# CNAME targets for every confirmed subdomain
while read -r sub; do
  target=$(dig +short "$sub" CNAME @1.1.1.1 | head -1)
  [ -n "$target" ] && echo "$sub -> $target"
done < subs-all.txt > cnames.txt
grep -iE "amazonaws|s3-website|cloudfront|azurewebsites|blob\.core|googleapis|appspot|herokuapp|github\.io|cloudapp" cnames.txt | sort -u > cloud-cnames.txt
wc -l cnames.txt cloud-cnames.txt
head -20 cloud-cnames.txt

# Certificate names that point at cloud platform domains
curl -s "https://crt.sh/?q=%25.example.com&output=json" \
  | jq -r '.[].name_value' \
  | grep -iE "amazonaws|azurewebsites|appspot|cloudfront" \
  | sort -u > cloud-cert-names.txt
cat cloud-cert-names.txt
```

A CNAME to a provider domain does not prove the organization still uses
that service. It proves DNS still points there, which is exactly what the
dangling CNAME sub-skill then checks. Record the record, the target, and the
date, and do not claim the service is live until a probe confirms it.

## 5. Probe cloud endpoints once and record only public signals

Probe for status, headers, and public error shapes. A storage endpoint that
returns a bucket error shape is a different finding from one that lists
contents, and you must not try to read private objects to tell the difference
beyond what a public unauthenticated request already returns in scope.

```bash
# Probe cloud CNAME candidates and record status plus server header
while read -r line; do
  host=$(echo "$line" | awk '{print $1}')
  code=$(curl -sk -m 15 -o /dev/null -w "%{http_code}" "https://$host/")
  echo "$host $code"
done < cloud-cnames.txt > cloud-probe.txt
cat cloud-probe.txt

# Check a storage-style endpoint for its public error shape only
curl -sk -m 15 https://example-docs.s3-website-us-east-1.amazonaws.com/ | head -c 400
echo
```

If a probe returns content that looks private, stop, do not download it,
record only the fact that the endpoint responded and the status code, and
escalate through the engagement channel. Recon characterizes exposure, it
does not collect private data.

## 6. Classify owned versus shared infrastructure

Classification is the step that keeps cloud recon honest. Shared provider
infrastructure (a CDN edge, a shared load balancer hostname, a provider
status domain) is not the organization's asset, even when the organization's
name appears in a certificate on it. Owned assets are names the organization
controls, records it set, and endpoints it configured.

```bash
# Classification worksheet - one line per candidate, filled by hand after probing
cat > cloud-classification.txt <<'EOF'
# host | provider | service | classification | evidence
# blog.example.com | AWS | CloudFront | owned | CNAME in org DNS, serves org content
# docs.example.com | AWS | S3 website | unknown | CNAME present, endpoint returns NoSuchBucket shape, needs dangling check
# status.example.com | SaaS provider | status page | owned | CNAME in org DNS, provider page branded for org
EOF
cat cloud-classification.txt
```

Unknown stays unknown until evidence moves it. An unknown cloud asset goes
back into the attack surface register with that label, not silently dropped
and not silently claimed as owned.

## Edge cases

- A single cloud IP serves many tenants behind a load balancer or CDN, so
  IP-to-organization mapping by IP alone overclaims. Confirm ownership with
  DNS, certificate, and served content together.
- Provider range files change frequently and region labels shift. Record
  which range file version and download date you used, so a later reviewer
  can reproduce the labeling.
- Storage endpoints can return different shapes by region and by path.
  One root probe does not prove a bucket is empty or full, only what the
  root returned on that date.
- Some cloud hostnames resolve through CNAME chains several hops long.
  Follow the full chain with dig, not just the first hop, before naming
  the final provider.
- Private cloud endpoints that require authentication return a login or
  access denied page. That is still a cloud asset for the register, with
  its exposure marked as authenticated, not as absent.
- Revoked or rotated provider ranges, and IPv6 ranges alongside IPv4, can
  leave gaps in labeling. Check both address families where the resolved
  list contains them.

## Key references

- MITRE ATT&CK T1590.005 IP Addresses
- MITRE ATT&CK T1590.006 Network Ranges
- AWS IP address ranges documentation: https://docs.aws.amazon.com/general/latest/gr/aws-ip-ranges.html
- Google Cloud IP ranges documentation: https://cloud.google.com/compute/docs/faq
- Microsoft Azure Service Tags documentation: https://learn.microsoft.com/azure/virtual-network/service-tags-overview
- OWASP Attack Surface Analysis guidance: https://owasp.org/www-project-web-security-testing-guide/

