Athena Wiki

Cloud Security

cloudbeginner

Index of cloud CTF pages - metadata abuse, bucket misconfigurations, IAM escalation, Kubernetes basics, and CI/CD secret leaks.

cloudawskubernetesiams3cicdindexoverview

Cloud Security

Cloud challenges in CTFs combine web exploitation, OSINT, and infrastructure misconfigurations. Instead of a single memory bug, you chain multiple misconfigurations — exposed metadata, weak IAM permissions, public buckets, and leaked deployment secrets — to reach the flag.

The attack surface is broad but the methodology is consistent: enumerate what's exposed, find credentials, escalate permissions, read the flag.


Pages in This Section

PageDifficultyDescription
AWS Metadata (IMDS)IntermediateSteal temporary credentials via the instance metadata service
S3 MisconfigurationBeginnerPublic buckets, listing mistakes, and object leaks
IAM Privilege EscalationAdvancedEscalate AWS roles via dangerous IAM permissions
Kubernetes BasicsIntermediatePods, service accounts, RBAC, and common cluster mistakes
Secrets in CI/CDIntermediateTokens in logs, build artifacts, and deployment configs

Common Cloud Attack Chains

Mermaid diagram

Methodology

Enumerate Exposed Assets

Buckets, APIs, domains, repos, image registries. Public metadata in web responses or error messages. Start broad — anything internet-facing.

Identify Trust Boundaries

Who can assume what role? Which service can read which secret? Is the internal metadata service reachable via SSRF?

Look for Leaked Credentials

.env, CI logs, backup archives, Docker layer history, git commits. Temporary tokens from metadata endpoints expire — grab them fast.

Escalate Permissions

sts:AssumeRole abuse, iam:PassRole chains, Kubernetes service account token pivot to cloud IAM.


Attack Routes by Entry Point

Path: Vulnerable URL fetch → IMDS → AWS credentials → IAM escalation

  1. AWS Metadata (IMDS) — steal temporary creds via 169.254.169.254
  2. IAM Privilege Escalation — escalate from limited role
  3. S3 Misconfiguration — find the flag in a bucket
curl http://target/fetch?url=http://169.254.169.254/latest/meta-data/

High-Value Attack Routes


Tools Quick Reference

# AWS
aws sts get-caller-identity
aws s3 ls s3://target-bucket --no-sign-request
aws iam simulate-principal-policy ...

# Kubernetes
kubectl auth can-i --list
kubectl get secrets -A -o yaml

# Secret scanning
trufflehog filesystem .
rg "AWS_|SECRET|TOKEN|PASSWORD|BEGIN RSA"

# Metadata probe
curl -s http://169.254.169.254/latest/meta-data/

Last updated on

On this page