Skip to main content
CTFWorld
Cloud & ADDifficulty: Intermediate -> Advanced

Cloud, Containers & Active Directory

Modern enterprise breaches happen across cloud IAM boundaries, Kubernetes clusters, CI/CD pipelines, and Active Directory forests. Cloud & Infrastructure CTFs mirror real corporate environments where misconfigured trust relationships replace traditional single-service exploits.

Core Attack Classes & Concepts

Cloud IAM Privilege Escalation

Chaining overly permissive policies (PassRole, AssumeRole, PutUserPolicy) into full account control.

Key Techniques: Enumerating caller identity, inspecting inline/managed policy JSON, and exploiting trust policies.

Cloud Metadata & Storage Misconfigurations

Abusing IMDSv1 via SSRF, public S3 buckets, presigned URL leaks, and exposed CI secrets.

Key Techniques: Querying 169.254.169.254 role credentials, checking bucket ACLs, and auditing Terraform state files.

Container & Kubernetes Security

Escaping privileged containers or escalating Kubernetes ServiceAccount RBAC permissions.

Key Techniques: Mounted docker.sock abuse, hostPath volume mounts, CAP_SYS_ADMIN escapes, and kubectl auth can-i auditing.

Active Directory Attack Paths

Navigating Kerberos, ACL misconfigurations, and certificate templates to reach Domain Admin.

Key Techniques: AS-REP Roasting, Kerberoasting, BloodHound graph analysis, Pass-the-Hash, and ADCS ESC1-ESC8.

Competition Methodology Checklist

  1. 1

    Always establish identity first: who am I (aws sts get-caller-identity, kubectl auth can-i --list, whoami /all)?

  2. 2

    Map trust boundaries and graph paths—BloodHound for AD, ScoutSuite/Pacu for AWS, and RBAC graphs for Kubernetes.

  3. 3

    Check environment variables, mounted secrets (/var/run/secrets), and CI/CD build logs for credentials.

  4. 4

    Trace least-privilege violations where read+write on an automation resource grants code execution under a higher role.

Reference Pattern

Spotting Dangerous IAM Wildcards
json
{
  "Effect": "Allow",
  "Action": ["iam:PassRole", "lambda:CreateFunction", "lambda:InvokeFunction"],
  "Resource": "*"
}

Combining iam:PassRole with compute creation allows escalating to any assumable admin role.

Recommended Practice Progression

Challenge / TrackPlatformLevelFocus
CloudGoat & Flaws.cloudRhino Security / flaws.cloudBeginnerHands-on AWS misconfiguration and IAM labs
Kubernetes GoatMadhu Akula (Open Source)IntermediateInteractive Kubernetes cluster security scenarios
Active Directory Pro LabsHack The BoxAdvancedMulti-host enterprise AD pivoting and Kerberos attacks

Defensive Engineering Takeaway

Enforce IMDSv2, eliminate wildcard IAM actions/resources, run containers rootless with seccomp/read-only rootfs, and tier Active Directory administrative privileges with phishing-resistant MFA.