0Pricing
Cyber Security Academy · Lesson

Enumerating Cloud Resources

Discovering misconfigurations.

Enumerating Cloud Resources is a free Cyber Security Academy lesson on CoddyKit — lesson 2 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Cyber Security Academy learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.

Goal of Cloud Enumeration

Enumeration turns a single credential or anonymous foothold into a map of the environment. You want to know what identity you hold, what it can do, and what resources exist.

  • Identify the principal (who am I?).
  • Inventory resources (what exists?).
  • Discover permissions and trust paths (what can I reach?).

Identify Your Identity

Always start by confirming the active principal. This tells you the account, the identity type, and where to look next.

# AWS
aws sts get-caller-identity

# Azure
az account show

# GCP
gcloud auth list
gcloud config list

Unauthenticated Discovery

Before holding any credential, external enumeration finds exposed assets.

  • Brute-force predictable bucket and storage names.
  • Enumerate public endpoints via certificate transparency and DNS.
  • Check for public snapshots, AMIs, and container registries.
# Discover and probe buckets by org keyword
cloud_enum -k targetcorp

# Check a storage account for anonymous access (Azure)
curl https://targetcorp.blob.core.windows.net/?comp=list

Permission Enumeration

Knowing exactly what your principal can do shapes the whole engagement. Some providers let you read your own policies; otherwise you brute-force permissions by attempting harmless calls.

# AWS: list attached policies for your user
aws iam list-attached-user-policies --user-name me

# Brute-force allowed actions without side effects
enumerate-iam --access-key AKIA... --secret-key ...

Resource Inventory With Native Tools

Provider CLIs and aggregated views enumerate resources fast.

  • AWS Resource Groups Tagging API or describe-* calls.
  • Azure Resource Graph queries across subscriptions.
  • GCP asset inventory.
# AWS: enumerate EC2 instances
aws ec2 describe-instances --query 'Reservations[].Instances[].[InstanceId,State.Name]'

# Azure Resource Graph
az graph query -q 'Resources | project name, type, location'

Automated Audit Tools

Dedicated tools accelerate misconfiguration discovery across an account.

  • ScoutSuite produces a multi-service HTML risk report.
  • Prowler runs hundreds of CIS-benchmark checks.
  • CloudMapper / Cartography graph relationships.
# ScoutSuite
scout aws

# Prowler CIS checks
prowler aws --compliance cis_2.0_aws

Mapping IAM Relationships

The most valuable enumeration output is the IAM graph: who can assume which role, and which policies grant escalation. Graph tools reveal paths a flat policy review misses.

# PMapper: build and query the IAM authorization graph
pmapper graph create
pmapper query 'who can do iam:PutUserPolicy with *'

Storage and Data Enumeration

Once you can list storage, enumerate contents for secrets and PII.

  • List buckets/containers, then objects.
  • Look for backups, .env files, terraform state, and DB dumps.
  • Terraform state often contains plaintext secrets.
# Recursively list and pull interesting objects
aws s3 ls s3://target-bucket --recursive
aws s3 sync s3://target-bucket ./loot --exclude '*' --include '*.tfstate'

Network and Compute Enumeration

Map the network and running workloads to find pivot points.

  • Security groups / NSGs reveal exposed ports.
  • Running instances and their roles are lateral-movement targets.
  • Managed databases and their access rules indicate data stores.
# Find security groups open to the internet
aws ec2 describe-security-groups \
  --filters Name=ip-permission.cidr,Values=0.0.0.0/0

Staying Quiet and Compliant

Enumeration generates control-plane log entries. To reduce noise and stay ethical:

  • Prefer read-only describe/list/get calls.
  • Throttle requests to avoid rate-limit alerts.
  • Avoid destructive or billable actions during recon.
  • Record every call so blue team can correlate later.

From Inventory to Attack Plan

Good enumeration produces a prioritized target list: over-permissioned roles, public storage, exposed services, and assumable cross-account roles. This feeds the exploitation phase.

Document findings with the exact API calls used so they are reproducible and auditable.

Quick Check

Confirm your enumeration fundamentals.

Recap

You learned to enumerate a cloud environment systematically.

  • Identify your principal first, then inventory and permissions.
  • Unauthenticated discovery finds public buckets and endpoints.
  • ScoutSuite, Prowler, and PMapper automate auditing and IAM graphing.
  • Prefer read-only calls and log every action.

Next: exploiting IAM misconfigurations for privilege escalation.

Frequently asked questions

Is the “Enumerating Cloud Resources” lesson free?

Yes — the full text of “Enumerating Cloud Resources” is free to read here on the web, and the Cyber Security Academy course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Cyber Security Academy course, upgrade to CoddyKit PRO.

What will I learn in “Enumerating Cloud Resources”?

Discovering misconfigurations. You practise Cyber Security Academy with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.

Do I need any experience to start Cyber Security Academy?

No prior experience is required. Cyber Security Academy on CoddyKit is structured for beginners through advanced learners; this is — lesson 2 of 4, so you can start here or from the beginning and move at your own pace.

How long does the “Enumerating Cloud Resources” lesson take?

Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.

Can I write and run code in this Cyber Security Academy lesson?

Yes. Every Cyber Security Academy lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.

All lessons in this course

  1. Cloud Attack Surface
  2. Enumerating Cloud Resources
  3. Exploiting IAM Misconfigurations
  4. Persistence and Lateral Movement
← Back to Cyber Security Academy